home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9566 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.1 KB  |  24 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!asmith
  3. From: asmith@cbnewsd.cb.att.com (arthur.c.smith)
  4. Subject: io.h/iopl
  5. Organization: AT&T
  6. Date: Tue, 1 Sep 1992 12:36:48 GMT
  7. Message-ID: <1992Sep1.123648.18859@cbnewsd.cb.att.com>
  8. Lines: 14
  9.  
  10. Hi,
  11.  I have been working on an S3 driver for X and have an 80X86 asm program
  12. under dos that will setup the S3 chip correctly (and uses the enhanced
  13. rectangle fill command to clear the screen 8-)). I am trying to port this
  14. over to Linux. I am having two problems. 1) In trying to use sys_iopl()
  15. I tried to write it as _syscall1(void,110,int,3) and include unistd.h
  16. (and __LIBRARY__ defined). I get an error when this compiles. Is there
  17. a better way to do this? 2) Trying to port to C: When I include /usr/src/linux/
  18. include/asm/io.h and use outb I get undefined _outb referenced in .text. In
  19. looking at io.h it appears as if the outb function is defined as extern but
  20. is also defined in io.h???
  21.         Thanks for any help,
  22.                        Art  asmith@cbnewsd.att.com
  23.  
  24.