-static struct pci_device_def ahcidef = {
- .dev_class = AHCI_HBA_CLASS,
- .ident_mask = PCI_MATCH_ANY,
- .devdef = { .class = DEVCLASS(DEVIF_PCI, DEVFN_STORAGE, DEV_SATA),
- .name = "Generic SATA",
- .init = ahci_pci_init,
- .bind = ahci_pci_bind }
+
+static struct device_def ahcidef =
+{
+ def_device_class(GENERIC, STORAGE, SATA),
+ def_device_name("Generic AHCI (pci-bus)"),
+
+ def_on_register(ahci_pci_register),
+ def_on_create(ahci_pci_create),
+
+ def_non_trivial