Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/pcivar.h
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
#define PCI_DEV(v, d) \ | #define PCI_DEV(v, d) \ | ||||
.match_flag_vendor = 1, .vendor = (v), \ | .match_flag_vendor = 1, .vendor = (v), \ | ||||
.match_flag_device = 1, .device = (d) | .match_flag_device = 1, .device = (d) | ||||
#define PCI_SUBDEV(sv, sd) \ | #define PCI_SUBDEV(sv, sd) \ | ||||
.match_flag_subvendor = 1, .subvendor = (sv), \ | .match_flag_subvendor = 1, .subvendor = (sv), \ | ||||
.match_flag_subdevice = 1, .subdevice = (sd) | .match_flag_subdevice = 1, .subdevice = (sd) | ||||
#define PCI_DEVID(did) \ | |||||
PCI_DEV((uint16_t)did, (uint16_t)(did >> 16)) | |||||
#define PCI_CLASS(x) \ | #define PCI_CLASS(x) \ | ||||
.match_flag_class = 1, .class_id = (x) | .match_flag_class = 1, .class_id = (x) | ||||
#define PCI_SUBCLASS(x) \ | #define PCI_SUBCLASS(x) \ | ||||
.match_flag_subclass = 1, .subclass = (x) | .match_flag_subclass = 1, .subclass = (x) | ||||
#define PCI_REVID(x) \ | #define PCI_REVID(x) \ | ||||
.match_flag_revid = 1, .revid = (x) | .match_flag_revid = 1, .revid = (x) | ||||
#define PCI_DESCR(x) \ | #define PCI_DESCR(x) \ | ||||
.descr = (x) | .descr = (x) | ||||
▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines |