summaryrefslogtreecommitdiffstats
path: root/src/include/usr/console
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2016-09-28 09:39:55 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-10-16 21:45:43 -0400
commit560a3667e8a581005586f9c731bfa5c1fe0e911d (patch)
tree7eb981aa83d018bcfb41d2122e32b19825b55673 /src/include/usr/console
parentaf6a053e12c60b67a951b578275ce2e0968de344 (diff)
downloadtalos-hostboot-560a3667e8a581005586f9c731bfa5c1fe0e911d.tar.gz
talos-hostboot-560a3667e8a581005586f9c731bfa5c1fe0e911d.zip
Add interfaces for HDAT to fetch new data
New interfaces added: I2C::getDeviceInfo() IPMI::getBmcInfo() CONSOLE::getUartInfo() New attributes: SYSTEM_FAMILY SYSTEM_TYPE Change-Id: I7d1a018c01067a19b8a66f853e11922c910fcc54 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30405 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/console')
-rw-r--r--src/include/usr/console/uartif.H59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/include/usr/console/uartif.H b/src/include/usr/console/uartif.H
new file mode 100644
index 000000000..8cbd0c0ff
--- /dev/null
+++ b/src/include/usr/console/uartif.H
@@ -0,0 +1,59 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/console/uartif.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __CONSOLE_UARTIF_H
+#define __CONSOLE_UARTIF_H
+
+#include <config.h>
+#include <stdarg.h>
+
+namespace CONSOLE
+{
+
+/**
+ * Structure to return UART information in
+ */
+struct UartInfo_t
+{
+ //@TODO-RTC:161647-Add more details/comments
+ uint64_t lpcBaseAddr;
+ uint32_t lpcSize;
+ uint32_t clockFreqHz;
+ uint32_t freqHz;
+ uint8_t interruptNum;
+ uint8_t interruptTrigger;
+};
+
+/**
+ * Retrieve some information about the UART and the connection
+ * we have to it.
+ *
+ * @return Structure of UART data
+ */
+UartInfo_t getUartInfo(void);
+
+
+};
+
+#endif
OpenPOWER on IntegriCloud