mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 18:27:18 +00:00
DM USB: save MaxPacketSize value in endpoint descriptor
Save the MaxPacketSize value for every endpoint of virtual USB device. Tracked-On: #3054 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
296b649ae9
commit
f2e35ab701
@@ -18,8 +18,12 @@
|
||||
#define USB_EP_PID(d) (USB_EP_ADDR(d) & USB_DIR_IN ? TOKEN_IN : TOKEN_OUT)
|
||||
#define USB_EP_TYPE(d) (USB_EP_ATTR(d) & 0x3)
|
||||
#define USB_EP_NR(d) (USB_EP_ADDR(d) & 0xF)
|
||||
#define USB_EP_MAXP(d) ((d)->wMaxPacketSize)
|
||||
#define USB_EP_ERR_TYPE 0xFF
|
||||
|
||||
#define USB_EP_MAXP_SZ(m) ((m) & 0x7ff)
|
||||
#define USB_EP_MAXP_MT(m) (((m) >> 11) & 0x3)
|
||||
|
||||
enum {
|
||||
USB_INFO_VERSION,
|
||||
USB_INFO_SPEED,
|
||||
@@ -32,6 +36,7 @@ enum {
|
||||
struct usb_dev_ep {
|
||||
uint8_t pid;
|
||||
uint8_t type;
|
||||
uint16_t maxp;
|
||||
};
|
||||
|
||||
struct usb_dev {
|
||||
|
Reference in New Issue
Block a user