kexts: pci: add function to get pci-specific device data
This commit is contained in:
@@ -110,5 +110,9 @@ extern uint16_t pci_find_type(uint32_t dev);
|
|||||||
|
|
||||||
extern uint32_t pci_device_read_field(struct device *dev, int field, int size);
|
extern uint32_t pci_device_read_field(struct device *dev, int field, int size);
|
||||||
extern void pci_device_write_field(struct device *dev, int field, int size, uint32_t value);
|
extern void pci_device_write_field(struct device *dev, int field, int size, uint32_t value);
|
||||||
|
static inline struct pci_device *device_get_pci_info(struct device *dev)
|
||||||
|
{
|
||||||
|
return dev->dev_bus_priv;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user