diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2010-12-16 13:49:09 -0500 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-03-13 21:23:38 -0400 |
commit | 5233630fcdd6f7d415dcbed264031439cab73f9d (patch) | |
tree | f877073953835d8989c83ab8473cf2100b64dd84 /drivers/usb/host/xhci.h | |
parent | 20b67cf51fa606442bb343afad0ee1a393a6afb3 (diff) |
xhci: Change xhci_find_slot_id_by_port() API.
xhci_find_slot_id_by_port() tries to map the port index to the slot ID for
the USB device. In the future, there will be two xHCI roothubs, and their
port indices will overlap. Therefore, xhci_find_slot_id_by_port() will
need to use information in the roothub's usb_hcd structure to map the port
index and roothub speed to the right slot ID.
Add a new parameter to xhci_find_slot_id_by_port(), in order to pass in
the roothub's usb_hcd structure.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index c15470eb121a..443d6333f280 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1533,7 +1533,8 @@ int xhci_bus_resume(struct usb_hcd *hcd); | |||
1533 | #endif /* CONFIG_PM */ | 1533 | #endif /* CONFIG_PM */ |
1534 | 1534 | ||
1535 | u32 xhci_port_state_to_neutral(u32 state); | 1535 | u32 xhci_port_state_to_neutral(u32 state); |
1536 | int xhci_find_slot_id_by_port(struct xhci_hcd *xhci, u16 port); | 1536 | int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, |
1537 | u16 port); | ||
1537 | void xhci_ring_device(struct xhci_hcd *xhci, int slot_id); | 1538 | void xhci_ring_device(struct xhci_hcd *xhci, int slot_id); |
1538 | 1539 | ||
1539 | /* xHCI contexts */ | 1540 | /* xHCI contexts */ |