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