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

  1. Path: sparky!uunet!gatech!ncar!noao!amethyst!organpipe.uug.arizona.edu!skaro!msf
  2. From: msf@skaro.as.arizona.edu (Michael Fulbright)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Writing Device Drivers
  5. Message-ID: <msf.716240474@skaro>
  6. Date: 11 Sep 92 19:41:14 GMT
  7. Sender: news@organpipe.uug.arizona.edu
  8. Distribution: na
  9. Organization: University of Arizona UNIX Users Group
  10. Lines: 34
  11.  
  12. I am working on a port of the SBBSD unix device driver for the Sound
  13. Blaster.  I have looked at several sample device drivers and I have
  14. almost all the info I need. I have 2 remaining questions:
  15.  
  16. 1) How do you parse the command line from CONFIG.SYS that invoked
  17.    your device driver?
  18.  
  19.    Say CONFIG.SYS has    DEVICE=D:\A.SYS A B C D
  20.  
  21.    How do I get the string 'A B C D'? Is it passed as part of the
  22.    initialization request packet?
  23.  
  24. 2) The sample code I have is for pre-2.0 drivers. I understand from
  25.    'The Design of OS/2' that 2.0 drivers are still 16 bit, except for
  26.    the VDD part, which i'm not dealing with. Also, in 2.0 you do NOT
  27.    need to write bimodal code, since the DOS emulation is done in
  28.    protected mode. Do I have this right?
  29.  
  30. And as a final request, if anyone knows of or has sample code using
  31. DMA I would be very appreciative. I plan on releasing the device driver
  32. into the public domain.
  33.  
  34. <BEGIN AD>
  35. If you arent familar with the BSD driver for the SB and SB Pro, it
  36. sets up seperate devices for the FM, MIDI and VOICE sections of the
  37. card. Then you can open the VOICE section, for example, and use
  38. standard i/o calls to read and write to the SB. On the SB Pro it
  39. also has a device for the Mixer, so you can control the volume and
  40. other things. I have the source code for TrakBlaster, a .MOD player,
  41. which compiles fine, so all i need now is to finish the device driver.
  42. <END OF AD>
  43.  
  44. michael fulbright
  45. msf@as.arizona.edu
  46.