Skip to content

Commit

Permalink
parisc: define x->x mmio accessors
Browse files Browse the repository at this point in the history
Bloody inconsiderate driver writers...

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Mar 13, 2009
1 parent d499524 commit 0cb385e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/parisc/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ static inline void writeq(unsigned long long q, volatile void __iomem *addr)
__raw_writeq(cpu_to_le64(q), addr);
}

#define readb readb
#define readw readw
#define readl readl
#define readq readq
#define writeb writeb
#define writew writew
#define writel writel
#define writeq writeq

#define readb_relaxed(addr) readb(addr)
#define readw_relaxed(addr) readw(addr)
#define readl_relaxed(addr) readl(addr)
Expand Down

0 comments on commit 0cb385e

Please sign in to comment.