Lines Matching +full:3 +full:base +full:- +full:x
1 /* SPDX-License-Identifier: GPL-2.0 */
13 /* HC not running - set to 1 when run/stop bit is cleared. */
16 /* HCCPARAMS offset from PCI base address */
28 /* bits 7:0 - how long is the Capabilities register */
35 /* Extended capability IDs - ID 0 reserved */
38 #define XHCI_EXT_CAPS_PM 3
41 /* IDs 6-9 reserved */
45 /* USB Legacy Support Capability - section 7.1.1 */
49 /* USB Legacy Support Capability - section 7.1.1 */
50 /* Add this offset, plus the value of xECP in HCCPARAMS to the base address */
53 /* USB Legacy Support Control and Status Register - section 7.1.2 */
54 /* Add this offset, plus the value of xECP in HCCPARAMS to the base address */
56 /* bits 1:3, 5:12, and 17:19 need to be preserved; bits 21:28 should be zero */
60 /* USB 2.0 xHCI 0.96 L1C capability - section 7.2.2.1.3.2 */
63 /* USB 2.0 xHCI 1.0 hardware LMP capability - section 7.2.2.1.3.2 */
68 /* start/stop HC execution - do not write unless HC is halted*/
70 /* Event Interrupt Enable - get irq when EINT bit is set in USBSTS register */
72 /* Host System Error Interrupt Enable - get irq when HSEIE bit set in USBSTS */
73 #define XHCI_CMD_HSEIE (1 << 3)
74 /* Enable Wrap Event - '1' means xHC generates an event when MFINDEX wraps. */
88 * @port_info: Port offset, count, and protocol-defined information.
96 #define XHCI_EXT_PORT_MAJOR(x) (((x) >> 24) & 0xff) argument
97 #define XHCI_EXT_PORT_MINOR(x) (((x) >> 16) & 0xff) argument
98 #define XHCI_EXT_PORT_PSIC(x) (((x) >> 28) & 0x0f) argument
99 #define XHCI_EXT_PORT_OFF(x) ((x) & 0xff) argument
100 #define XHCI_EXT_PORT_COUNT(x) (((x) >> 8) & 0xff) argument
102 #define XHCI_EXT_PORT_PSIV(x) (((x) >> 0) & 0x0f) argument
103 #define XHCI_EXT_PORT_PSIE(x) (((x) >> 4) & 0x03) argument
104 #define XHCI_EXT_PORT_PLT(x) (((x) >> 6) & 0x03) argument
105 #define XHCI_EXT_PORT_PFD(x) (((x) >> 8) & 0x01) argument
106 #define XHCI_EXT_PORT_LP(x) (((x) >> 14) & 0x03) argument
107 #define XHCI_EXT_PORT_PSIM(x) (((x) >> 16) & 0xffff) argument
114 * @base PCI MMIO registers base address.
125 static inline int xhci_find_next_ext_cap(void __iomem *base, u32 start, int id) in xhci_find_next_ext_cap() argument
133 val = readl(base + XHCI_HCC_PARAMS_OFFSET); in xhci_find_next_ext_cap()
141 val = readl(base + offset); in xhci_find_next_ext_cap()