00001 #ifndef __BLASTER_H 00002 #define __BLASTER_H 00003 00004 /**********************************************************/ 00005 /*/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/ 00006 /* 00007 Copyright: 1993 - Grupo de Voz (DAET) ETSII/IT-Bilbao 00008 00009 Nombre fuente................ BLASTER.H 00010 Nombre paquete............... - 00011 Lenguaje fuente.............. C (Borland C/C++ 3.1) 00012 Estado....................... Completado 00013 Dependencia Hard/OS.......... Sound Blaster 00014 Codigo condicional........... - 00015 00016 Codificacion................. Borja Etxebarria 00017 00018 Version dd/mm/aa Autor Proposito de la edicion 00019 ------- -------- -------- ----------------------- 00020 2.0.0 24/08/94 Borja Constantes dec/hex. Param {hex} en blaster_env(). 00021 1.0.0 19/02/94 Borja Codificacion inicial. 00022 00023 ======================== Contenido ======================== 00024 Fichero de cabecera de BLASTER.C, para lectura de 00025 configuracion de tarjetas SoundBlaster a partir 00026 de la variable de entorno BLASTER. 00027 =========================================================== 00028 */ 00029 /*/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/ 00030 /**********************************************************/ 00031 00032 #include "tdef.h" 00033 00034 /**********************************************************/ 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 /**********************************************************/ 00041 /* campos posibles para enviar en {field} a blaster_env() 00042 .................... 00043 These are the fields available in the BLASTER environment. 00044 You can send them in {field} to blaster_env() */ 00045 00046 #define BLASTER_BASEPORT 'A' /* puerto base de la SB */ 00047 #define BLASTER_IRQ 'I' /* canal irq utilizado */ 00048 #define BLASTER_DMA8 'D' /* canal DMA de 8 bits */ 00049 #define BLASTER_DMA16 'H' /* canal DMA de 16 bits */ 00050 #define BLASTER_MIDIBASE 'P' /* puerto base de MIDI */ 00051 #define BLASTER_CARDTYPE 'T' /* tipo de tarjeta */ 00052 00053 00054 /* valores por defecto para los campos anteriores (para la 00055 tarjeta Sound Blaster 16 ASP 00056 ................... 00057 Default values for the available fields in the BLASTER environment */ 00058 00059 #define BLASTER_DEFAULT_BASEPORT 0x220 00060 #define BLASTER_DEFAULT_IRQ 0x05 00061 #define BLASTER_DEFAULT_DMA8 0x01 00062 #define BLASTER_DEFAULT_DMA16 0x05 00063 #define BLASTER_DEFAULT_MIDIBASE 0x330 00064 #define BLASTER_DEFAULT_CARDTYPE 0x06 00065 00066 00067 /* base (decimal/hexa) en la que se encuentran los campos anteriores. 00068 Todos los campos son hexa, excepto uno: los muy bestias ponen IRQ en 00069 decimal, para fastidiar un poco, supongo. 00070 .................... 00071 Numerical base (decimal/hexadecimal) used for each of the field 00072 available in the BLASTER environment variable. */ 00073 00074 #define BLASTER_DECHEX_BASEPORT TRUE 00075 #define BLASTER_DECHEX_IRQ FALSE 00076 #define BLASTER_DECHEX_DMA8 TRUE 00077 #define BLASTER_DECHEX_DMA16 TRUE 00078 #define BLASTER_DECHEX_MIDIBASE TRUE 00079 #define BLASTER_DECHEX_CARDTYPE TRUE 00080 00081 /**********************************************************/ 00082 00083 INT blaster_env( CHAR field, INT default_value, BOOL hex ); 00084 00085 /**********************************************************/ 00086 00087 #ifdef __cplusplus 00088 } /* extern "C" */ 00089 #endif 00090 00091 /**********************************************************/ 00092 00093 #endif