Skip to content

Commit 828afe9

Browse files
committed
add missing xring acpi vendor header.
1 parent 49833dc commit 828afe9

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

‎include/vendor/xring/acpi_vendor.h‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#pragma once
2+
3+
#define ACPI_TABLE_HEADER_OEM_ID 'X', 'R', 'T', 'K', ' ', ' ' // "XRTK "
4+
#define ACPI_TABLE_HEADER_OEM_TABLE_ID \
5+
'X', 'R', 'T', 'K', 'E', 'D', 'K', '2' // "XRTKEDK2"
6+
#define ACPI_CSRT_VENDOR_ID 0x4B545258ULL // 'K','T','R','X'
7+
#define ACPI_CSRT_SUB_VENDOR_ID 0x0ULL
8+
9+
#define ACPI_FACP_HYP_VENDOR_ID 0x4B545258ULL // 'K','T','R','X'
10+
11+
enum ACPI_CSRT_DEVICE_ID {
12+
DEVICE_ID_TIMER = 0x100B,
13+
DEVICE_ID_MISC = 0x100C,
14+
};
15+
16+
#define DBG2_DECLARE_XRTK_DW_UARD(name, namepath, address) \
17+
.UARD = { \
18+
.Revision = 1, \
19+
.Length = sizeof(DBG2_GET_DEBUG_DEVICE_INFO_STRUCTURE_NAME(name)), \
20+
.NumOfGenericAddrRegs = 1, \
21+
.NamespaceStringLen = sizeof(namepath), \
22+
.NamespaceStringOffset = offsetof( \
23+
DBG2_GET_DEBUG_DEVICE_INFO_STRUCTURE_NAME(name), NamespaceString), \
24+
.OemDataLen = 0, \
25+
.OemDataOffset = 0, \
26+
.PortType = DBG2_DEBUG_PORT_TYPE_SERIAL, \
27+
.PortSubtype = DBG2_DEBUG_PORT_SUBTYPE_SERIAL_16550_COMPATIBLE_WITH_PARAS_DEF_IN_GAS, \
28+
.BaseAddrRegOffset = offsetof( \
29+
DBG2_GET_DEBUG_DEVICE_INFO_STRUCTURE_NAME(name), BaseAddrRegister), \
30+
.AddrSizeOffset = offsetof( \
31+
DBG2_GET_DEBUG_DEVICE_INFO_STRUCTURE_NAME(name), AddressSize), \
32+
.BaseAddrRegister = \
33+
{ \
34+
{ \
35+
.AddressSpaceID = 0x0, \
36+
.RegisterBitWidth = 0x20, \
37+
.RegisterBitOffset = 0, \
38+
.AccessSize = 0x03, \
39+
.Address = address, \
40+
}, \
41+
}, \
42+
.AddressSize = {0x1000}, \
43+
.NamespaceString = namepath, \
44+
}
45+
46+
/** PortType in dbg2 device info for usb controllers.
47+
Reference to:
48+
\Windows Kits\10\Debuggers\ddk\samples\kdnet\usb\qualcomm\kdqcom\kdextension.c
49+
*/
50+
enum {
51+
DBG2_QCOM_DEBUG_PORT_SUBTYPE_CHIPIDEA_USBFN = 1,
52+
DBG2_QCOM_DEBUG_PORT_SUBTYPE_CHIPIDEA_AX88772 = 2,
53+
DBG2_QCOM_DEBUG_PORT_SUBTYPE_CHIPIDEA_USBFNB = 3,
54+
DBG2_QCOM_DEBUG_PORT_SUBTYPE_SYNOPSYS_USBFN = 4,
55+
DBG2_QCOM_DEBUG_PORT_SUBTYPE_SYNOPSYS_USBFNB = 5,
56+
};

0 commit comments

Comments
 (0)