Updated include files for sound drivers.
authorSteven Wallace <swallace@ece.uci.edu>
Fri, 11 Mar 1994 10:28:36 +0000 (10:28 +0000)
committerSteven Wallace <swallace@ece.uci.edu>
Fri, 11 Mar 1994 10:28:36 +0000 (10:28 +0000)
sys/i386/include/soundcard.h
sys/i386/include/ultrasound.h

index 23f2031..827611a 100644 (file)
  /* 
   * If you make modifications to this file, please contact me before
   * distributing the modified version. There is already enough 
  /* 
   * If you make modifications to this file, please contact me before
   * distributing the modified version. There is already enough 
-  * diversity in the world.
+  * divercity in the world.
   *
   * Regards,
   * Hannu Savolainen
   * hsavolai@cs.helsinki.fi
   */
 
   *
   * Regards,
   * Hannu Savolainen
   * hsavolai@cs.helsinki.fi
   */
 
-#define SOUND_VERSION  200
+#define SOUND_VERSION  203
+#define VOXWARE
 
 #include <sys/ioctl.h>
 
 
 #include <sys/ioctl.h>
 
@@ -50,6 +51,8 @@
 #define SNDCARD_PAS    3
 #define SNDCARD_GUS    4
 #define SNDCARD_MPU401 5
 #define SNDCARD_PAS    3
 #define SNDCARD_GUS    4
 #define SNDCARD_MPU401 5
+#define SNDCARD_SB16   6
+#define SNDCARD_SB16MIDI 7
 
 /***********************************
  * IOCTL Commands for /dev/sequencer
 
 /***********************************
  * IOCTL Commands for /dev/sequencer
@@ -66,9 +69,9 @@
  */
 /* #define     IOCTYPE         (0xff<<8) */
 #define        IOCPARM_MASK    0x7f            /* parameters must be < 128 bytes */
  */
 /* #define     IOCTYPE         (0xff<<8) */
 #define        IOCPARM_MASK    0x7f            /* parameters must be < 128 bytes */
-#define        IOC_VOID        0x20000000      /* no parameters */
-#define        IOC_OUT         0x40000000      /* copy out parameters */
-#define        IOC_IN          0x80000000      /* copy in parameters */
+#define        IOC_VOID        0x00000000      /* no parameters */
+#define        IOC_OUT         0x20000000      /* copy out parameters */
+#define        IOC_IN          0x40000000      /* copy in parameters */
 #define        IOC_INOUT       (IOC_IN|IOC_OUT)
 /* the 0x20000000 is so we can distinguish new ioctl's from old */
 #define        _IO(x,y)        ((int)(IOC_VOID|(x<<8)|y))
 #define        IOC_INOUT       (IOC_IN|IOC_OUT)
 /* the 0x20000000 is so we can distinguish new ioctl's from old */
 #define        _IO(x,y)        ((int)(IOC_VOID|(x<<8)|y))
@@ -180,7 +183,7 @@ struct patch_info {
        
                int             volume;
                int             spare[4];
        
                int             volume;
                int             spare[4];
-               char data[0];   /* The waveform data starts here */
+               char data[1];   /* The waveform data starts here */
        };
 
 
        };
 
 
@@ -402,7 +405,8 @@ struct midi_info {
                char            name[30];
                int             device;         /* 0-N. INITIALIZE BEFORE CALLING */
                unsigned long   capabilities;   /* To be defined later */
                char            name[30];
                int             device;         /* 0-N. INITIALIZE BEFORE CALLING */
                unsigned long   capabilities;   /* To be defined later */
-               int             dummies[19];    /* Reserve space */
+               int             dev_type;
+               int             dummies[18];    /* Reserve space */
        };
 
 /********************************************
        };
 
 /********************************************
@@ -418,6 +422,7 @@ struct midi_info {
 #define SOUND_PCM_WRITE_CHANNELS       _IOWR('P', 6, int)
 #define SOUND_PCM_WRITE_FILTER         _IOWR('P', 7, int)
 #define SNDCTL_DSP_POST                        _IO  ('P', 8)
 #define SOUND_PCM_WRITE_CHANNELS       _IOWR('P', 6, int)
 #define SOUND_PCM_WRITE_FILTER         _IOWR('P', 7, int)
 #define SNDCTL_DSP_POST                        _IO  ('P', 8)
+#define SNDCTL_DSP_SUBDIVIDE           _IOWR('P', 9, int)
 
 #define SOUND_PCM_READ_RATE            _IOR ('P', 2, int)
 #define SOUND_PCM_READ_CHANNELS                _IOR ('P', 6, int)
 
 #define SOUND_PCM_READ_RATE            _IOR ('P', 2, int)
 #define SOUND_PCM_READ_CHANNELS                _IOR ('P', 6, int)
@@ -430,6 +435,7 @@ struct midi_info {
 #define SOUND_PCM_POST                 SNDCTL_DSP_POST
 #define SOUND_PCM_RESET                        SNDCTL_DSP_RESET
 #define SOUND_PCM_SYNC                 SNDCTL_DSP_SYNC
 #define SOUND_PCM_POST                 SNDCTL_DSP_POST
 #define SOUND_PCM_RESET                        SNDCTL_DSP_RESET
 #define SOUND_PCM_SYNC                 SNDCTL_DSP_SYNC
+#define SOUND_PCM_SUBDIVIDE            SNDCTL_DSP_SUBDIVIDE
 
 /*********************************************
  * IOCTL commands for /dev/mixer
 
 /*********************************************
  * IOCTL commands for /dev/mixer
index 9b6e78f..40e2443 100644 (file)
  *                     and not portable.
  */
 
  *                     and not portable.
  */
 
-#ifdef linux
-#include <linux/soundcard.h>
-#else
-#include <machine/soundcard.h>
-#endif
-
 /*
  *     Private events for Gravis Ultrasound (GUS)
  *
 /*
  *     Private events for Gravis Ultrasound (GUS)
  *
@@ -90,6 +84,7 @@
 #define _GUS_VOICEFADE         0x0d
 #define _GUS_VOLUME_SCALE      0x0e
 #define _GUS_VOICEVOL2         0x0f
 #define _GUS_VOICEFADE         0x0d
 #define _GUS_VOLUME_SCALE      0x0e
 #define _GUS_VOICEVOL2         0x0f
+#define _GUS_VOICE_POS         0x10
 
 /*
  *     GUS API macros
 
 /*
  *     GUS API macros
 #define GUS_RAMPON(chn, voice, p1)             _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
 #define GUS_RAMPOFF(chn, voice)                        _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
 #define GUS_VOLUME_SCALE(chn, voice, p1, p2)   _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
 #define GUS_RAMPON(chn, voice, p1)             _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
 #define GUS_RAMPOFF(chn, voice)                        _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
 #define GUS_VOLUME_SCALE(chn, voice, p1, p2)   _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
+#define GUS_VOICE_POS(chn, voice, p)           _GUS_CMD(chn, voice, _GUS_VOICE_POS, \
+                                                       (p) & 0xffff, ((p) >> 16) & 0xffff)
 
 #endif
 
 #endif