]>
Commit | Line | Data |
---|---|---|
1 | /** @file \r | |
2 | ACPI debug port 2 table definition, defined at \r | |
3 | Microsoft DebugPort2Specification.\r | |
4 | \r | |
5 | Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r | |
6 | This software and associated documentation (if any) is furnished\r | |
7 | under a license and may only be used or copied in accordance\r | |
8 | with the terms of the license. Except as permitted by such\r | |
9 | license, no part of this software or documentation may be\r | |
10 | reproduced, stored in a retrieval system, or transmitted in any\r | |
11 | form or by any means without the express written consent of\r | |
12 | Intel Corporation.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | \r | |
17 | #ifndef _DEBUG_PORT_2_TABLE_H_\r | |
18 | #define _DEBUG_PORT_2_TABLE_H_\r | |
19 | \r | |
20 | #include <IndustryStandard/Acpi.h>\r | |
21 | \r | |
22 | //\r | |
23 | // Ensure proper structure formats\r | |
24 | //\r | |
25 | #pragma pack(1)\r | |
26 | \r | |
27 | //\r | |
28 | // Debug Device Information structure.\r | |
29 | //\r | |
30 | typedef struct {\r | |
31 | UINT8 Revision;\r | |
32 | UINT16 Length;\r | |
33 | UINT8 NumberofGenericAddressRegisters;\r | |
34 | UINT16 NameSpaceStringLength;\r | |
35 | UINT16 NameSpaceStringOffset;\r | |
36 | UINT16 OemDataLength;\r | |
37 | UINT16 OemDataOffset;\r | |
38 | UINT16 PortType;\r | |
39 | UINT16 PortSubtype;\r | |
40 | UINT8 Reserved[2];\r | |
41 | UINT16 BaseAddressRegisterOffset;\r | |
42 | UINT16 AddressSizeOffset;\r | |
43 | } EFI_ACPI_DBG2_DEBUG_DEVICE_INFORMATION_STRUCT;\r | |
44 | \r | |
45 | #define EFI_ACPI_DBG2_DEBUG_DEVICE_INFORMATION_STRUCT_REVISION 0x00\r | |
46 | \r | |
47 | #define EFI_ACPI_DBG2_PORT_TYPE_SERIAL 0x8000\r | |
48 | #define EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550 0x0000\r | |
49 | #define EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_16550_SUBSET_COMPATIBLE_WITH_MS_DBGP_SPEC 0x0001\r | |
50 | #define EFI_ACPI_DBG2_PORT_TYPE_1394 0x8001\r | |
51 | #define EFI_ACPI_DBG2_PORT_SUBTYPE_1394_STANDARD 0x0000\r | |
52 | #define EFI_ACPI_DBG2_PORT_TYPE_USB 0x8002\r | |
53 | #define EFI_ACPI_DBG2_PORT_SUBTYPE_USB_XHCI 0x0000\r | |
54 | #define EFI_ACPI_DBG2_PORT_SUBTYPE_USB_EHCI 0x0001\r | |
55 | #define EFI_ACPI_DBG2_PORT_TYPE_NET 0x8003\r | |
56 | \r | |
57 | //\r | |
58 | // Debug Port 2 Table definition.\r | |
59 | //\r | |
60 | typedef struct {\r | |
61 | EFI_ACPI_DESCRIPTION_HEADER Header;\r | |
62 | UINT32 OffsetDbgDeviceInfo;\r | |
63 | UINT32 NumberDbgDeviceInfo;\r | |
64 | } EFI_ACPI_DEBUG_PORT_2_DESCRIPTION_TABLE;\r | |
65 | \r | |
66 | #pragma pack()\r | |
67 | \r | |
68 | //\r | |
69 | // DBG2 Revision (defined in spec)\r | |
70 | //\r | |
71 | #define EFI_ACPI_DEBUG_PORT_2_TABLE_REVISION 0x00\r | |
72 | \r | |
73 | #endif\r |