mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-12-02 06:21:19 +01:00
d
d
This commit is contained in:
1 parent
3d06f94e48
commit
57787bfc7f
59 files changed
+9967
-410
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user