diff options
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 36f7d4f91d9f..4b254b6fa245 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -509,6 +509,8 @@ struct xhci_slot_ctx { | |||
509 | #define MAX_EXIT (0xffff) | 509 | #define MAX_EXIT (0xffff) |
510 | /* Root hub port number that is needed to access the USB device */ | 510 | /* Root hub port number that is needed to access the USB device */ |
511 | #define ROOT_HUB_PORT(p) (((p) & 0xff) << 16) | 511 | #define ROOT_HUB_PORT(p) (((p) & 0xff) << 16) |
512 | /* Maximum number of ports under a hub device */ | ||
513 | #define XHCI_MAX_PORTS(p) (((p) & 0xff) << 24) | ||
512 | 514 | ||
513 | /* tt_info bitmasks */ | 515 | /* tt_info bitmasks */ |
514 | /* | 516 | /* |
@@ -522,6 +524,7 @@ struct xhci_slot_ctx { | |||
522 | * '0' if the device is not low or full speed. | 524 | * '0' if the device is not low or full speed. |
523 | */ | 525 | */ |
524 | #define TT_PORT (0xff << 8) | 526 | #define TT_PORT (0xff << 8) |
527 | #define TT_THINK_TIME(p) (((p) & 0x3) << 16) | ||
525 | 528 | ||
526 | /* dev_state bitmasks */ | 529 | /* dev_state bitmasks */ |
527 | /* USB device address - assigned by the HC */ | 530 | /* USB device address - assigned by the HC */ |
@@ -1231,6 +1234,8 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd); | |||
1231 | int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev); | 1234 | int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev); |
1232 | void xhci_free_dev(struct usb_hcd *hcd, struct usb_device *udev); | 1235 | void xhci_free_dev(struct usb_hcd *hcd, struct usb_device *udev); |
1233 | int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev); | 1236 | int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev); |
1237 | int xhci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, | ||
1238 | struct usb_tt *tt, gfp_t mem_flags); | ||
1234 | int xhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); | 1239 | int xhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); |
1235 | int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); | 1240 | int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); |
1236 | int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev, struct usb_host_endpoint *ep); | 1241 | int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev, struct usb_host_endpoint *ep); |