XHCI works on real hardware!

This commit is contained in:
2026-03-24 22:12:36 +01:00
parent b2e4a3802d
commit 0478570b2b
11 changed files with 215 additions and 102 deletions

View File

@@ -3,10 +3,9 @@
#include <libk/bm.h>
#include <libk/std.h>
#include <mm/types.h>
#include <sync/spin_lock.h>
#define PMM_ALLOC_ERR ((physaddr_t) - 1)
#define PMM_ALLOC_ERR ((uintptr_t)-1)
#define PMM_REGIONS_MAX 32
@@ -15,7 +14,7 @@
struct pmm_region {
spin_lock_t lock;
struct bm bm;
physaddr_t membase;
uintptr_t membase;
size_t size;
uint32_t flags;
};
@@ -25,7 +24,11 @@ struct pmm {
};
void pmm_init (void);
physaddr_t pmm_alloc (size_t nblks);
void pmm_free (physaddr_t p_addr, size_t nblks);
uintptr_t pmm_alloc (size_t nblks);
uintptr_t pmm_alloc_aligned (size_t nblks, size_t align_pages);
void pmm_free (uintptr_t p_addr, size_t nblks);
#endif // _KERNEL_MM_PMM_H