]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Coreboot.h
IntelFsp2WrapperPkg: Refine casting expression result to bigger size
[mirror_edk2.git] / CorebootModulePkg / Include / Coreboot.h
index 7bec1f3d6f17765b55fd3cf547916451510dff63..784e0b128a7cd0b633c444c8cf9374bd5598eae0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Coreboot PEI module include file.\r
 \r
-  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 #ifndef _COREBOOT_PEI_H_INCLUDED_\r
 #define _COREBOOT_PEI_H_INCLUDED_\r
 \r
+#if defined(_MSC_VER)\r
 #pragma warning( disable : 4200 )\r
+#endif\r
 \r
 #define DYN_CBMEM_ALIGN_SIZE (4096)\r
 \r
+#define IMD_ENTRY_MAGIC      (~0xC0389481)\r
+#define CBMEM_ENTRY_MAGIC    (~0xC0389479)\r
+\r
 struct cbmem_entry {\r
   UINT32 magic;\r
   UINT32 start;\r
@@ -64,6 +69,22 @@ struct cbmem_root {
   struct cbmem_entry entries[0];\r
 };\r
 \r
+struct imd_entry {\r
+  UINT32 magic;\r
+  UINT32 start_offset;\r
+  UINT32 size;\r
+  UINT32 id;\r
+};\r
+\r
+struct imd_root {\r
+  UINT32 max_entries;\r
+  UINT32 num_entries;\r
+  UINT32 flags;\r
+  UINT32 entry_align;
+  UINT32 max_offset;\r
+  struct imd_entry entries[0];\r
+};\r
+\r
 struct cbuint64 {\r
   UINT32 lo;\r
   UINT32 hi;\r
@@ -144,6 +165,21 @@ struct cb_serial {
   UINT32 type;\r
   UINT32 baseaddr;\r
   UINT32 baud;\r
+  UINT32 regwidth;
+
+  // Crystal or input frequency to the chip containing the UART.
+  // Provide the board specific details to allow the payload to
+  // initialize the chip containing the UART and make independent
+  // decisions as to which dividers to select and their values
+  // to eventually arrive at the desired console baud-rate.
+  UINT32 input_hertz;
+
+  // UART PCI address: bus, device, function
+  // 1 << 31 - Valid bit, PCI UART in use
+  // Bus << 20
+  // Device << 15
+  // Function << 12
+  UINT32 uart_pci_addr;
 };\r
 \r
 #define CB_TAG_CONSOLE       0x00010\r