diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2013-05-23 18:14:29 +0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-06-06 03:47:21 +0400 |
commit | b6e76371c888f5cb677f190a28444ac8875359ad (patch) | |
tree | 99112834cb69e1c6c7d0e933fb19a7235d029d2c /drivers/usb/host/xhci.h | |
parent | b630d4b9d05ba2e66878ca4614946d0f950d4111 (diff) | |
download | linux-b6e76371c888f5cb677f190a28444ac8875359ad.tar.xz |
usb: xhci: define port register names and use them instead of magic numbers
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 66b048a64ee0..01325710424c 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -132,6 +132,11 @@ struct xhci_cap_regs { /* Number of registers per port */ #define NUM_PORT_REGS 4 +#define PORTSC 0 +#define PORTPMSC 1 +#define PORTLI 2 +#define PORTHLPMC 3 + /** * struct xhci_op_regs - xHCI Host Controller Operational Registers. * @command: USBCMD - xHC command register |