feat: started pci driver structure and ide driver structure
This commit is contained in:
19
kernel/drivers/ide.c
Normal file
19
kernel/drivers/ide.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user