Skip to content

Commit

Permalink
Add PCI_SUBDEVICE macro
Browse files Browse the repository at this point in the history
Reviewed by: imp, chuck
Only subdevice is matched (not subvendor)
Submitted by: Lakhan Shiva Kamireddy <lakhanshiva@gmail.com>
Sponsored by: Google, Inc. (GSoC 2018)
Pull Request: #11
Url: https://reviews.freebsd.org/D16363
  • Loading branch information
lakhanshiva authored and bsdimp committed Aug 13, 2018
1 parent a35e351 commit 86ff578
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/dev/pci/pcivar.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ struct pci_device_table {
#define PCI_SUBDEV(sv, sd) \
.match_flag_subvendor = 1, .subvendor = (sv), \
.match_flag_subdevice = 1, .subdevice = (sd)
#define PCI_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) \
Expand Down

0 comments on commit 86ff578

Please sign in to comment.