kexts: pci: add function to get pci-specific device data

This commit is contained in:
2023-07-09 09:07:02 +01:00
parent 49f50859b5
commit 7d51bcb7b8

View File

@@ -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 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