summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/xhci.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2013-06-07 14:30:06 +0000
committerhselasky <hselasky@FreeBSD.org>2013-06-07 14:30:06 +0000
commit5311e12c931df9b67b64913670eab76a994317b9 (patch)
tree7cba40c7ec3c9d934361533ee2151d153ac29c29 /sys/dev/usb/controller/xhci.h
parentfea20f0dd054233130832a9b7c2a0af27d63dc29 (diff)
downloadFreeBSD-src-5311e12c931df9b67b64913670eab76a994317b9.zip
FreeBSD-src-5311e12c931df9b67b64913670eab76a994317b9.tar.gz
Add support for polling the XHCI interrupt handler when
the regular interrupt handler is not working properly or in case of MSI interrupts which are not yet supported. Remove interrupt setup code for FreeBSD versions older than 700031. MFC after: 1 week PR: usb/179342
Diffstat (limited to 'sys/dev/usb/controller/xhci.h')
-rw-r--r--sys/dev/usb/controller/xhci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/controller/xhci.h b/sys/dev/usb/controller/xhci.h
index d02c26f..0872f40 100644
--- a/sys/dev/usb/controller/xhci.h
+++ b/sys/dev/usb/controller/xhci.h
@@ -438,6 +438,8 @@ struct xhci_softc {
/* configure message */
struct usb_bus_msg sc_config_msg[2];
+ struct usb_callout sc_callout;
+
union xhci_hub_desc sc_hub_desc;
struct cv sc_cmd_cv;
@@ -500,6 +502,7 @@ struct xhci_softc {
/* prototypes */
uint32_t xhci_get_port_route(void);
+uint8_t xhci_use_polling(void);
usb_error_t xhci_halt_controller(struct xhci_softc *);
usb_error_t xhci_init(struct xhci_softc *, device_t);
usb_error_t xhci_start_controller(struct xhci_softc *);
OpenPOWER on IntegriCloud