Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2018 20:25:00 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335078 - head/sys/dev/aacraid
Message-ID:  <201806132025.w5DKP0wN049980@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Jun 13 20:25:00 2018
New Revision: 335078
URL: https://svnweb.freebsd.org/changeset/base/335078

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

Modified:
  head/sys/dev/aacraid/aacraid_pci.c

Modified: head/sys/dev/aacraid/aacraid_pci.c
==============================================================================
--- head/sys/dev/aacraid/aacraid_pci.c	Wed Jun 13 20:24:49 2018	(r335077)
+++ head/sys/dev/aacraid/aacraid_pci.c	Wed Jun 13 20:25:00 2018	(r335078)
@@ -85,9 +85,6 @@ static driver_t aacraid_pci_driver = {
 
 static devclass_t	aacraid_devclass;
 
-DRIVER_MODULE(aacraid, pci, aacraid_pci_driver, aacraid_devclass, 0, 0);
-MODULE_DEPEND(aacraid, pci, 1, 1, 1);
-
 struct aac_ident
 {
 	u_int16_t		vendor;
@@ -106,6 +103,12 @@ struct aac_ident
 	 "Adaptec RAID Controller"},
 	{0, 0, 0, 0, 0, 0, 0}
 };
+
+DRIVER_MODULE(aacraid, pci, aacraid_pci_driver, aacraid_devclass, 0, 0);
+MODULE_PNP_INFO("U16:vendor;U16:device", pci, aacraid,
+    aacraid_family_identifiers, sizeof(aacraid_family_identifiers[0]),
+    nitems(aacraid_family_identifiers) - 1);
+MODULE_DEPEND(aacraid, pci, 1, 1, 1);
 
 static struct aac_ident *
 aac_find_ident(device_t dev)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806132025.w5DKP0wN049980>