diff options
Diffstat (limited to 'arch/xtensa/kernel/pci.c')
| -rw-r--r-- | arch/xtensa/kernel/pci.c | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/arch/xtensa/kernel/pci.c b/arch/xtensa/kernel/pci.c index 77deae5290f0..b7c073484e01 100644 --- a/arch/xtensa/kernel/pci.c +++ b/arch/xtensa/kernel/pci.c | |||
| @@ -394,72 +394,3 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | |||
| 394 | 394 | ||
| 395 | return ret; | 395 | return ret; |
| 396 | } | 396 | } |
| 397 | |||
| 398 | /* | ||
| 399 | * This probably belongs here rather than ioport.c because | ||
| 400 | * we do not want this crud linked into SBus kernels. | ||
| 401 | * Also, think for a moment about likes of floppy.c that | ||
| 402 | * include architecture specific parts. They may want to redefine ins/outs. | ||
| 403 | * | ||
| 404 | * We do not use horrible macros here because we want to | ||
| 405 | * advance pointer by sizeof(size). | ||
| 406 | */ | ||
| 407 | void outsb(unsigned long addr, const void *src, unsigned long count) { | ||
| 408 | while (count) { | ||
| 409 | count -= 1; | ||
| 410 | writeb(*(const char *)src, addr); | ||
| 411 | src += 1; | ||
| 412 | addr += 1; | ||
| 413 | } | ||
| 414 | } | ||
| 415 | |||
| 416 | void outsw(unsigned long addr, const void *src, unsigned long count) { | ||
| 417 | while (count) { | ||
| 418 | count -= 2; | ||
| 419 | writew(*(const short *)src, addr); | ||
| 420 | src += 2; | ||
| 421 | addr += 2; | ||
| 422 | } | ||
| 423 | } | ||
| 424 | |||
| 425 | void outsl(unsigned long addr, const void *src, unsigned long count) { | ||
| 426 | while (count) { | ||
| 427 | count -= 4; | ||
| 428 | writel(*(const long *)src, addr); | ||
| 429 | src += 4; | ||
| 430 | addr += 4; | ||
| 431 | } | ||
| 432 | } | ||
| 433 | |||
| 434 | void insb(unsigned long addr, void *dst, unsigned long count) { | ||
| 435 | while (count) { | ||
| 436 | count -= 1; | ||
| 437 | *(unsigned char *)dst = readb(addr); | ||
| 438 | dst += 1; | ||
| 439 | addr += 1; | ||
| 440 | } | ||
| 441 | } | ||
| 442 | |||
| 443 | void insw(unsigned long addr, void *dst, unsigned long count) { | ||
| 444 | while (count) { | ||
| 445 | count -= 2; | ||
| 446 | *(unsigned short *)dst = readw(addr); | ||
| 447 | dst += 2; | ||
| 448 | addr += 2; | ||
| 449 | } | ||
| 450 | } | ||
| 451 | |||
| 452 | void insl(unsigned long addr, void *dst, unsigned long count) { | ||
| 453 | while (count) { | ||
| 454 | count -= 4; | ||
| 455 | /* | ||
| 456 | * XXX I am sure we are in for an unaligned trap here. | ||
| 457 | */ | ||
| 458 | *(unsigned long *)dst = readl(addr); | ||
| 459 | dst += 4; | ||
| 460 | addr += 4; | ||
| 461 | } | ||
| 462 | } | ||
| 463 | |||
| 464 | |||
| 465 | |||
