summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/dwc_otg.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-09-11 22:08:19 +0000
committerhselasky <hselasky@FreeBSD.org>2012-09-11 22:08:19 +0000
commitdec93a046b551b1afbca5b1f6744bdbe589640a4 (patch)
tree7dbde2d21f6178b997df7fa9adb6e2e66d4b4ea0 /sys/dev/usb/controller/dwc_otg.h
parentde36ad45b6ebd9f0826681e46179e93b08a3b6ab (diff)
downloadFreeBSD-src-dec93a046b551b1afbca5b1f6744bdbe589640a4.zip
FreeBSD-src-dec93a046b551b1afbca5b1f6744bdbe589640a4.tar.gz
Fix missing parts of DWC OTG host mode support. The host mode support
of the DWC OTG is very simple in PIO mode, and we need to re-transmit data when NAK is received among other things. We probably will need to implement some kind of rate limitation on the NAK-ing.
Diffstat (limited to 'sys/dev/usb/controller/dwc_otg.h')
-rw-r--r--sys/dev/usb/controller/dwc_otg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/dwc_otg.h b/sys/dev/usb/controller/dwc_otg.h
index d745a81..30aca57 100644
--- a/sys/dev/usb/controller/dwc_otg.h
+++ b/sys/dev/usb/controller/dwc_otg.h
@@ -66,9 +66,10 @@ struct dwc_otg_td {
uint8_t alt_next:1;
uint8_t short_pkt:1;
uint8_t did_stall:1;
- uint8_t did_ping:1;
uint8_t toggle:1;
uint8_t set_toggle:1;
+ uint8_t did_nak:1;
+ uint8_t did_complete:1;
};
struct dwc_otg_std_temp {
@@ -150,6 +151,8 @@ struct dwc_otg_softc {
uint32_t sc_hcchar[DWC_OTG_MAX_CHANNELS];
uint32_t sc_sof_refs;
uint32_t sc_sof_val;
+ uint32_t sc_interrupt_refs;
+ uint32_t sc_interrupt_val;
uint32_t sc_hprt_val;
uint16_t sc_active_rx_ep;
OpenPOWER on IntegriCloud