[comp.unix.questions] Port i/o in a driver ??

larry@focsys.UUCP (Larry Williamson) (06/22/88)

I am writing a device driver (microport 2.3.0-U) where I must control
an interface board through 2 16 bit i/o ports. These may be accessed
as 4 8 bit ports, its just that logically they look like 2 16 bit 
ports.

From the documentation on adding device drivers in the microport
manuals, it is suggested that inb() and outb() be used to read
and write i/o ports.

Using these routines, I was not able to control the board. I tried
using in() and out() instead, and this seems to work. I say 'seems'
because I am still having troubles that may or may not be related
to port access.

In any case, there is no documentation on in() and out(), so I don't
really know if I'm using them properly.

What is the "correct" method to access io ports in 2.3.0?

If it makes any difference, the ports are located at 0x230-0x233.

Thanks for any help you may be able to offer me.

larry
-- 
Larry Williamson                      Focus Automation Systems
UUCP: watmath!focsys!larry    608 Weber St. N, Waterloo, Ontario N2V 1K4
                                          +1 519 746 4918