Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45176
b: refs/heads/master
c: b0b1d60
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and Russell King committed Dec 30, 2006
1 parent 27e4124 commit da71fbe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cc2f7a84d64d25a16bb9383148c1467284e2356
refs/heads/master: b0b1d60a64054697ef828e0565f006cc0f823590
19 changes: 19 additions & 0 deletions trunk/arch/arm/mach-iop13xx/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@
#include <asm/hardware.h>
#include <asm/io.h>

void * __iomem __iop13xx_io(unsigned long io_addr)
{
void __iomem * io_virt;

switch (io_addr) {
case IOP13XX_PCIE_LOWER_IO_PA ... IOP13XX_PCIE_UPPER_IO_PA:
io_virt = (void *) IOP13XX_PCIE_IO_PHYS_TO_VIRT(io_addr);
break;
case IOP13XX_PCIX_LOWER_IO_PA ... IOP13XX_PCIX_UPPER_IO_PA:
io_virt = (void *) IOP13XX_PCIX_IO_PHYS_TO_VIRT(io_addr);
break;
default:
BUG();
}

return io_virt;
}
EXPORT_SYMBOL(__iop13xx_io);

void * __iomem __iop13xx_ioremap(unsigned long cookie, size_t size,
unsigned long flags)
{
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/asm-arm/arch-iop13xx/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@

#define IO_SPACE_LIMIT 0xffffffff

#define __io(a) (a)
#define __io(a) __iop13xx_io(a)
#define __mem_pci(a) (a)
#define __mem_isa(a) (a)

extern void __iomem * __iop13xx_io(unsigned long io_addr);
extern void __iomem * __ioremap(unsigned long, size_t, unsigned long);
extern void __iomem *__iop13xx_ioremap(unsigned long cookie, size_t size,
unsigned long flags);
Expand Down

0 comments on commit da71fbe

Please sign in to comment.