Commit 18da0cad authored by Greg Ungerer's avatar Greg Ungerer Committed by Steve French

[PATCH] define raw read/write for m68knommu io access

Define the raw read and write access macros for m68knommu.
These rae use by MTD drivers in particular.
parent 6543adbd
...@@ -43,6 +43,13 @@ static inline unsigned int _swapl(volatile unsigned long v) ...@@ -43,6 +43,13 @@ static inline unsigned int _swapl(volatile unsigned long v)
#define writew(b,addr) (void)((*(volatile unsigned short *) (addr)) = (b)) #define writew(b,addr) (void)((*(volatile unsigned short *) (addr)) = (b))
#define writel(b,addr) (void)((*(volatile unsigned int *) (addr)) = (b)) #define writel(b,addr) (void)((*(volatile unsigned int *) (addr)) = (b))
#define __raw_readb readb
#define __raw_readw readw
#define __raw_readl readl
#define __raw_writeb writeb
#define __raw_writew writew
#define __raw_writel writel
static inline void io_outsb(unsigned int addr, void *buf, int len) static inline void io_outsb(unsigned int addr, void *buf, int len)
{ {
volatile unsigned char *ap = (volatile unsigned char *) addr; volatile unsigned char *ap = (volatile unsigned char *) addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment