20 lines
426 B
C
20 lines
426 B
C
//
|
|
// 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);
|
|
}
|