summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-mem.c
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2010-12-01 11:34:59 -0800
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2011-03-13 18:23:35 -0700
commit5308a91b9fc1a8f94b860c2589b06908a97cba7e (patch)
tree4f97e7ea4c3280b367b951ea3b1d3f07c22c1b46 /drivers/usb/host/xhci-mem.c
parentff9d78b36f76687c91c67b9f4c5c33bc888ed2f9 (diff)
xhci: Index with a port array instead of PORTSC addresses.
In the upcoming patches, the roothub emulation code will need to return port status and port change buffers based on whether they are called with the xHCI USB 2.0 or USB 3.0 roothub. To facilitate that, make the roothub code index into an array of port addresses with wIndex, rather than calculating the address using the offset and the address of the PORTSC registers. Later we can set the port array to be the array of USB 3.0 port addresses, or the USB 2.0 port addresses, depending on the roothub passed in. Create a temporary (statically sized) port array and fill it in with both USB 3.0 and USB 2.0 port addresses. This is inefficient to do for every roothub call, but this is needed for git bisect compatibility. The temporary port array will be deleted in a subsequent patch. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
0 files changed, 0 insertions, 0 deletions