From: asmith@cbnewsd.cb.att.com (arthur.c.smith) Subject: io.h/iopl Date: 1 Sep 1992 12:36:48 GMT
Hi,
I have been working on an S3 driver for X and have an 80X86 asm program
under dos that will setup the S3 chip correctly (and uses the enhanced
rectangle fill command to clear the screen 8-)). I am trying to port this
over to Linux. I am having two problems. 1) In trying to use sys_iopl()
I tried to write it as _syscall1(void,110,int,3) and include unistd.h
(and __LIBRARY__ defined). I get an error when this compiles. Is there
a better way to do this? 2) Trying to port to C: When I include /usr/src/linux/
include/asm/io.h and use outb I get undefined _outb referenced in .text. In
looking at io.h it appears as if the outb function is defined as extern but
is also defined in io.h???
Thanks for any help,
Art asmith@cbnewsd.att.com