home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / labhelp.zip / labhelp.txt
Internet Message Format  |  1993-06-17  |  2KB

  1. From: tommy@msc.cornell.edu
  2. Newsgroups: comp.os.os2.programmer.misc
  3. Organization: Cornell-Materials-Science-Center
  4. Reply-To: tommy@msc.cornell.edu
  5.  
  6. From article <kendelm.740105369@argon>, by kendelm@argon.gas.uug.arizona.edu (kendel m mccarley):
  7. > I'm working at porting an application to be native os/2.  I'm 
  8. > new to this operating system and have gotten rather frustrated
  9. > at trying to figure out how to access physical memory.  I need
  10. > to read and write data from a memory and io mapped plug in board
  11. > that sits in user defined memory space and 300H in the io space.
  12. > The board takes up 16k of memory mapping.
  13. > I've tried IBM's documentation for device drivers, but haven't
  14. > found much in the way of answers.  Can anybody please point me
  15. > in the right direction to figure out how to do what was so easy
  16. > in DOS?
  17.  
  18. I wrote a device driver to give C programs unlimited access to physical
  19. memory.  It is a series of routines in a driver appropriately  called
  20. labhelp (since it helps me do things in the lab that would normally be
  21. considered VERY ILLEGAL).  
  22.  
  23. The driver works by opening a special device, asking for a physical
  24. memory address and it's length, and it returns a pointer appropriate
  25. for use directly from C.  The full source code is listed if you want
  26. to modify or incorporate into your programs.  I can't remember if I've
  27. but you can get it from my machine as detailed below.
  28.  
  29. A second package (which is on hobbes), handles I/O port access.  It is
  30. fine for a low speed access (100 khZ max); you will want to modify the
  31. code if you are grabbing or sending digitized data at faster rates.
  32.  
  33. I can't remember what's uploaded it to hobbes, but you can get it from
  34. my OS/2 machine.
  35.  
  36. ftp: 128.84.249.11 (lore.msc.cornell.edu)
  37. login: anonymous  (no, ftp doesn't work on IBM TCP/IP package)
  38. binary
  39. get labhelp.zip
  40. get portio.zip
  41.  
  42. > - Kendel
  43. -- 
  44. Michael O. Thompson            tommy@msc.cornell.edu
  45. Cornell University             (607) 255-4714
  46.  
  47. OS/2:  For the few, the proud, the devoted!
  48.  
  49. ---
  50.  * Origin: The Black Cat's Usenet <=> Fidonet Gateway (1:109/401.0)
  51.