d
This commit is contained in:
Alvin-Zilverstand committed 2026-10-09 20:06:51 +02:00
1 parent 3d06f94e48
commit 57787bfc7f
59 files changed
+9967 -410

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#ifndef BOB64_XHCI_H
#define BOB64_XHCI_H
#include "types.h"
#define BOB64_XHCI_USBCMD_RUN 0x00000001u
#define BOB64_XHCI_USBCMD_RESET 0x00000002u
#define BOB64_XHCI_USBSTS_HALTED 0x00000001u
#define BOB64_XHCI_USBSTS_NOT_READY 0x00000800u
typedef int (*BOB64_XHCI_READ32)(void *context,u32 offset,u32 *value);
typedef int (*BOB64_XHCI_WRITE32)(void *context,u32 offset,u32 value);
/* Stops a running xHC if needed, requests reset, and waits for it to settle. */
int bob64_xhci_halt_reset(BOB64_XHCI_READ32 read_register,
BOB64_XHCI_WRITE32 write_register,void *context,u32 poll_limit,
u32 *final_status);
#endif