diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2017-09-14 15:34:45 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2017-09-14 15:34:45 +0000 |
commit | a64bf59c499c36895b9018d4124f3fcd71ac2cb8 (patch) | |
tree | 1f2b5dcb1037bd6e7a96bc5a276ad66892295eb6 /sys/dev/ioat | |
parent | 8df419f2dff302f7dd92db2b4a969c54731b4475 (diff) | |
download | src-a64bf59c499c36895b9018d4124f3fcd71ac2cb8.tar.gz src-a64bf59c499c36895b9018d4124f3fcd71ac2cb8.zip |
Add PNP metadata to a few drivers
An eventual devd(8) or other component should be able to scan buses and
automatically load drivers that match device ids described in this metadata.
Reviewed by: imp
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12364
Notes
Notes:
svn path=/head/; revision=323586
Diffstat (limited to 'sys/dev/ioat')
-rw-r--r-- | sys/dev/ioat/ioat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c index 1224e207bec0..2052ff48c4b9 100644 --- a/sys/dev/ioat/ioat.c +++ b/sys/dev/ioat/ioat.c @@ -236,10 +236,11 @@ static struct _pcsid { 0x6f278086, "BDX IOAT Ch7" }, { 0x6f2e8086, "BDX IOAT Ch0 (RAID)" }, { 0x6f2f8086, "BDX IOAT Ch1 (RAID)" }, - - { 0x00000000, NULL } }; +MODULE_PNP_INFO("W32:vendor/device;D:human", pci, ioat, pci_ids, + sizeof(pci_ids[0]), nitems(pci_ids)); + /* * OS <-> Driver linkage functions */ @@ -250,7 +251,7 @@ ioat_probe(device_t device) u_int32_t type; type = pci_get_devid(device); - for (ep = pci_ids; ep->type; ep++) { + for (ep = pci_ids; ep < &pci_ids[nitems(pci_ids)]; ep++) { if (ep->type == type) { device_set_desc(device, ep->desc); return (0); |