feat: start setup virtio

This commit is contained in:
2022-09-01 20:45:40 +02:00
parent e850dabc8b
commit f037adcebd
7 changed files with 196 additions and 3 deletions

View File

@@ -421,7 +421,7 @@ void ide_register_block_devices() {
uint8_t att_used ide_pci_validate(const pci_device *device) {
if (device->class != PCI_CLASS_MASS_STORAGE
|| device->subclass != PCI_SUB_CLASS_IDE
|| device->subclass != PCI_SUB_CLASS_MASS_IDE
|| (device->programInterface != 0x8A && device->programInterface != 0x80)) {
return PCI_VALIDATE_FAIL;
}
@@ -686,7 +686,7 @@ PCI_DRIVER(900) = {
.validatable = true,
.initialisable = true,
.match.class = PCI_CLASS_MASS_STORAGE,
.match.subclass = PCI_SUB_CLASS_IDE,
.match.subclass = PCI_SUB_CLASS_MASS_IDE,
.mask.class = true,
.mask.subclass = true,
.validate = ide_pci_validate,