Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/xhci.h
Show First 20 Lines • Show All 509 Lines • ▼ Show 20 Lines | struct xhci_softc { | ||||
/* root HUB port event bitmap, max 256 ports */ | /* root HUB port event bitmap, max 256 ports */ | ||||
uint8_t sc_hub_idata[32]; | uint8_t sc_hub_idata[32]; | ||||
/* size of context */ | /* size of context */ | ||||
uint8_t sc_ctx_is_64_byte; | uint8_t sc_ctx_is_64_byte; | ||||
/* vendor string for root HUB */ | /* vendor string for root HUB */ | ||||
char sc_vendor[16]; | char sc_vendor[16]; | ||||
/* offset to debug port registers */ | |||||
uint32_t sc_dbc_off; | |||||
}; | }; | ||||
#define XHCI_CMD_LOCK(sc) sx_xlock(&(sc)->sc_cmd_sx) | #define XHCI_CMD_LOCK(sc) sx_xlock(&(sc)->sc_cmd_sx) | ||||
#define XHCI_CMD_UNLOCK(sc) sx_xunlock(&(sc)->sc_cmd_sx) | #define XHCI_CMD_UNLOCK(sc) sx_xunlock(&(sc)->sc_cmd_sx) | ||||
#define XHCI_CMD_ASSERT_LOCKED(sc) sx_assert(&(sc)->sc_cmd_sx, SA_LOCKED) | #define XHCI_CMD_ASSERT_LOCKED(sc) sx_assert(&(sc)->sc_cmd_sx, SA_LOCKED) | ||||
/* prototypes */ | /* prototypes */ | ||||
uint8_t xhci_use_polling(void); | uint8_t xhci_use_polling(void); | ||||
usb_error_t xhci_halt_controller(struct xhci_softc *); | usb_error_t xhci_halt_controller(struct xhci_softc *); | ||||
usb_error_t xhci_init(struct xhci_softc *, device_t, uint8_t); | usb_error_t xhci_init(struct xhci_softc *, device_t, uint8_t); | ||||
usb_error_t xhci_start_controller(struct xhci_softc *); | usb_error_t xhci_start_controller(struct xhci_softc *); | ||||
void xhci_interrupt(struct xhci_softc *); | void xhci_interrupt(struct xhci_softc *); | ||||
void xhci_uninit(struct xhci_softc *); | void xhci_uninit(struct xhci_softc *); | ||||
#endif /* _XHCI_H_ */ | #endif /* _XHCI_H_ */ |