Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!mit-eddie!uw-beaver!ssc-vax!uvicctr!dtsai From: dtsai@uvicctr.UUCP (David Tsai) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.sys.ibm.pc Subject: How do I access the ports? Message-ID: <302@uvicctr.UUCP> Date: Mon, 3-Aug-87 23:31:50 EDT Article-I.D.: uvicctr.302 Posted: Mon Aug 3 23:31:50 1987 Date-Received: Thu, 6-Aug-87 04:33:12 EDT Reply-To: dtsai@uvicctr.UUCP (David Tsai) Distribution: world Organization: University of Victoria, Victoria, BC, Canada Lines: 46 Keywords: xenix, port Xref: mnetor comp.unix.xenix:554 comp.unix.questions:3466 comp.sys.ibm.pc:6344 Can anyone help me? I have been trying to write to ports under the XENIX operating system and have gotten nowhere in the last month. The routines I want to use are: out( ), outb( ), in(port):word, inb(port):byte, and are given in the SCO XENIX System V Development System manual, 'Programmer's Guide II', pp 8-11 of 'Writing Device Drivers'; and in the IBM XENIX Version 2.00, pp 10-12 and 10-13 of 'Application Development Guide'. I know I can write to the ports because: 1. there is no problem with the hardwares (had them checked), 2. both the SCO XENIX System V and IBM XENIX manuals state that this can be done, 3. the sample codes given in the manuals use the routines. But I always get unresolved external reference error when linking. My problems are: 1. I am not sure which .h files are needed, 2. or which .o file(s) (or Libraries) I must link with. And I have tried getting around using the 'supplied' routines by writing my own assembler routines, but this method gives me segmentation violation error everytime the 'out'and 'in' assembler instructions of the 80286 are encountered. Does this mean that I have to configure the ports that I want to used? Do I used mknode? If I configure the ports, then can I use 'open( )' calls and access the ports like a file? I can help but think I am off on some tangent somewhere and any help, hints, source codes or whatever to get me back on track will be greatly appreciated. Thanks (in advance). -- -- David Tsai ...!{uw-beaver!ssc-vax, ubc-vision}!uvicctr!dtsai dtsai@uvicctr.nrl-css.arpa dtsai@uvunix.bitnet dtsai@uvunix.uvic.cdn