[ECOS] Port I/O functions (outb, inb)?
Trenton D. Adams
tadams@extremeeng.com
Wed Oct 10 08:38:00 GMT 2001
Does eCos have port I/O functions such as outb() and inb()? It think
everything I access on my EDB7XXX is memory mapped anyhow, but I'm just
curious.
In particular, I'm trying to write a WaveLAN driver. I'm porting from
OpenBSD and noticed the bus_space_write_X macros do an outX() or a type
cast according to the size being written and whether it's a port or a
memory address.
#define bus_space_write_1(t, h, o, v) do {
\
if ((t) == I386_BUS_SPACE_IO)
\
outb((h) + (o), (v));
\
else
\
((void)(*(volatile u_int8_t *)((h) + (o)) = (v)));
\
} while (0)
I'm quite positive I don't need to worry about it because my CL-PS6700
controller is totally memory mapped, and doesn't require port I/O. All
I would have to do is the "else"!
Still curious though!
Trenton D. Adams
Extreme Engineering
#17, 6025 - 12 St. SE
Calgary, Alberta, Canada
T2H 2K1
Phone: 403 640 9494 ext-208
Fax: 403 640 9599
http://www.extremeeng.com
More information about the Ecos-discuss
mailing list