diff options
Diffstat (limited to 'include/asm-ppc64/iSeries/HvCallPci.h')
-rw-r--r-- | include/asm-ppc64/iSeries/HvCallPci.h | 146 |
1 files changed, 28 insertions, 118 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallPci.h b/include/asm-ppc64/iSeries/HvCallPci.h index 346ab5d39dcd..c8d675c40f5e 100644 --- a/include/asm-ppc64/iSeries/HvCallPci.h +++ b/include/asm-ppc64/iSeries/HvCallPci.h | |||
@@ -140,8 +140,6 @@ static inline u64 HvCallPci_configLoad8(u16 busNumber, u8 subBusNumber, | |||
140 | 140 | ||
141 | HvCall3Ret16(HvCallPciConfigLoad8, &retVal, *(u64 *)&dsa, offset, 0); | 141 | HvCall3Ret16(HvCallPciConfigLoad8, &retVal, *(u64 *)&dsa, offset, 0); |
142 | 142 | ||
143 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
144 | |||
145 | *value = retVal.value; | 143 | *value = retVal.value; |
146 | 144 | ||
147 | return retVal.rc; | 145 | return retVal.rc; |
@@ -161,8 +159,6 @@ static inline u64 HvCallPci_configLoad16(u16 busNumber, u8 subBusNumber, | |||
161 | 159 | ||
162 | HvCall3Ret16(HvCallPciConfigLoad16, &retVal, *(u64 *)&dsa, offset, 0); | 160 | HvCall3Ret16(HvCallPciConfigLoad16, &retVal, *(u64 *)&dsa, offset, 0); |
163 | 161 | ||
164 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
165 | |||
166 | *value = retVal.value; | 162 | *value = retVal.value; |
167 | 163 | ||
168 | return retVal.rc; | 164 | return retVal.rc; |
@@ -182,8 +178,6 @@ static inline u64 HvCallPci_configLoad32(u16 busNumber, u8 subBusNumber, | |||
182 | 178 | ||
183 | HvCall3Ret16(HvCallPciConfigLoad32, &retVal, *(u64 *)&dsa, offset, 0); | 179 | HvCall3Ret16(HvCallPciConfigLoad32, &retVal, *(u64 *)&dsa, offset, 0); |
184 | 180 | ||
185 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
186 | |||
187 | *value = retVal.value; | 181 | *value = retVal.value; |
188 | 182 | ||
189 | return retVal.rc; | 183 | return retVal.rc; |
@@ -193,7 +187,6 @@ static inline u64 HvCallPci_configStore8(u16 busNumber, u8 subBusNumber, | |||
193 | u8 deviceId, u32 offset, u8 value) | 187 | u8 deviceId, u32 offset, u8 value) |
194 | { | 188 | { |
195 | struct HvCallPci_DsaAddr dsa; | 189 | struct HvCallPci_DsaAddr dsa; |
196 | u64 retVal; | ||
197 | 190 | ||
198 | *((u64*)&dsa) = 0; | 191 | *((u64*)&dsa) = 0; |
199 | 192 | ||
@@ -201,18 +194,13 @@ static inline u64 HvCallPci_configStore8(u16 busNumber, u8 subBusNumber, | |||
201 | dsa.subBusNumber = subBusNumber; | 194 | dsa.subBusNumber = subBusNumber; |
202 | dsa.deviceId = deviceId; | 195 | dsa.deviceId = deviceId; |
203 | 196 | ||
204 | retVal = HvCall4(HvCallPciConfigStore8, *(u64 *)&dsa, offset, value, 0); | 197 | return HvCall4(HvCallPciConfigStore8, *(u64 *)&dsa, offset, value, 0); |
205 | |||
206 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
207 | |||
208 | return retVal; | ||
209 | } | 198 | } |
210 | 199 | ||
211 | static inline u64 HvCallPci_configStore16(u16 busNumber, u8 subBusNumber, | 200 | static inline u64 HvCallPci_configStore16(u16 busNumber, u8 subBusNumber, |
212 | u8 deviceId, u32 offset, u16 value) | 201 | u8 deviceId, u32 offset, u16 value) |
213 | { | 202 | { |
214 | struct HvCallPci_DsaAddr dsa; | 203 | struct HvCallPci_DsaAddr dsa; |
215 | u64 retVal; | ||
216 | 204 | ||
217 | *((u64*)&dsa) = 0; | 205 | *((u64*)&dsa) = 0; |
218 | 206 | ||
@@ -220,18 +208,13 @@ static inline u64 HvCallPci_configStore16(u16 busNumber, u8 subBusNumber, | |||
220 | dsa.subBusNumber = subBusNumber; | 208 | dsa.subBusNumber = subBusNumber; |
221 | dsa.deviceId = deviceId; | 209 | dsa.deviceId = deviceId; |
222 | 210 | ||
223 | retVal = HvCall4(HvCallPciConfigStore16, *(u64 *)&dsa, offset, value, 0); | 211 | return HvCall4(HvCallPciConfigStore16, *(u64 *)&dsa, offset, value, 0); |
224 | |||
225 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
226 | |||
227 | return retVal; | ||
228 | } | 212 | } |
229 | 213 | ||
230 | static inline u64 HvCallPci_configStore32(u16 busNumber, u8 subBusNumber, | 214 | static inline u64 HvCallPci_configStore32(u16 busNumber, u8 subBusNumber, |
231 | u8 deviceId, u32 offset, u32 value) | 215 | u8 deviceId, u32 offset, u32 value) |
232 | { | 216 | { |
233 | struct HvCallPci_DsaAddr dsa; | 217 | struct HvCallPci_DsaAddr dsa; |
234 | u64 retVal; | ||
235 | 218 | ||
236 | *((u64*)&dsa) = 0; | 219 | *((u64*)&dsa) = 0; |
237 | 220 | ||
@@ -239,11 +222,7 @@ static inline u64 HvCallPci_configStore32(u16 busNumber, u8 subBusNumber, | |||
239 | dsa.subBusNumber = subBusNumber; | 222 | dsa.subBusNumber = subBusNumber; |
240 | dsa.deviceId = deviceId; | 223 | dsa.deviceId = deviceId; |
241 | 224 | ||
242 | retVal = HvCall4(HvCallPciConfigStore32, *(u64 *)&dsa, offset, value, 0); | 225 | return HvCall4(HvCallPciConfigStore32, *(u64 *)&dsa, offset, value, 0); |
243 | |||
244 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
245 | |||
246 | return retVal; | ||
247 | } | 226 | } |
248 | 227 | ||
249 | static inline u64 HvCallPci_barLoad8(u16 busNumberParm, u8 subBusParm, | 228 | static inline u64 HvCallPci_barLoad8(u16 busNumberParm, u8 subBusParm, |
@@ -262,8 +241,6 @@ static inline u64 HvCallPci_barLoad8(u16 busNumberParm, u8 subBusParm, | |||
262 | 241 | ||
263 | HvCall3Ret16(HvCallPciBarLoad8, &retVal, *(u64 *)&dsa, offsetParm, 0); | 242 | HvCall3Ret16(HvCallPciBarLoad8, &retVal, *(u64 *)&dsa, offsetParm, 0); |
264 | 243 | ||
265 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
266 | |||
267 | *valueParm = retVal.value; | 244 | *valueParm = retVal.value; |
268 | 245 | ||
269 | return retVal.rc; | 246 | return retVal.rc; |
@@ -285,8 +262,6 @@ static inline u64 HvCallPci_barLoad16(u16 busNumberParm, u8 subBusParm, | |||
285 | 262 | ||
286 | HvCall3Ret16(HvCallPciBarLoad16, &retVal, *(u64 *)&dsa, offsetParm, 0); | 263 | HvCall3Ret16(HvCallPciBarLoad16, &retVal, *(u64 *)&dsa, offsetParm, 0); |
287 | 264 | ||
288 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
289 | |||
290 | *valueParm = retVal.value; | 265 | *valueParm = retVal.value; |
291 | 266 | ||
292 | return retVal.rc; | 267 | return retVal.rc; |
@@ -308,8 +283,6 @@ static inline u64 HvCallPci_barLoad32(u16 busNumberParm, u8 subBusParm, | |||
308 | 283 | ||
309 | HvCall3Ret16(HvCallPciBarLoad32, &retVal, *(u64 *)&dsa, offsetParm, 0); | 284 | HvCall3Ret16(HvCallPciBarLoad32, &retVal, *(u64 *)&dsa, offsetParm, 0); |
310 | 285 | ||
311 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
312 | |||
313 | *valueParm = retVal.value; | 286 | *valueParm = retVal.value; |
314 | 287 | ||
315 | return retVal.rc; | 288 | return retVal.rc; |
@@ -331,8 +304,6 @@ static inline u64 HvCallPci_barLoad64(u16 busNumberParm, u8 subBusParm, | |||
331 | 304 | ||
332 | HvCall3Ret16(HvCallPciBarLoad64, &retVal, *(u64 *)&dsa, offsetParm, 0); | 305 | HvCall3Ret16(HvCallPciBarLoad64, &retVal, *(u64 *)&dsa, offsetParm, 0); |
333 | 306 | ||
334 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
335 | |||
336 | *valueParm = retVal.value; | 307 | *valueParm = retVal.value; |
337 | 308 | ||
338 | return retVal.rc; | 309 | return retVal.rc; |
@@ -343,7 +314,6 @@ static inline u64 HvCallPci_barStore8(u16 busNumberParm, u8 subBusParm, | |||
343 | u8 valueParm) | 314 | u8 valueParm) |
344 | { | 315 | { |
345 | struct HvCallPci_DsaAddr dsa; | 316 | struct HvCallPci_DsaAddr dsa; |
346 | u64 retVal; | ||
347 | 317 | ||
348 | *((u64*)&dsa) = 0; | 318 | *((u64*)&dsa) = 0; |
349 | 319 | ||
@@ -352,11 +322,8 @@ static inline u64 HvCallPci_barStore8(u16 busNumberParm, u8 subBusParm, | |||
352 | dsa.deviceId = deviceIdParm; | 322 | dsa.deviceId = deviceIdParm; |
353 | dsa.barNumber = barNumberParm; | 323 | dsa.barNumber = barNumberParm; |
354 | 324 | ||
355 | retVal = HvCall4(HvCallPciBarStore8, *(u64 *)&dsa, offsetParm, valueParm, 0); | 325 | return HvCall4(HvCallPciBarStore8, *(u64 *)&dsa, offsetParm, |
356 | 326 | valueParm, 0); | |
357 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
358 | |||
359 | return retVal; | ||
360 | } | 327 | } |
361 | 328 | ||
362 | static inline u64 HvCallPci_barStore16(u16 busNumberParm, u8 subBusParm, | 329 | static inline u64 HvCallPci_barStore16(u16 busNumberParm, u8 subBusParm, |
@@ -364,7 +331,6 @@ static inline u64 HvCallPci_barStore16(u16 busNumberParm, u8 subBusParm, | |||
364 | u16 valueParm) | 331 | u16 valueParm) |
365 | { | 332 | { |
366 | struct HvCallPci_DsaAddr dsa; | 333 | struct HvCallPci_DsaAddr dsa; |
367 | u64 retVal; | ||
368 | 334 | ||
369 | *((u64*)&dsa) = 0; | 335 | *((u64*)&dsa) = 0; |
370 | 336 | ||
@@ -373,11 +339,8 @@ static inline u64 HvCallPci_barStore16(u16 busNumberParm, u8 subBusParm, | |||
373 | dsa.deviceId = deviceIdParm; | 339 | dsa.deviceId = deviceIdParm; |
374 | dsa.barNumber = barNumberParm; | 340 | dsa.barNumber = barNumberParm; |
375 | 341 | ||
376 | retVal = HvCall4(HvCallPciBarStore16, *(u64 *)&dsa, offsetParm, valueParm, 0); | 342 | return HvCall4(HvCallPciBarStore16, *(u64 *)&dsa, offsetParm, |
377 | 343 | valueParm, 0); | |
378 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
379 | |||
380 | return retVal; | ||
381 | } | 344 | } |
382 | 345 | ||
383 | static inline u64 HvCallPci_barStore32(u16 busNumberParm, u8 subBusParm, | 346 | static inline u64 HvCallPci_barStore32(u16 busNumberParm, u8 subBusParm, |
@@ -385,7 +348,6 @@ static inline u64 HvCallPci_barStore32(u16 busNumberParm, u8 subBusParm, | |||
385 | u32 valueParm) | 348 | u32 valueParm) |
386 | { | 349 | { |
387 | struct HvCallPci_DsaAddr dsa; | 350 | struct HvCallPci_DsaAddr dsa; |
388 | u64 retVal; | ||
389 | 351 | ||
390 | *((u64*)&dsa) = 0; | 352 | *((u64*)&dsa) = 0; |
391 | 353 | ||
@@ -394,11 +356,8 @@ static inline u64 HvCallPci_barStore32(u16 busNumberParm, u8 subBusParm, | |||
394 | dsa.deviceId = deviceIdParm; | 356 | dsa.deviceId = deviceIdParm; |
395 | dsa.barNumber = barNumberParm; | 357 | dsa.barNumber = barNumberParm; |
396 | 358 | ||
397 | retVal = HvCall4(HvCallPciBarStore32, *(u64 *)&dsa, offsetParm, valueParm, 0); | 359 | return HvCall4(HvCallPciBarStore32, *(u64 *)&dsa, offsetParm, |
398 | 360 | valueParm, 0); | |
399 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
400 | |||
401 | return retVal; | ||
402 | } | 361 | } |
403 | 362 | ||
404 | static inline u64 HvCallPci_barStore64(u16 busNumberParm, u8 subBusParm, | 363 | static inline u64 HvCallPci_barStore64(u16 busNumberParm, u8 subBusParm, |
@@ -406,7 +365,6 @@ static inline u64 HvCallPci_barStore64(u16 busNumberParm, u8 subBusParm, | |||
406 | u64 valueParm) | 365 | u64 valueParm) |
407 | { | 366 | { |
408 | struct HvCallPci_DsaAddr dsa; | 367 | struct HvCallPci_DsaAddr dsa; |
409 | u64 retVal; | ||
410 | 368 | ||
411 | *((u64*)&dsa) = 0; | 369 | *((u64*)&dsa) = 0; |
412 | 370 | ||
@@ -415,11 +373,8 @@ static inline u64 HvCallPci_barStore64(u16 busNumberParm, u8 subBusParm, | |||
415 | dsa.deviceId = deviceIdParm; | 373 | dsa.deviceId = deviceIdParm; |
416 | dsa.barNumber = barNumberParm; | 374 | dsa.barNumber = barNumberParm; |
417 | 375 | ||
418 | retVal = HvCall4(HvCallPciBarStore64, *(u64 *)&dsa, offsetParm, valueParm, 0); | 376 | return HvCall4(HvCallPciBarStore64, *(u64 *)&dsa, offsetParm, |
419 | 377 | valueParm, 0); | |
420 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
421 | |||
422 | return retVal; | ||
423 | } | 378 | } |
424 | 379 | ||
425 | static inline u64 HvCallPci_eoi(u16 busNumberParm, u8 subBusParm, | 380 | static inline u64 HvCallPci_eoi(u16 busNumberParm, u8 subBusParm, |
@@ -436,8 +391,6 @@ static inline u64 HvCallPci_eoi(u16 busNumberParm, u8 subBusParm, | |||
436 | 391 | ||
437 | HvCall1Ret16(HvCallPciEoi, &retVal, *(u64*)&dsa); | 392 | HvCall1Ret16(HvCallPciEoi, &retVal, *(u64*)&dsa); |
438 | 393 | ||
439 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
440 | |||
441 | return retVal.rc; | 394 | return retVal.rc; |
442 | } | 395 | } |
443 | 396 | ||
@@ -445,7 +398,6 @@ static inline u64 HvCallPci_getBarParms(u16 busNumberParm, u8 subBusParm, | |||
445 | u8 deviceIdParm, u8 barNumberParm, u64 parms, u32 sizeofParms) | 398 | u8 deviceIdParm, u8 barNumberParm, u64 parms, u32 sizeofParms) |
446 | { | 399 | { |
447 | struct HvCallPci_DsaAddr dsa; | 400 | struct HvCallPci_DsaAddr dsa; |
448 | u64 retVal; | ||
449 | 401 | ||
450 | *((u64*)&dsa) = 0; | 402 | *((u64*)&dsa) = 0; |
451 | 403 | ||
@@ -454,18 +406,13 @@ static inline u64 HvCallPci_getBarParms(u16 busNumberParm, u8 subBusParm, | |||
454 | dsa.deviceId = deviceIdParm; | 406 | dsa.deviceId = deviceIdParm; |
455 | dsa.barNumber = barNumberParm; | 407 | dsa.barNumber = barNumberParm; |
456 | 408 | ||
457 | retVal = HvCall3(HvCallPciGetBarParms, *(u64*)&dsa, parms, sizeofParms); | 409 | return HvCall3(HvCallPciGetBarParms, *(u64*)&dsa, parms, sizeofParms); |
458 | |||
459 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
460 | |||
461 | return retVal; | ||
462 | } | 410 | } |
463 | 411 | ||
464 | static inline u64 HvCallPci_maskFisr(u16 busNumberParm, u8 subBusParm, | 412 | static inline u64 HvCallPci_maskFisr(u16 busNumberParm, u8 subBusParm, |
465 | u8 deviceIdParm, u64 fisrMask) | 413 | u8 deviceIdParm, u64 fisrMask) |
466 | { | 414 | { |
467 | struct HvCallPci_DsaAddr dsa; | 415 | struct HvCallPci_DsaAddr dsa; |
468 | u64 retVal; | ||
469 | 416 | ||
470 | *((u64*)&dsa) = 0; | 417 | *((u64*)&dsa) = 0; |
471 | 418 | ||
@@ -473,18 +420,13 @@ static inline u64 HvCallPci_maskFisr(u16 busNumberParm, u8 subBusParm, | |||
473 | dsa.subBusNumber = subBusParm; | 420 | dsa.subBusNumber = subBusParm; |
474 | dsa.deviceId = deviceIdParm; | 421 | dsa.deviceId = deviceIdParm; |
475 | 422 | ||
476 | retVal = HvCall2(HvCallPciMaskFisr, *(u64*)&dsa, fisrMask); | 423 | return HvCall2(HvCallPciMaskFisr, *(u64*)&dsa, fisrMask); |
477 | |||
478 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
479 | |||
480 | return retVal; | ||
481 | } | 424 | } |
482 | 425 | ||
483 | static inline u64 HvCallPci_unmaskFisr(u16 busNumberParm, u8 subBusParm, | 426 | static inline u64 HvCallPci_unmaskFisr(u16 busNumberParm, u8 subBusParm, |
484 | u8 deviceIdParm, u64 fisrMask) | 427 | u8 deviceIdParm, u64 fisrMask) |
485 | { | 428 | { |
486 | struct HvCallPci_DsaAddr dsa; | 429 | struct HvCallPci_DsaAddr dsa; |
487 | u64 retVal; | ||
488 | 430 | ||
489 | *((u64*)&dsa) = 0; | 431 | *((u64*)&dsa) = 0; |
490 | 432 | ||
@@ -492,18 +434,13 @@ static inline u64 HvCallPci_unmaskFisr(u16 busNumberParm, u8 subBusParm, | |||
492 | dsa.subBusNumber = subBusParm; | 434 | dsa.subBusNumber = subBusParm; |
493 | dsa.deviceId = deviceIdParm; | 435 | dsa.deviceId = deviceIdParm; |
494 | 436 | ||
495 | retVal = HvCall2(HvCallPciUnmaskFisr, *(u64*)&dsa, fisrMask); | 437 | return HvCall2(HvCallPciUnmaskFisr, *(u64*)&dsa, fisrMask); |
496 | |||
497 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
498 | |||
499 | return retVal; | ||
500 | } | 438 | } |
501 | 439 | ||
502 | static inline u64 HvCallPci_setSlotReset(u16 busNumberParm, u8 subBusParm, | 440 | static inline u64 HvCallPci_setSlotReset(u16 busNumberParm, u8 subBusParm, |
503 | u8 deviceIdParm, u64 onNotOff) | 441 | u8 deviceIdParm, u64 onNotOff) |
504 | { | 442 | { |
505 | struct HvCallPci_DsaAddr dsa; | 443 | struct HvCallPci_DsaAddr dsa; |
506 | u64 retVal; | ||
507 | 444 | ||
508 | *((u64*)&dsa) = 0; | 445 | *((u64*)&dsa) = 0; |
509 | 446 | ||
@@ -511,18 +448,13 @@ static inline u64 HvCallPci_setSlotReset(u16 busNumberParm, u8 subBusParm, | |||
511 | dsa.subBusNumber = subBusParm; | 448 | dsa.subBusNumber = subBusParm; |
512 | dsa.deviceId = deviceIdParm; | 449 | dsa.deviceId = deviceIdParm; |
513 | 450 | ||
514 | retVal = HvCall2(HvCallPciSetSlotReset, *(u64*)&dsa, onNotOff); | 451 | return HvCall2(HvCallPciSetSlotReset, *(u64*)&dsa, onNotOff); |
515 | |||
516 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
517 | |||
518 | return retVal; | ||
519 | } | 452 | } |
520 | 453 | ||
521 | static inline u64 HvCallPci_getDeviceInfo(u16 busNumberParm, u8 subBusParm, | 454 | static inline u64 HvCallPci_getDeviceInfo(u16 busNumberParm, u8 subBusParm, |
522 | u8 deviceNumberParm, u64 parms, u32 sizeofParms) | 455 | u8 deviceNumberParm, u64 parms, u32 sizeofParms) |
523 | { | 456 | { |
524 | struct HvCallPci_DsaAddr dsa; | 457 | struct HvCallPci_DsaAddr dsa; |
525 | u64 retVal; | ||
526 | 458 | ||
527 | *((u64*)&dsa) = 0; | 459 | *((u64*)&dsa) = 0; |
528 | 460 | ||
@@ -530,18 +462,13 @@ static inline u64 HvCallPci_getDeviceInfo(u16 busNumberParm, u8 subBusParm, | |||
530 | dsa.subBusNumber = subBusParm; | 462 | dsa.subBusNumber = subBusParm; |
531 | dsa.deviceId = deviceNumberParm << 4; | 463 | dsa.deviceId = deviceNumberParm << 4; |
532 | 464 | ||
533 | retVal = HvCall3(HvCallPciGetDeviceInfo, *(u64*)&dsa, parms, sizeofParms); | 465 | return HvCall3(HvCallPciGetDeviceInfo, *(u64*)&dsa, parms, sizeofParms); |
534 | |||
535 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
536 | |||
537 | return retVal; | ||
538 | } | 466 | } |
539 | 467 | ||
540 | static inline u64 HvCallPci_maskInterrupts(u16 busNumberParm, u8 subBusParm, | 468 | static inline u64 HvCallPci_maskInterrupts(u16 busNumberParm, u8 subBusParm, |
541 | u8 deviceIdParm, u64 interruptMask) | 469 | u8 deviceIdParm, u64 interruptMask) |
542 | { | 470 | { |
543 | struct HvCallPci_DsaAddr dsa; | 471 | struct HvCallPci_DsaAddr dsa; |
544 | u64 retVal; | ||
545 | 472 | ||
546 | *((u64*)&dsa) = 0; | 473 | *((u64*)&dsa) = 0; |
547 | 474 | ||
@@ -549,18 +476,13 @@ static inline u64 HvCallPci_maskInterrupts(u16 busNumberParm, u8 subBusParm, | |||
549 | dsa.subBusNumber = subBusParm; | 476 | dsa.subBusNumber = subBusParm; |
550 | dsa.deviceId = deviceIdParm; | 477 | dsa.deviceId = deviceIdParm; |
551 | 478 | ||
552 | retVal = HvCall2(HvCallPciMaskInterrupts, *(u64*)&dsa, interruptMask); | 479 | return HvCall2(HvCallPciMaskInterrupts, *(u64*)&dsa, interruptMask); |
553 | |||
554 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
555 | |||
556 | return retVal; | ||
557 | } | 480 | } |
558 | 481 | ||
559 | static inline u64 HvCallPci_unmaskInterrupts(u16 busNumberParm, u8 subBusParm, | 482 | static inline u64 HvCallPci_unmaskInterrupts(u16 busNumberParm, u8 subBusParm, |
560 | u8 deviceIdParm, u64 interruptMask) | 483 | u8 deviceIdParm, u64 interruptMask) |
561 | { | 484 | { |
562 | struct HvCallPci_DsaAddr dsa; | 485 | struct HvCallPci_DsaAddr dsa; |
563 | u64 retVal; | ||
564 | 486 | ||
565 | *((u64*)&dsa) = 0; | 487 | *((u64*)&dsa) = 0; |
566 | 488 | ||
@@ -568,18 +490,13 @@ static inline u64 HvCallPci_unmaskInterrupts(u16 busNumberParm, u8 subBusParm, | |||
568 | dsa.subBusNumber = subBusParm; | 490 | dsa.subBusNumber = subBusParm; |
569 | dsa.deviceId = deviceIdParm; | 491 | dsa.deviceId = deviceIdParm; |
570 | 492 | ||
571 | retVal = HvCall2(HvCallPciUnmaskInterrupts, *(u64*)&dsa, interruptMask); | 493 | return HvCall2(HvCallPciUnmaskInterrupts, *(u64*)&dsa, interruptMask); |
572 | |||
573 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
574 | |||
575 | return retVal; | ||
576 | } | 494 | } |
577 | 495 | ||
578 | static inline u64 HvCallPci_getBusUnitInfo(u16 busNumberParm, u8 subBusParm, | 496 | static inline u64 HvCallPci_getBusUnitInfo(u16 busNumberParm, u8 subBusParm, |
579 | u8 deviceIdParm, u64 parms, u32 sizeofParms) | 497 | u8 deviceIdParm, u64 parms, u32 sizeofParms) |
580 | { | 498 | { |
581 | struct HvCallPci_DsaAddr dsa; | 499 | struct HvCallPci_DsaAddr dsa; |
582 | u64 retVal; | ||
583 | 500 | ||
584 | *((u64*)&dsa) = 0; | 501 | *((u64*)&dsa) = 0; |
585 | 502 | ||
@@ -587,37 +504,30 @@ static inline u64 HvCallPci_getBusUnitInfo(u16 busNumberParm, u8 subBusParm, | |||
587 | dsa.subBusNumber = subBusParm; | 504 | dsa.subBusNumber = subBusParm; |
588 | dsa.deviceId = deviceIdParm; | 505 | dsa.deviceId = deviceIdParm; |
589 | 506 | ||
590 | retVal = HvCall3(HvCallPciGetBusUnitInfo, *(u64*)&dsa, parms, sizeofParms); | 507 | return HvCall3(HvCallPciGetBusUnitInfo, *(u64*)&dsa, parms, |
591 | 508 | sizeofParms); | |
592 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
593 | |||
594 | return retVal; | ||
595 | } | 509 | } |
596 | 510 | ||
597 | static inline int HvCallPci_getBusVpd(u16 busNumParm, u64 destParm, | 511 | static inline int HvCallPci_getBusVpd(u16 busNumParm, u64 destParm, |
598 | u16 sizeParm) | 512 | u16 sizeParm) |
599 | { | 513 | { |
600 | int xRetSize; | 514 | u64 xRc = HvCall4(HvCallPciGetCardVpd, busNumParm, destParm, |
601 | u64 xRc = HvCall4(HvCallPciGetCardVpd, busNumParm, destParm, sizeParm, HvCallPci_BusVpd); | 515 | sizeParm, HvCallPci_BusVpd); |
602 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
603 | if (xRc == -1) | 516 | if (xRc == -1) |
604 | xRetSize = -1; | 517 | return -1; |
605 | else | 518 | else |
606 | xRetSize = xRc & 0xFFFF; | 519 | return xRc & 0xFFFF; |
607 | return xRetSize; | ||
608 | } | 520 | } |
609 | 521 | ||
610 | static inline int HvCallPci_getBusAdapterVpd(u16 busNumParm, u64 destParm, | 522 | static inline int HvCallPci_getBusAdapterVpd(u16 busNumParm, u64 destParm, |
611 | u16 sizeParm) | 523 | u16 sizeParm) |
612 | { | 524 | { |
613 | int xRetSize; | 525 | u64 xRc = HvCall4(HvCallPciGetCardVpd, busNumParm, destParm, |
614 | u64 xRc = HvCall4(HvCallPciGetCardVpd, busNumParm, destParm, sizeParm, HvCallPci_BusAdapterVpd); | 526 | sizeParm, HvCallPci_BusAdapterVpd); |
615 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | ||
616 | if (xRc == -1) | 527 | if (xRc == -1) |
617 | xRetSize = -1; | 528 | return -1; |
618 | else | 529 | else |
619 | xRetSize = xRc & 0xFFFF; | 530 | return xRc & 0xFFFF; |
620 | return xRetSize; | ||
621 | } | 531 | } |
622 | 532 | ||
623 | #endif /* _HVCALLPCI_H */ | 533 | #endif /* _HVCALLPCI_H */ |