Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172379
b: refs/heads/master
c: 1f739d7
h: refs/heads/master
i:
  172377: 6bca08c
  172375: 4f4540b
v: v3
  • Loading branch information
Leo Chen authored and Russell King committed Dec 3, 2009
1 parent 8b555f5 commit 50fc1c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 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: 394168389c5770accf1d255fdfe45846ec121585
refs/heads/master: 1f739d7643c4cf78b4f2d9d620c4305aafc7d3b9
35 changes: 6 additions & 29 deletions trunk/arch/arm/mach-bcmring/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,11 @@

#define IO_SPACE_LIMIT 0xffffffff

#define __io(a) ((void __iomem *)HW_IO_PHYS_TO_VIRT(a))

/* Do not enable mem_pci for a big endian arm architecture or unexpected byteswaps will */
/* happen in readw/writew etc. */

#define readb(c) __raw_readb(c)
#define readw(c) __raw_readw(c)
#define readl(c) __raw_readl(c)
#define readb_relaxed(addr) readb(addr)
#define readw_relaxed(addr) readw(addr)
#define readl_relaxed(addr) readl(addr)

#define readsb(p, d, l) __raw_readsb(p, d, l)
#define readsw(p, d, l) __raw_readsw(p, d, l)
#define readsl(p, d, l) __raw_readsl(p, d, l)

#define writeb(v, c) __raw_writeb(v, c)
#define writew(v, c) __raw_writew(v, c)
#define writel(v, c) __raw_writel(v, c)

#define writesb(p, d, l) __raw_writesb(p, d, l)
#define writesw(p, d, l) __raw_writesw(p, d, l)
#define writesl(p, d, l) __raw_writesl(p, d, l)

#define memset_io(c, v, l) _memset_io((c), (v), (l))
#define memcpy_fromio(a, c, l) _memcpy_fromio((a), (c), (l))
#define memcpy_toio(c, a, l) _memcpy_toio((c), (a), (l))

#define eth_io_copy_and_sum(s, c, l, b) eth_copy_and_sum((s), (c), (l), (b))
/*
* We don't actually have real ISA nor PCI buses, but there is so many
* drivers out there that might just work if we fake them...
*/
#define __io(a) __typesafe_io(a)
#define __mem_pci(a) (a)

#endif

0 comments on commit 50fc1c9

Please sign in to comment.