home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4942 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.1 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!nigel.msen.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cmcl2!panix!rjo
  2. From: rjo@panix.com (Robert Olivier)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Writing Device Drivers
  5. Message-ID: <1992Sep14.142829.912@panix.com>
  6. Date: 14 Sep 92 14:28:29 GMT
  7. References: <msf.716240474@skaro>
  8. Distribution: na
  9. Organization: PANIX Public Access Unix, NYC
  10. Lines: 24
  11.  
  12. In <msf.716240474@skaro> msf@skaro.as.arizona.edu (Michael Fulbright) writes:
  13.  
  14. >I am working on a port of the SBBSD unix device driver for the Sound
  15. >Blaster.  I have looked at several sample device drivers and I have
  16. >almost all the info I need. I have 2 remaining questions:
  17.  
  18. >1) How do you parse the command line from CONFIG.SYS that invoked
  19. >   your device driver?
  20.  
  21. >   Say CONFIG.SYS has    DEVICE=D:\A.SYS A B C D
  22.  
  23. >   How do I get the string 'A B C D'? Is it passed as part of the
  24. >   initialization request packet?
  25.  
  26. The parameters are passed in the init request block beginning at offset
  27. 0x12.  This is covered on page 15-5 in the IBM Physical Device Driver
  28. Reference.
  29.  
  30. rjo@panix.com
  31.  
  32. -- 
  33. Robert J. Olivier
  34.  
  35. rjo@panix.com
  36.