Add PNP info to the PCI attachment of the ahci driver

Mark the PNP table, but still need to handle the CLASS / SUBCLASS /
REVID matching.

Reviewed by: imp, chuck
Submitted by: Lakhan Shiva Kamireddy <lakhanshiva@gmail.com>
Sponsored by: Google, Inc. (GSoC 2018)
This commit is contained in:
Warner Losh 2018-06-13 20:25:04 +00:00
parent c3f3f3e648
commit 491589f3af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335079

View file

@ -664,6 +664,9 @@ static driver_t ahci_driver = {
sizeof(struct ahci_controller)
};
DRIVER_MODULE(ahci, pci, ahci_driver, ahci_devclass, NULL, NULL);
/* Also matches class / subclass / progid XXX need to add when we have masking support */
MODULE_PNP_INFO("W32:vendor/device", pci, ahci, ahci_ids,
sizeof(ahci_ids[0]), nitems(ahci_ids) - 1);
static device_method_t ahci_ata_methods[] = {
DEVMETHOD(device_probe, ahci_ata_probe),
DEVMETHOD(device_attach, ahci_pci_attach),