From f0b15b392130a89b071985bb7ec21a5b4ff8158b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 11 Oct 2025 16:31:55 -0400 Subject: kern: pci: Use LU types instead of classrev field Instead of using bitfields to say which kind identification we are doing, it is a better idea to just use the lookup type directly as it is more scalable Signed-off-by: Ian Moffett --- src/sys/io/ic/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys/io/ic') diff --git a/src/sys/io/ic/ahci.c b/src/sys/io/ic/ahci.c index 725fbcf..95cfbda 100644 --- a/src/sys/io/ic/ahci.c +++ b/src/sys/io/ic/ahci.c @@ -536,7 +536,7 @@ ahci_attach(struct pci_adv *adv) static struct pci_adv driver = { .lookup = PCI_CS_ID(0x1, 0x06), .attach = ahci_attach, - .classrev = 1 + .idtype = PCI_LU_CLASSREV }; MODULE_EXPORT("ahci", MODTYPE_PCI, ahci_init); -- cgit v1.2.3