]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/DebugPort2Table.h
MdePkg: add missing #defines for decoding PCIe 2.1 extended capability structures
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / DebugPort2Table.h
CommitLineData
18c49707
JY
1/** @file \r
2 ACPI debug port 2 table definition, defined at \r
3 Microsoft DebugPort2Specification.\r
4\r
90cce8c4
HT
5 Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
18c49707
JY
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
30typedef 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
60typedef 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