feat: rank drivers at compile time

This commit is contained in:
2021-03-07 20:30:07 +01:00
parent f6e720bad9
commit 945b18b2b2
11 changed files with 1254 additions and 62 deletions

View File

@@ -671,10 +671,9 @@ uint8_t ide_access(uint8_t direction, uint8_t drive, uint32_t lba, uint8_t numse
return result;
}
PCI_DRIVER(
PCI_DRIVER(900) = {
.name = "pci-ide",
.description = "Default PCI IDE Driver",
.rank = 10000, // let other block_dev_drivers precede if they can
.validatable = true,
.initialisable = true,
.match.class = PCI_CLASS_MASS_STORAGE,
@@ -683,5 +682,5 @@ PCI_DRIVER(
.mask.subclass = true,
.validate = ide_pci_validate,
.initialize = ide_pci_initialize,
);
};