Xref: utzoo comp.unix.microport:885 comp.unix.questions:7690 Path: utzoo!utgpu!water!watmath!focsys!larry From: larry@focsys.UUCP (Larry Williamson) Newsgroups: comp.unix.microport,comp.unix.questions Subject: Port i/o in a driver ?? Message-ID: <190@focsys.UUCP> Date: 21 Jun 88 17:42:33 GMT Reply-To: larry@focsys.UUCP (Larry Williamson) Distribution: na Organization: Focus Automation Systems Inc. Waterloo, Ontario. Lines: 28 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