@@ -32,7 +32,7 @@ void xhci_dbg_regs(struct xhci_hcd *xhci)
32
32
33
33
xhci_dbg (xhci , "// xHCI capability registers at %p:\n" ,
34
34
xhci -> cap_regs );
35
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> hc_capbase );
35
+ temp = readl ( & xhci -> cap_regs -> hc_capbase );
36
36
xhci_dbg (xhci , "// @%p = 0x%x (CAPLENGTH AND HCIVERSION)\n" ,
37
37
& xhci -> cap_regs -> hc_capbase , temp );
38
38
xhci_dbg (xhci , "// CAPLENGTH: 0x%x\n" ,
@@ -44,13 +44,13 @@ void xhci_dbg_regs(struct xhci_hcd *xhci)
44
44
45
45
xhci_dbg (xhci , "// xHCI operational registers at %p:\n" , xhci -> op_regs );
46
46
47
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> run_regs_off );
47
+ temp = readl ( & xhci -> cap_regs -> run_regs_off );
48
48
xhci_dbg (xhci , "// @%p = 0x%x RTSOFF\n" ,
49
49
& xhci -> cap_regs -> run_regs_off ,
50
50
(unsigned int ) temp & RTSOFF_MASK );
51
51
xhci_dbg (xhci , "// xHCI runtime registers at %p:\n" , xhci -> run_regs );
52
52
53
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> db_off );
53
+ temp = readl ( & xhci -> cap_regs -> db_off );
54
54
xhci_dbg (xhci , "// @%p = 0x%x DBOFF\n" , & xhci -> cap_regs -> db_off , temp );
55
55
xhci_dbg (xhci , "// Doorbell array at %p:\n" , xhci -> dba );
56
56
}
@@ -61,15 +61,15 @@ static void xhci_print_cap_regs(struct xhci_hcd *xhci)
61
61
62
62
xhci_dbg (xhci , "xHCI capability registers at %p:\n" , xhci -> cap_regs );
63
63
64
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> hc_capbase );
64
+ temp = readl ( & xhci -> cap_regs -> hc_capbase );
65
65
xhci_dbg (xhci , "CAPLENGTH AND HCIVERSION 0x%x:\n" ,
66
66
(unsigned int ) temp );
67
67
xhci_dbg (xhci , "CAPLENGTH: 0x%x\n" ,
68
68
(unsigned int ) HC_LENGTH (temp ));
69
69
xhci_dbg (xhci , "HCIVERSION: 0x%x\n" ,
70
70
(unsigned int ) HC_VERSION (temp ));
71
71
72
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> hcs_params1 );
72
+ temp = readl ( & xhci -> cap_regs -> hcs_params1 );
73
73
xhci_dbg (xhci , "HCSPARAMS 1: 0x%x\n" ,
74
74
(unsigned int ) temp );
75
75
xhci_dbg (xhci , " Max device slots: %u\n" ,
@@ -79,38 +79,38 @@ static void xhci_print_cap_regs(struct xhci_hcd *xhci)
79
79
xhci_dbg (xhci , " Max ports: %u\n" ,
80
80
(unsigned int ) HCS_MAX_PORTS (temp ));
81
81
82
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> hcs_params2 );
82
+ temp = readl ( & xhci -> cap_regs -> hcs_params2 );
83
83
xhci_dbg (xhci , "HCSPARAMS 2: 0x%x\n" ,
84
84
(unsigned int ) temp );
85
85
xhci_dbg (xhci , " Isoc scheduling threshold: %u\n" ,
86
86
(unsigned int ) HCS_IST (temp ));
87
87
xhci_dbg (xhci , " Maximum allowed segments in event ring: %u\n" ,
88
88
(unsigned int ) HCS_ERST_MAX (temp ));
89
89
90
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> hcs_params3 );
90
+ temp = readl ( & xhci -> cap_regs -> hcs_params3 );
91
91
xhci_dbg (xhci , "HCSPARAMS 3 0x%x:\n" ,
92
92
(unsigned int ) temp );
93
93
xhci_dbg (xhci , " Worst case U1 device exit latency: %u\n" ,
94
94
(unsigned int ) HCS_U1_LATENCY (temp ));
95
95
xhci_dbg (xhci , " Worst case U2 device exit latency: %u\n" ,
96
96
(unsigned int ) HCS_U2_LATENCY (temp ));
97
97
98
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> hcc_params );
98
+ temp = readl ( & xhci -> cap_regs -> hcc_params );
99
99
xhci_dbg (xhci , "HCC PARAMS 0x%x:\n" , (unsigned int ) temp );
100
100
xhci_dbg (xhci , " HC generates %s bit addresses\n" ,
101
101
HCC_64BIT_ADDR (temp ) ? "64" : "32" );
102
102
/* FIXME */
103
103
xhci_dbg (xhci , " FIXME: more HCCPARAMS debugging\n" );
104
104
105
- temp = xhci_readl ( xhci , & xhci -> cap_regs -> run_regs_off );
105
+ temp = readl ( & xhci -> cap_regs -> run_regs_off );
106
106
xhci_dbg (xhci , "RTSOFF 0x%x:\n" , temp & RTSOFF_MASK );
107
107
}
108
108
109
109
static void xhci_print_command_reg (struct xhci_hcd * xhci )
110
110
{
111
111
u32 temp ;
112
112
113
- temp = xhci_readl ( xhci , & xhci -> op_regs -> command );
113
+ temp = readl ( & xhci -> op_regs -> command );
114
114
xhci_dbg (xhci , "USBCMD 0x%x:\n" , temp );
115
115
xhci_dbg (xhci , " HC is %s\n" ,
116
116
(temp & CMD_RUN ) ? "running" : "being stopped" );
@@ -128,7 +128,7 @@ static void xhci_print_status(struct xhci_hcd *xhci)
128
128
{
129
129
u32 temp ;
130
130
131
- temp = xhci_readl ( xhci , & xhci -> op_regs -> status );
131
+ temp = readl ( & xhci -> op_regs -> status );
132
132
xhci_dbg (xhci , "USBSTS 0x%x:\n" , temp );
133
133
xhci_dbg (xhci , " Event ring is %sempty\n" ,
134
134
(temp & STS_EINT ) ? "not " : "" );
@@ -163,7 +163,7 @@ static void xhci_print_ports(struct xhci_hcd *xhci)
163
163
for (j = 0 ; j < NUM_PORT_REGS ; ++ j ) {
164
164
xhci_dbg (xhci , "%p port %s reg = 0x%x\n" ,
165
165
addr , names [j ],
166
- (unsigned int ) xhci_readl ( xhci , addr ));
166
+ (unsigned int ) readl ( addr ));
167
167
addr ++ ;
168
168
}
169
169
}
@@ -177,7 +177,7 @@ void xhci_print_ir_set(struct xhci_hcd *xhci, int set_num)
177
177
u64 temp_64 ;
178
178
179
179
addr = & ir_set -> irq_pending ;
180
- temp = xhci_readl ( xhci , addr );
180
+ temp = readl ( addr );
181
181
if (temp == XHCI_INIT_VALUE )
182
182
return ;
183
183
@@ -187,28 +187,28 @@ void xhci_print_ir_set(struct xhci_hcd *xhci, int set_num)
187
187
(unsigned int )temp );
188
188
189
189
addr = & ir_set -> irq_control ;
190
- temp = xhci_readl ( xhci , addr );
190
+ temp = readl ( addr );
191
191
xhci_dbg (xhci , " %p: ir_set.control = 0x%x\n" , addr ,
192
192
(unsigned int )temp );
193
193
194
194
addr = & ir_set -> erst_size ;
195
- temp = xhci_readl ( xhci , addr );
195
+ temp = readl ( addr );
196
196
xhci_dbg (xhci , " %p: ir_set.erst_size = 0x%x\n" , addr ,
197
197
(unsigned int )temp );
198
198
199
199
addr = & ir_set -> rsvd ;
200
- temp = xhci_readl ( xhci , addr );
200
+ temp = readl ( addr );
201
201
if (temp != XHCI_INIT_VALUE )
202
202
xhci_dbg (xhci , " WARN: %p: ir_set.rsvd = 0x%x\n" ,
203
203
addr , (unsigned int )temp );
204
204
205
205
addr = & ir_set -> erst_base ;
206
- temp_64 = xhci_read_64 ( xhci , addr );
206
+ temp_64 = readq ( addr );
207
207
xhci_dbg (xhci , " %p: ir_set.erst_base = @%08llx\n" ,
208
208
addr , temp_64 );
209
209
210
210
addr = & ir_set -> erst_dequeue ;
211
- temp_64 = xhci_read_64 ( xhci , addr );
211
+ temp_64 = readq ( addr );
212
212
xhci_dbg (xhci , " %p: ir_set.erst_dequeue = @%08llx\n" ,
213
213
addr , temp_64 );
214
214
}
@@ -219,12 +219,12 @@ void xhci_print_run_regs(struct xhci_hcd *xhci)
219
219
int i ;
220
220
221
221
xhci_dbg (xhci , "xHCI runtime registers at %p:\n" , xhci -> run_regs );
222
- temp = xhci_readl ( xhci , & xhci -> run_regs -> microframe_index );
222
+ temp = readl ( & xhci -> run_regs -> microframe_index );
223
223
xhci_dbg (xhci , " %p: Microframe index = 0x%x\n" ,
224
224
& xhci -> run_regs -> microframe_index ,
225
225
(unsigned int ) temp );
226
226
for (i = 0 ; i < 7 ; ++ i ) {
227
- temp = xhci_readl ( xhci , & xhci -> run_regs -> rsvd [i ]);
227
+ temp = readl ( & xhci -> run_regs -> rsvd [i ]);
228
228
if (temp != XHCI_INIT_VALUE )
229
229
xhci_dbg (xhci , " WARN: %p: Rsvd[%i] = 0x%x\n" ,
230
230
& xhci -> run_regs -> rsvd [i ],
@@ -412,7 +412,7 @@ void xhci_dbg_cmd_ptrs(struct xhci_hcd *xhci)
412
412
{
413
413
u64 val ;
414
414
415
- val = xhci_read_64 ( xhci , & xhci -> op_regs -> cmd_ring );
415
+ val = readq ( & xhci -> op_regs -> cmd_ring );
416
416
xhci_dbg (xhci , "// xHC command ring deq ptr low bits + flags = @%08x\n" ,
417
417
lower_32_bits (val ));
418
418
xhci_dbg (xhci , "// xHC command ring deq ptr high bits = @%08x\n" ,
0 commit comments