X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..9bccf70c0258c7cac2dcb80011b2a964d884c552:/iokit/IOKit/pci/IOPCIDevice.h?ds=sidebyside diff --git a/iokit/IOKit/pci/IOPCIDevice.h b/iokit/IOKit/pci/IOPCIDevice.h index 43c4fbead..158e85a2a 100644 --- a/iokit/IOKit/pci/IOPCIDevice.h +++ b/iokit/IOKit/pci/IOPCIDevice.h @@ -149,6 +149,14 @@ struct IOPCIPhysicalAddress { #define kIOPCISecondaryMatchKey "IOPCISecondaryMatch" #define kIOPCIClassMatchKey "IOPCIClassMatch" +// property to control PCI default config space save on sleep +#define kIOPMPCIConfigSpaceVolatileKey "IOPMPCIConfigSpaceVolatile" + +enum { + kIOPCIDevicePowerStateCount = 3, + kIOPCIDeviceOffState = 0, + kIOPCIDeviceOnState = 2 +}; /*! @class IOPCIDevice : public IOService @abstract An IOService class representing a PCI device. @@ -241,12 +249,8 @@ public: /* IOService/IORegistryEntry methods */ virtual bool attach( IOService * provider ); - virtual unsigned long maxCapabilityForDomainState( IOPMPowerFlags ); - virtual unsigned long initialPowerStateForDomainState( IOPMPowerFlags ); - virtual unsigned long powerStateForDomainState( IOPMPowerFlags ); + virtual void detach( IOService * provider ); virtual IOReturn setPowerState( unsigned long, IOService * ); - virtual IOReturn addPowerChild ( IOService * theChild ); - virtual void joinPMtree( IOService * driver ); virtual bool compareName( OSString * name, OSString ** matched = 0 ) const; virtual bool matchPropertyTable( OSDictionary * table, SInt32 * score ); @@ -394,7 +398,8 @@ public: /*! @function mapDeviceMemoryWithRegister @abstract Maps a physical range of the device. @discussion This method will create a mapping for the IODeviceMemory for the physical memory range that was assigned to the configuration space base address register passed in, with IODeviceMemory::map(options). The mapping is represented by the returned instance of IOMemoryMap, which should not be released until the mapping is no longer required. This method is analogous to IOService::mapDeviceMemoryWithIndex. - @param index An index into the array of ranges assigned to the device. + @param reg The 8-bit configuration space register that is the base address register for the desired range. + @param options Options to be passed to the IOMemoryDescriptor::map() method. @result An instance of IOMemoryMap, or zero if the index is beyond the count available. The mapping should be released only when access to it is no longer required. */ virtual IOMemoryMap * mapDeviceMemoryWithRegister( UInt8 reg,