Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/pci.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
#define PCI_DEVICE_ID_MELLANOX_ARBEL 0x6282 | #define PCI_DEVICE_ID_MELLANOX_ARBEL 0x6282 | ||||
#define PCI_DEVICE_ID_MELLANOX_SINAI_OLD 0x5e8c | #define PCI_DEVICE_ID_MELLANOX_SINAI_OLD 0x5e8c | ||||
#define PCI_DEVICE_ID_MELLANOX_SINAI 0x6274 | #define PCI_DEVICE_ID_MELLANOX_SINAI 0x6274 | ||||
#define PCI_SUBDEVICE_ID_QEMU 0x1100 | #define PCI_SUBDEVICE_ID_QEMU 0x1100 | ||||
#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), \ | ||||
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID | .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID | ||||
#define PCI_DEVICE(_vendor, _device) \ | #define PCI_DEVICE(_vendor, _device) \ | ||||
.vendor = (_vendor), .device = (_device), \ | .vendor = (_vendor), .device = (_device), \ | ||||
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID | .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID | ||||
▲ Show 20 Lines • Show All 742 Lines • Show Last 20 Lines |