LPC17 USB host: Fix some OHCI done head handling when a tranfer is cancelled

This commit is contained in:
Gregory Nutt
2015-05-15 08:29:45 -06:00
parent 6591a36950
commit 87b065253d
3 changed files with 86 additions and 60 deletions
+6
View File
@@ -367,11 +367,17 @@
/* HccaDoneHead: When the HC reaches the end of a frame and its deferred
* interrupt register is 0, it writes the current value of its HcDoneHead to
* this location and generates an interrupt.
*
* The LSB of HCCADoneHead may be set to 1 to indicate that an unmasked
* HcInterruptStatus was set when HccaDoneHead was written.
*/
#define HCCA_DONEHEAD_OFFSET (0x84)
#define HCCA_DONEHEAD_BSIZE (4)
#define HCCA_DONEHEAD_MASK 0xfffffffe
#define HCCA_DONEHEAD_INTSTA (1 << 0)
/* 0x88: 116 bytes reserved */
#define HCCA_RESERVED_OFFSET (0x88)