readw/readb/... for memorymapped devices
Brought to you by:
efhilton
please insert this (or something similar) into next
release to allow easy access to memory mapped devices
====== main.h
#if !IO_DEBUG
#include <asm/io.h>
#define WRITEB(x,y) writeb((x),(y))
#define WRITEW(x,y) writew((x),(y))
#define READW(x) readw((x))
#define READB(x) readb((x))
#else IO_DEBUG
#define TINY_DELAY {}
#define WRITEB(x,y) TINY_DELAY
#define WRITEW(x,y) TINY_DELAY
#define READW(x) (0)
#define READB(x) (0)
#endif IO_DEBUG
-------------
regards,
stefan doehla