kernel: move drivers to own file

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-11 21:09:36 -04:00
commit b6c9e0a2ba
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
12 changed files with 83 additions and 22 deletions

View file

@ -5,6 +5,7 @@
#include <kernel/block.h>
#include <kernel/page.h>
#include <kernel/sg.h>
#include <kernel/driver.h>
#include <arch/page.h>
#include <drivers/pci.h>
@ -394,19 +395,6 @@ void ahci_init()
list_t dev_list;
list_create(&dev_list);
pci_find_device(1, 6, &dev_list);
list_item_t *item = dev_list.head;
size_t i = 0;
while (item) {
int res = ahci_init_device(item->ptr, i++);
if (res < 0)
kerr("ahci_init_device: %s\n", strerror(-res));
item = item->next;
}
krdy("AHCI ready\n");
}
DRIVER_ENTRY_PRIORITY(ahci_init, 3);