-static struct pci_device_def ahcidef = {
- .devdef = { .class = DEVCLASS(DEVIF_PCI, DEVFN_STORAGE, DEV_SATA),
- .name = "Generic AHCI",
- .init = ahci_pci_init,
- .bind = ahci_pci_bind },
- .test_compatibility = ahci_pci_compat
+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