--- /dev/null
+/** @file \r
+ ACPI debug port 2 table definition, defined at \r
+ Microsoft DebugPort2Specification.\r
+\r
+Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+This software and associated documentation (if any) is furnished\r
+under a license and may only be used or copied in accordance\r
+with the terms of the license. Except as permitted by such\r
+license, no part of this software or documentation may be\r
+reproduced, stored in a retrieval system, or transmitted in any\r
+form or by any means without the express written consent of\r
+Intel Corporation.\r
+\r
+**/\r
+\r
+\r
+#ifndef _DEBUG_PORT_2_TABLE_H_\r
+#define _DEBUG_PORT_2_TABLE_H_\r
+\r
+#include <IndustryStandard/Acpi.h>\r
+\r
+//\r
+// Ensure proper structure formats\r
+//\r
+#pragma pack(1)\r
+\r
+//\r
+// Debug Device Information structure.\r
+//\r
+typedef struct {\r
+ UINT8 Revision;\r
+ UINT16 Length;\r
+ UINT8 NumberofGenericAddressRegisters;\r
+ UINT16 NameSpaceStringLength;\r
+ UINT16 NameSpaceStringOffset;\r
+ UINT16 OemDataLength;\r
+ UINT16 OemDataOffset;\r
+ UINT16 PortType;\r
+ UINT16 PortSubtype;\r
+ UINT8 Reserved[2];\r
+ UINT16 BaseAddressRegisterOffset;\r
+ UINT16 AddressSizeOffset;\r
+} EFI_ACPI_DBG2_DEBUG_DEVICE_INFORMATION_STRUCT;\r
+\r
+#define EFI_ACPI_DBG2_DEBUG_DEVICE_INFORMATION_STRUCT_REVISION 0x00\r
+\r
+#define EFI_ACPI_DBG2_PORT_TYPE_SERIAL 0x8000\r
+#define EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550 0x0000\r
+#define EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_16550_SUBSET_COMPATIBLE_WITH_MS_DBGP_SPEC 0x0001\r
+#define EFI_ACPI_DBG2_PORT_TYPE_1394 0x8001\r
+#define EFI_ACPI_DBG2_PORT_SUBTYPE_1394_STANDARD 0x0000\r
+#define EFI_ACPI_DBG2_PORT_TYPE_USB 0x8002\r
+#define EFI_ACPI_DBG2_PORT_SUBTYPE_USB_XHCI 0x0000\r
+#define EFI_ACPI_DBG2_PORT_SUBTYPE_USB_EHCI 0x0001\r
+#define EFI_ACPI_DBG2_PORT_TYPE_NET 0x8003\r
+\r
+//\r
+// Debug Port 2 Table definition.\r
+//\r
+typedef struct {\r
+ EFI_ACPI_DESCRIPTION_HEADER Header;\r
+ UINT32 OffsetDbgDeviceInfo;\r
+ UINT32 NumberDbgDeviceInfo;\r
+} EFI_ACPI_DEBUG_PORT_2_DESCRIPTION_TABLE;\r
+\r
+#pragma pack()\r
+\r
+//\r
+// DBG2 Revision (defined in spec)\r
+//\r
+#define EFI_ACPI_DEBUG_PORT_2_TABLE_REVISION 0x00\r
+\r
+#endif\r
--- /dev/null
+/** @file \r
+ ACPI debug port table definition, defined at \r
+ Microsoft DebugPortSpecification.\r
+\r
+Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+This software and associated documentation (if any) is furnished\r
+under a license and may only be used or copied in accordance\r
+with the terms of the license. Except as permitted by such\r
+license, no part of this software or documentation may be\r
+reproduced, stored in a retrieval system, or transmitted in any\r
+form or by any means without the express written consent of\r
+Intel Corporation.\r
+\r
+**/\r
+\r
+\r
+#ifndef _DEBUG_PORT_TABLE_H_\r
+#define _DEBUG_PORT_TABLE_H_\r
+\r
+#include <IndustryStandard/Acpi.h>\r
+\r
+//\r
+// Ensure proper structure formats\r
+//\r
+#pragma pack(1)\r
+\r
+//\r
+// Debug Port Table definition.\r
+//\r
+typedef struct {\r
+ EFI_ACPI_DESCRIPTION_HEADER Header;\r
+ UINT8 InterfaceType;\r
+ UINT8 Reserved_37[3];\r
+ EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE BaseAddress;\r
+} EFI_ACPI_DEBUG_PORT_DESCRIPTION_TABLE;\r
+\r
+#pragma pack()\r
+\r
+//\r
+// DBGP Revision (defined in spec)\r
+//\r
+#define EFI_ACPI_DEBUG_PORT_TABLE_REVISION 0x01\r
+\r
+//\r
+// Interface Type\r
+//\r
+#define EFI_ACPI_DBGP_INTERFACE_TYPE_FULL_16550 0\r
+#define EFI_ACPI_DBGP_INTERFACE_TYPE_16550_SUBSET_COMPATIBLE_WITH_MS_DBGP_SPEC 1\r
+\r
+#endif\r