feat: started pci driver structure and ide driver structure

This commit is contained in:
2021-02-03 22:50:39 +01:00
parent e8816cfdfd
commit 706147c123
9 changed files with 373 additions and 1 deletions

19
kernel/drivers/ide.c Normal file
View File

@@ -0,0 +1,19 @@
//
// Created by rick on 03-02-21.
//
#include "ide.h"
#include <types.h>
#include <kprint.h>
#include <drivers/pci.h>
const char* ide_pci_driver_name = "pci-ide";
void ide_handle_pci_device(u8 bus, u8 slot, u8 func) {
kprint("IDE registered");
// todo
}
void ide_register() {
pci_register_driver(PCI_CLASS_MASS_STORAGE, PCI_SUB_CLASS_IDE, PCI_FLAG_USE_SUBCLASS, ide_handle_pci_device, ide_pci_driver_name);
}