Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/pci.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
#include <linux/list.h> | #include <linux/list.h> | ||||
#include <linux/dmapool.h> | #include <linux/dmapool.h> | ||||
#include <linux/dma-mapping.h> | #include <linux/dma-mapping.h> | ||||
#include <linux/compiler.h> | #include <linux/compiler.h> | ||||
#include <linux/errno.h> | #include <linux/errno.h> | ||||
#include <asm/atomic.h> | #include <asm/atomic.h> | ||||
#include <linux/device.h> | #include <linux/device.h> | ||||
#include <linux/pci_ids.h> | |||||
struct pci_device_id { | struct pci_device_id { | ||||
uint32_t vendor; | uint32_t vendor; | ||||
uint32_t device; | uint32_t device; | ||||
uint32_t subvendor; | uint32_t subvendor; | ||||
uint32_t subdevice; | uint32_t subdevice; | ||||
uint32_t class; | uint32_t class; | ||||
uint32_t class_mask; | uint32_t class_mask; | ||||
uintptr_t driver_data; | uintptr_t driver_data; | ||||
}; | }; | ||||
#define MODULE_DEVICE_TABLE(bus, table) | #define MODULE_DEVICE_TABLE(bus, table) | ||||
#define PCI_BASE_CLASS_DISPLAY 0x03 | |||||
#define PCI_CLASS_DISPLAY_VGA 0x0300 | |||||
#define PCI_CLASS_DISPLAY_OTHER 0x0380 | |||||
#define PCI_BASE_CLASS_BRIDGE 0x06 | |||||
#define PCI_CLASS_BRIDGE_ISA 0x0601 | |||||
#define PCI_ANY_ID -1U | #define PCI_ANY_ID -1U | ||||
#define PCI_VENDOR_ID_APPLE 0x106b | |||||
#define PCI_VENDOR_ID_ASUSTEK 0x1043 | |||||
#define PCI_VENDOR_ID_ATI 0x1002 | |||||
#define PCI_VENDOR_ID_DELL 0x1028 | |||||
#define PCI_VENDOR_ID_HP 0x103c | |||||
#define PCI_VENDOR_ID_IBM 0x1014 | |||||
#define PCI_VENDOR_ID_INTEL 0x8086 | |||||
#define PCI_VENDOR_ID_MELLANOX 0x15b3 | |||||
#define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4 | |||||
#define PCI_VENDOR_ID_SERVERWORKS 0x1166 | |||||
#define PCI_VENDOR_ID_SONY 0x104d | |||||
#define PCI_VENDOR_ID_TOPSPIN 0x1867 | |||||
#define PCI_VENDOR_ID_VIA 0x1106 | |||||
#define PCI_SUBVENDOR_ID_REDHAT_QUMRANET 0x1af4 | |||||
#define PCI_DEVICE_ID_ATI_RADEON_QY 0x5159 | |||||
#define PCI_DEVICE_ID_MELLANOX_TAVOR 0x5a44 | |||||
#define PCI_DEVICE_ID_MELLANOX_TAVOR_BRIDGE 0x5a46 | |||||
#define PCI_DEVICE_ID_MELLANOX_ARBEL_COMPAT 0x6278 | |||||
#define PCI_DEVICE_ID_MELLANOX_ARBEL 0x6282 | |||||
#define PCI_DEVICE_ID_MELLANOX_SINAI_OLD 0x5e8c | |||||
#define PCI_DEVICE_ID_MELLANOX_SINAI 0x6274 | |||||
#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(devfn) (((devfn) >> 8) & 0xff) | #define PCI_BUS_NUM(devfn) (((devfn) >> 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), \ | ||||
▲ Show 20 Lines • Show All 1,059 Lines • Show Last 20 Lines |