svn commit: r335080 - head/sys/dev/an

Warner Losh imp at FreeBSD.org
Wed Jun 13 20:25:10 UTC 2018


Author: imp
Date: Wed Jun 13 20:25:09 2018
New Revision: 335080
URL: https://svnweb.freebsd.org/changeset/base/335080

Log:
  Add PNP info to PCI attachment of an driver
  
  Reviewed by: imp, chuck
  Submitted by: Lakhan Shiva Kamireddy <lakhanshiva at gmail.com>
  Sponsored by: Google, Inc. (GSoC 2018)

Modified:
  head/sys/dev/an/if_an_pci.c

Modified: head/sys/dev/an/if_an_pci.c
==============================================================================
--- head/sys/dev/an/if_an_pci.c	Wed Jun 13 20:25:04 2018	(r335079)
+++ head/sys/dev/an/if_an_pci.c	Wed Jun 13 20:25:09 2018	(r335080)
@@ -273,5 +273,7 @@ static driver_t an_pci_driver = {
 static devclass_t an_devclass;
 
 DRIVER_MODULE(an, pci, an_pci_driver, an_devclass, 0, 0);
+MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, an,
+    an_devs, sizeof(an_devs[0]), nitems(an_devs) - 1);
 MODULE_DEPEND(an, pci, 1, 1, 1);
 MODULE_DEPEND(an, wlan, 1, 1, 1);


More information about the svn-src-head mailing list