XHCI baby steps!
This commit is contained in:
27
kernel/device/xhci.h
Normal file
27
kernel/device/xhci.h
Normal 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
|
||||
Reference in New Issue
Block a user