Menu

#2 readw/readb/... for memorymapped devices

open
5
2001-10-19
2001-10-19
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.