#include <IOKit/pci/IOPCIDevice.h>
IOKit/pci/IOPCIDevice.h Kernel.framework
11 macros · 10 enums · 3 typedefs · 2 structs · 1 union
#define TARGET_OS_HAS_PCIDRIVERKIT_IOPCIDEVICE __has_include(<PCIDriverKit/IOPCIDevice.h>)
Definitions of PCI Config Registers
underlying type unsigned int
| kIOPCIConfigVendorID | 0 | |
| kIOPCIConfigDeviceID | 2 | |
| kIOPCIConfigCommand | 4 | |
| kIOPCIConfigStatus | 6 | |
| kIOPCIConfigRevisionID | 8 | |
| kIOPCIConfigClassCode | 9 | |
| kIOPCIConfigCacheLineSize | 12 | |
| kIOPCIConfigLatencyTimer | 13 | |
| 14 | |
| kIOPCIConfigBIST | 15 | |
| kIOPCIConfigBaseAddress0 | 16 | |
| kIOPCIConfigBaseAddress1 | 20 | |
| kIOPCIConfigBaseAddress2 | 24 | |
| kIOPCIConfigBaseAddress3 | 28 | |
| kIOPCIConfigBaseAddress4 | 32 | |
| kIOPCIConfigBaseAddress5 | 36 | |
| kIOPCIConfigCardBusCISPtr | 40 | |
| kIOPCIConfigSubSystemVendorID | 44 | |
| kIOPCIConfigSubSystemID | 46 | |
| kIOPCIConfigExpansionROMBase | 48 | |
| kIOPCIConfigCapabilitiesPtr | 52 | |
| kIOPCIConfigInterruptLine | 60 | |
| kIOPCIConfigInterruptPin | 61 | |
| kIOPCIConfigMinimumGrant | 62 | |
| kIOPCIConfigMaximumLatency | 63 | |
Definitions of Capabilities PCI Config Register
underlying type unsigned int
| kIOPCIPowerManagementCapability | 1 | |
| kIOPCIAGPCapability | 2 | |
| kIOPCIVitalProductDataCapability | 3 | |
| kIOPCISlotIDCapability | 4 | |
| kIOPCIMSICapability | 5 | |
| kIOPCICPCIHotswapCapability | 6 | |
| kIOPCIPCIXCapability | 7 | |
| kIOPCILDTCapability | 8 | |
| kIOPCIVendorSpecificCapability | 9 | |
| kIOPCIDebugPortCapability | 10 | |
| kIOPCICPCIResourceControlCapability | 11 | |
| kIOPCIHotplugCapability | 12 | |
| kIOPCIAGP8Capability | 14 | |
| kIOPCISecureCapability | 15 | |
| kIOPCIPCIExpressCapability | 16 | |
| kIOPCIMSIXCapability | 17 | |
| kIOPCIFPBCapability | 21 | |
| kIOPCIExpressErrorReportingCapability | 4294967295 | |
| kIOPCIExpressVirtualChannelCapability | 4294967294 | |
| kIOPCIExpressDeviceSerialNumberCapability | 4294967293 | |
| kIOPCIExpressPowerBudgetCapability | 4294967292 | |
| kIOPCIExpressAccessControlServicesCapability | 4294967283 | |
| kIOPCIExpressLatencyTolerenceReportingCapability | 4294967272 | |
| kIOPCIExpressL1PMSubstatesCapability | 4294967266 | |
Space definitions
underlying type unsigned int
| kIOPCIConfigSpace | 0 | |
| kIOPCIIOSpace | 1 | |
| kIOPCI32BitMemorySpace | 2 | |
| kIOPCI64BitMemorySpace | 3 | |
underlying type unsigned int
| kPCI2PCIPrimaryBus | 24 | |
| kPCI2PCISecondaryBus | 25 | |
| kPCI2PCISubordinateBus | 26 | |
| kPCI2PCISecondaryLT | 27 | |
| kPCI2PCIIORange | 28 | |
| kPCI2PCIMemoryRange | 32 | |
| kPCI2PCIPrefetchMemoryRange | 36 | |
| kPCI2PCIPrefetchUpperBase | 40 | |
| kPCI2PCIPrefetchUpperLimit | 44 | |
| kPCI2PCIUpperIORange | 48 | |
| kPCI2PCIBridgeControl | 62 | |
#define IOPCIPMCSPMEDISABLEINS3_DEFINED 1
#define IOPCIPMCSPMEWAKEREASON_DEFINED 1
size 4, align 4
| UInt32 | bits | |
| unnamed struct at Kernel/IOKit/pci/IOPCIDevice.h:121:5 | s | |
| | unsigned int:8 | registerNum | | | unsigned int:3 | functionNum | | | unsigned int:5 | deviceNum | | | unsigned int:8 | busNum | | | unsigned int:2 | space | | | unsigned int:3 | resv | | | unsigned int:1 | t | | | unsigned int:1 | prefetch | | | unsigned int:1 | reloc | |
|
| unnamed struct at Kernel/IOKit/pci/IOPCIDevice.h:144:5 | es | |
| | unsigned int:8 | registerNum | | | unsigned int:3 | functionNum | | | unsigned int:5 | deviceNum | | | unsigned int:8 | busNum | | | unsigned int:4 | registerNumExtended | | | unsigned int:4 | resv | |
|
typedef union IOPCIAddressSpace IOPCIAddressSpace
#define kIOPCIDeviceASPMSupportedKey "pci-aspm-supported"
#define kIOPCIPMEOptionsKey "IOPCIPMEOptions"
#define kIOPCITunnelIDKey "IOPCITunnelID"
#define kIOPCITunnelControllerIDKey "IOPCITunnelControllerID"
#define kIOPCIBridgeInterruptESKey "IOPCIBridgeInterruptES"
#define kIOPCIDeviceDeviceTreeEntryKey "IOPCIDeviceDeviceTreeEntry"
underlying type unsigned int
| kIOPCIDevicePowerStateCount | 4 | |
| kIOPCIDeviceOffState | 0 | |
| kIOPCIDeviceDozeState | 1 | |
| kIOPCIDeviceOnState | 2 | |
| kIOPCIDevicePausedState | 3 | |
setLatencyTolerance options
underlying type unsigned int
| kIOPCILatencySnooped | 1 | |
| kIOPCILatencyUnsnooped | 2 | |
underlying type unsigned int
| kIOPCIProbeOptionDone | 2147483648 | |
| kIOPCIProbeOptionEject | 1048576 | |
| kIOPCIProbeOptionNeedsScan | 2097152 | |
saveDeviceState options
underlying type unsigned int
| kIOPCIConfigShadowPermanent | 2147483648 | |
IOPCIEvent.event
underlying type unsigned int
| kIOPCIEventCorrectableError | 1 | |
| kIOPCIEventNonFatalError | 2 | |
| kIOPCIEventFatalError | 3 | |
| kIOPCIEventLinkEnableChange | 4 | |
| kIOPCIEventIOMMUError | 5 | |
size 32, align 8
| IOPCIDevice * | reporter | |
| uint32_t | event | |
| uint32_t[5] | data | |
underlying type unsigned int
| kIOPCIResetNone | 0 | |
| kIOPCIResetHot | 1 | |
#define IOPCIEventAction IOPCIEventSource::Action
typedef IOReturn (*)(void *, IOMessage, IOPCIDevice *, uint32_t) IOPCIDeviceConfigHandler;
typedef IOPCIResetType (* IOPCIDeviceCrashNotification_t)(void *clientObject, IOPCIDevice *device)