\r
Provides some data structure definitions used by the XHCI host controller driver.\r
\r
-Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
#define XHC_1_MICROSECOND (1)\r
//\r
-// Convert millisecond to microsecond.\r
+// The unit is microsecond, setting it as 1ms.\r
//\r
#define XHC_1_MILLISECOND (1000)\r
//\r
// XHC generic timeout experience values.\r
-// The unit is microsecond, setting it as 10ms.\r
+// The unit is millisecond, setting it as 10s.\r
//\r
#define XHC_GENERIC_TIMEOUT (10 * 1000)\r
//\r
// XHC reset timeout experience values.\r
-// The unit is microsecond, setting it as 1s.\r
+// The unit is millisecond, setting it as 1s.\r
//\r
-#define XHC_RESET_TIMEOUT (1000 * 1000)\r
-//\r
-// XHC delay experience value for polling operation.\r
-// The unit is microsecond, set it as 1ms.\r
-//\r
-#define XHC_POLL_DELAY (1000)\r
+#define XHC_RESET_TIMEOUT (1000)\r
//\r
// XHC async transfer timer interval, set by experience.\r
-// The unit is 100us, takes 50ms as interval.\r
+// The unit is 100us, takes 1ms as interval.\r
//\r
-#define XHC_ASYNC_TIMER_INTERVAL EFI_TIMER_PERIOD_MILLISECONDS(50)\r
+#define XHC_ASYNC_TIMER_INTERVAL EFI_TIMER_PERIOD_MILLISECONDS(1)\r
\r
//\r
// XHC raises TPL to TPL_NOTIFY to serialize all its operations\r
#define INT_INTER_ASYNC 4\r
\r
//\r
-// Iterate through the doule linked list. This is delete-safe.\r
+// Iterate through the double linked list. This is delete-safe.\r
// Don't touch NextEntry\r
//\r
#define EFI_LIST_FOR_EACH_SAFE(Entry, NextEntry, ListHead) \\r
// These information is used to support XHCI's Config_Endpoint cmd.\r
//\r
EFI_USB_CONFIG_DESCRIPTOR **ConfDesc;\r
+ //\r
+ // A device has an active Configuration.\r
+ //\r
+ UINT8 ActiveConfiguration;\r
+ //\r
+ // Every interface has an active AlternateSetting.\r
+ //\r
+ UINT8 *ActiveAlternateSetting;\r
};\r
\r
struct _USB_XHCI_INSTANCE {\r
// The array supports up to 255 devices, entry 0 is reserved and should not be used.\r
//\r
USB_DEV_CONTEXT UsbDevContext[256];\r
+\r
+ BOOLEAN Support64BitDma; // Whether 64 bit DMA may be used with this device\r
};\r
\r
\r
);\r
\r
/**\r
- Stop this driver on ControllerHandle. Support stoping any child handles\r
+ Stop this driver on ControllerHandle. Support stopping any child handles\r
created by this driver.\r
\r
@param This Protocol instance pointer.\r