Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/pci.h
Context not available. | |||||
#define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) | #define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) | ||||
#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) | #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) | ||||
#define PCI_FUNC(devfn) ((devfn) & 0x07) | #define PCI_FUNC(devfn) ((devfn) & 0x07) | ||||
#define PCI_BUS_NUM(x) (((x) >> 8) & 0xff) | |||||
#define PCI_VDEVICE(_vendor, _device) \ | #define PCI_VDEVICE(_vendor, _device) \ | ||||
.vendor = PCI_VENDOR_ID_##_vendor, .device = (_device), \ | .vendor = PCI_VENDOR_ID_##_vendor, .device = (_device), \ | ||||
Context not available. |