home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3758 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.1 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: joe2@vnet.ibm.com
  3. Message-ID: <19920724.095122.977@almaden.ibm.com>
  4. Date: Fri, 24 Jul 92 18:43:06 FST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: IOPL summary
  7. Reply-To: <joe2@vnet.ibm.com>
  8. Disclaimer: This posting represents the poster's views, not those of IBM
  9. News-Software: UReply 3.0
  10. References: <4063@news.duke.edu>
  11. Lines: 33
  12.  
  13. In <4063@news.duke.edu> Jan Gittelman writes:
  14. >Summary on IOPL
  15. >
  16. >1. IOPL'd code has to be 16 bit, can't be 32 bit. So for that matter do device
  17. >   drivers. All 2.0 device drivers according to IBM are 16 bits.
  18. >
  19.  
  20.    There is another undocumented (yet?) way on OS/2 2.0 : provided
  21. that TESTCFG.SYS is installed, you can use this driver for simple
  22. I/O : use DosDevIOCtl, Category 80h
  23.  
  24.  
  25. 1) FOr an IN instruction : function 41h
  26.    Parameter packet:
  27.     USHORT io_address
  28.     USHORT data_width  (1 for byte, 2 for word, 4 for dword)
  29.  
  30.    Data packet:
  31.    ULONG value(value read)
  32.  
  33. 2) For an OUT instruction: function 42h
  34.    Parameter packet:
  35.     USHORT io_address
  36.     USHORT data_width
  37.     ULONG  value
  38.  
  39.     No data packet
  40.  
  41.  
  42.     Hope this helps!
  43.  
  44.  
  45.     -Joel Armengaud
  46.