1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #define MAKE_IIO_DEV(id,rt) \
6 Name (_HID, EisaId ("PNP0A08") /* PCI Express Bus */) \
7 Name (_CID, EisaId ("PNP0A03") /* PCI Bus */) \
9 Method (_PRT, 0, NotSerialized) \
13 Return (\_SB_.AR##rt) \
15 Return (\_SB_.PR##rt) \
19 Name (_PXM, 0x00) /* _PXM: Device Proximity */ \
20 Method (_OSC, 4, NotSerialized) \
22 CreateDWordField (Arg3, 0x00, CDW1) \
23 If ((Arg0 == ToUUID ("33db4d5b-1ff7-401c-9657-7441c03dd766") /* PCI Host Bridge Device */)) \
27 CDW1 |= 0x02 /* Unknown failure */ \
30 CreateDWordField (Arg3, 0x04, CDW2) \
31 CreateDWordField (Arg3, 0x08, CDW3) \
34 If ((SUPP & 0x16) != 0x16) \
38 /* Never allow SHPC (no SHPC controller in system) */ \
40 /* Disable Native PCIe AER handling from OS */ \
42 If ((Arg1 != 1)) /* unknown revision */ \
46 If ((CDW3 != CTRL)) /* capabilities bits were masked */ \
55 /* indicate unrecognized UUID */ \
68 #if (CONFIG_MAX_SOCKET > 1)