XHCI baby steps!
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 3m31s
Build documentation / build-and-deploy (push) Successful in 2m55s

This commit is contained in:
2026-03-22 17:59:54 +01:00
parent 72715d19e0
commit a4c5df8db4
7 changed files with 228 additions and 4 deletions

27
kernel/device/xhci.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef _KERNEL_DEVICE_XHCI_H
#define _KERNEL_DEVICE_XHCI_H
#include <device/def_device_op.h>
#include <libk/list.h>
#include <libk/std.h>
#include <proc/proc.h>
#include <proc/reschedule.h>
#include <proc/suspension_q.h>
struct xhci_init {
uintptr_t xhci_mmio_base;
};
struct xhci {
struct device* device;
uintptr_t xhci_mmio_base;
uintptr_t xhci_oper_base;
uintptr_t xhci_runtime_base;
uintptr_t xhci_doorbell_base;
};
DEFINE_DEVICE_INIT (xhci_init);
DEFINE_DEVICE_FINI (xhci_fini);
#endif // _KERNEL_DEVICE_XHCI_H