|
|
@@ -88,9 +88,10 @@ struct xhci_cap_regs {
|
|
|
#define HCS_IST(p) (((p) >> 0) & 0xf)
|
|
|
/* bits 4:7, max number of Event Ring segments */
|
|
|
#define HCS_ERST_MAX(p) (((p) >> 4) & 0xf)
|
|
|
+/* bits 21:25 Hi 5 bits of Scratchpad buffers SW must allocate for the HW */
|
|
|
/* bit 26 Scratchpad restore - for save/restore HW state - not used yet */
|
|
|
-/* bits 27:31 number of Scratchpad buffers SW must allocate for the HW */
|
|
|
-#define HCS_MAX_SCRATCHPAD(p) (((p) >> 27) & 0x1f)
|
|
|
+/* bits 27:31 Lo 5 bits of Scratchpad buffers SW must allocate for the HW */
|
|
|
+#define HCS_MAX_SCRATCHPAD(p) ((((p) >> 16) & 0x3e0) | (((p) >> 27) & 0x1f))
|
|
|
|
|
|
/* HCSPARAMS3 - hcs_params3 - bitmasks */
|
|
|
/* bits 0:7, Max U1 to U0 latency for the roothub ports */
|