Atari MiNT: remove useless files
authorPatrice Mandin <patmandin@gmail.com>
Mon, 07 Jul 2003 19:19:39 +0000
changeset 6455bcfbd1abac6
parent 644 594422ab8f9f
child 646 0f2029a70548
Atari MiNT: remove useless files
src/audio/mint/SDL_mintaudiodma.h
src/audio/mint/SDL_mintaudiogsxb.h
src/audio/mint/SDL_mintaudiointerrupt.S
src/audio/mint/SDL_mintaudiointerrupt_s.h
     1.1 --- a/src/audio/mint/SDL_mintaudiodma.h	Mon Jul 07 19:16:03 2003 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,43 +0,0 @@
     1.4 -/*
     1.5 - * STE/TT 8 bits audio dma registers
     1.6 - * 
     1.7 - * Patrice Mandin
     1.8 - */
     1.9 -
    1.10 -#ifndef _SDL_mintdma_h
    1.11 -#define _SDL_mintdma_h
    1.12 -
    1.13 -#define DMAAUDIO_IO_BASE (0xffff8900)
    1.14 -struct DMAAUDIO_IO_S {
    1.15 -	unsigned char int_ctrl;
    1.16 -	unsigned char control;
    1.17 -
    1.18 -	unsigned char dummy1;
    1.19 -	unsigned char start_high;
    1.20 -	unsigned char dummy2;
    1.21 -	unsigned char start_mid;
    1.22 -	unsigned char dummy3;
    1.23 -	unsigned char start_low;
    1.24 -
    1.25 -	unsigned char dummy4;
    1.26 -	unsigned char cur_high;
    1.27 -	unsigned char dummy5;
    1.28 -	unsigned char cur_mid;
    1.29 -	unsigned char dummy6;
    1.30 -	unsigned char cur_low;
    1.31 -
    1.32 -	unsigned char dummy7;
    1.33 -	unsigned char end_high;
    1.34 -	unsigned char dummy8;
    1.35 -	unsigned char end_mid;
    1.36 -	unsigned char dummy9;
    1.37 -	unsigned char end_low;
    1.38 -
    1.39 -	unsigned char dummy10[12];
    1.40 -
    1.41 -	unsigned char track_select; /* CODEC only */
    1.42 -	unsigned char mode;
    1.43 -};
    1.44 -#define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
    1.45 -
    1.46 -#endif /* _SDL_mintdma_h */
     2.1 --- a/src/audio/mint/SDL_mintaudiogsxb.h	Mon Jul 07 19:16:03 2003 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,85 +0,0 @@
     2.4 -/*
     2.5 - * GSXB audio definitions
     2.6 - * 
     2.7 - * Patrice Mandin
     2.8 - */
     2.9 -
    2.10 -#ifndef _SDL_mintgsxb_h
    2.11 -#define _SDL_mintgsxb_h
    2.12 -
    2.13 -#include <mint/falcon.h>	/* for trap_14_xxx macros */
    2.14 -
    2.15 -/* GSXB Cookie */
    2.16 -
    2.17 -#define C_GSXB		0x47535842L
    2.18 -
    2.19 -/* Bit 5 in cookie _SND */
    2.20 -
    2.21 -#define SND_GSXB	(1<<5)
    2.22 -
    2.23 -/* NSoundcmd modes */
    2.24 -
    2.25 -#define SETRATE			7	/* Set sample rate */
    2.26 -#define SET8BITFORMAT	8	/* 8 bits format */
    2.27 -#define SET16BITFORMAT	9	/* 16 bits format */
    2.28 -#define SET24BITFORMAT	10	/* 24 bits format */
    2.29 -#define SET32BITFORMAT	11	/* 32 bits format */
    2.30 -#define LTATTEN_MASTER	12	/* Attenuation */
    2.31 -#define RTATTEN_MASTER	13
    2.32 -#define LTATTEN_MICIN	14
    2.33 -#define RTATTEN_MICIN	15
    2.34 -#define LTATTEN_FMGEN	16
    2.35 -#define RTATTEN_FMGEN	17
    2.36 -#define LTATTEN_LINEIN	18
    2.37 -#define RTATTEN_LINEIN	19
    2.38 -#define LTATTEN_CDIN	20
    2.39 -#define RTATTEN_CDIN	21
    2.40 -#define LTATTEN_VIDIN	22
    2.41 -#define RTATTEN_VIDIN	23
    2.42 -#define LTATTEN_AUXIN	24
    2.43 -#define RTATTEN_AUXIN	25
    2.44 -
    2.45 -/* Setmode modes */
    2.46 -
    2.47 -#define MONO16		3
    2.48 -#define STEREO24	4
    2.49 -#define STEREO32	5
    2.50 -#define MONO24		6
    2.51 -#define MONO32		7
    2.52 -
    2.53 -/* Sndstatus modes */
    2.54 -
    2.55 -#define SND_QUERYFORMATS	2
    2.56 -#define SND_QUERYMIXERS		3
    2.57 -#define SND_QUERYSOURCES	4
    2.58 -#define SND_QUERYDUPLEX		5
    2.59 -#define SND_QUERY8BIT		8
    2.60 -#define SND_QUERY16BIT		9
    2.61 -#define SND_QUERY24BIT		10
    2.62 -#define SND_QUERY32BIT		11
    2.63 -
    2.64 -#define SND_FORMAT8		(1<<0)
    2.65 -#define SND_FORMAT16	(1<<1)
    2.66 -#define SND_FORMAT24	(1<<2)
    2.67 -#define SND_FORMAT32	(1<<3)
    2.68 -
    2.69 -#define SND_FORMATSIGNED		(1<<0)
    2.70 -#define SND_FORMATUNSIGNED		(1<<1)
    2.71 -#define SND_FORMATBIGENDIAN		(1<<2)
    2.72 -#define SND_FORMATLITTLEENDIAN	(1<<3)
    2.73 -
    2.74 -/* Devconnect prescalers */
    2.75 -
    2.76 -#define CLK_44K		1
    2.77 -#define CLK_22K		3
    2.78 -#define CLK_11K		7
    2.79 -
    2.80 -/* Extra xbios functions */
    2.81 -
    2.82 -#define NSoundcmd(mode,data,data2)	\
    2.83 -	(long)trap_14_wwl((short)130,(short)(mode),(short)(data),(long)(data2))
    2.84 -#define NSetinterrupt(src_inter,cause,inth_addr)	\
    2.85 -	(long)trap_14_wwwl((short)135,(short)(src_inter),(short)(cause),	\
    2.86 -		(long)(inth_addr))
    2.87 -
    2.88 -#endif /* _SDL_mintgsxb_h */
     3.1 --- a/src/audio/mint/SDL_mintaudiointerrupt.S	Mon Jul 07 19:16:03 2003 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,187 +0,0 @@
     3.4 -/*
     3.5 - *	Audio interrupt routines
     3.6 - *
     3.7 - *	Patrice Mandin
     3.8 - */
     3.9 -
    3.10 -	.text
    3.11 -
    3.12 -	.globl	_SDL_MintAudio_Callback
    3.13 -
    3.14 -	.globl	_SDL_MintAudio_IntDma
    3.15 -	.globl	_SDL_MintAudio_IntXbios
    3.16 -	.globl	_SDL_MintAudio_IntGsxb
    3.17 -
    3.18 -	.globl	_SDL_MintAudio_mutex
    3.19 -	.globl	_SDL_MintAudio_audiobuf
    3.20 -	.globl	_SDL_MintAudio_numbuf
    3.21 -	.globl	_SDL_MintAudio_audiosize
    3.22 -
    3.23 -/*
    3.24 -	How it works:
    3.25 -	- Audio is playing buffer #0 (resp. #1)
    3.26 -	- We must calculate a sample in buffer #1 (resp. #0)
    3.27 -	  so we first call the callback to do it
    3.28 -	- Then we swap the buffers
    3.29 -*/
    3.30 -
    3.31 -/*--- DMA 8 bits interrupt vector ---*/
    3.32 -
    3.33 -	.text
    3.34 -_SDL_MintAudio_IntDma:
    3.35 -
    3.36 -	/* Reenable interrupts, so other interrupts can work */
    3.37 -	movew	#0x2300,sr
    3.38 -
    3.39 -	/* Clear service bit, so other MFP interrupts can work */
    3.40 -	bclr	#5,0xfffffa0f:w
    3.41 -
    3.42 -	/* Check if we are not already running */
    3.43 -	tstw	_SDL_MintAudio_mutex
    3.44 -	bnes	intdma_end
    3.45 -	notw	_SDL_MintAudio_mutex
    3.46 -	
    3.47 -	/* Swap buffers */
    3.48 -	moveml	d0-d1/a0-a1,sp@-
    3.49 -
    3.50 -	movel	_SDL_MintAudio_numbuf,d0
    3.51 -	movel	_SDL_MintAudio_audiobuf,d1
    3.52 -	eorl	#1,d0
    3.53 -	beqs	intdma_buffer0
    3.54 -	movel	_SDL_MintAudio_audiobuf+4,d1
    3.55 -intdma_buffer0:
    3.56 -	movel	d0,_SDL_MintAudio_numbuf
    3.57 -
    3.58 -	/* Callback */
    3.59 -	movel	d1,sp@-
    3.60 -	jsr	_SDL_MintAudio_Callback
    3.61 -	movel	sp@+,d1
    3.62 -
    3.63 -	/* Modify DMA addresses */
    3.64 -	lea	0xffff8900:w,a0
    3.65 -
    3.66 -	moveb	d1,a0@(0x07)	/* Start address */
    3.67 -	rorl	#8,d1
    3.68 -	moveb	d1,a0@(0x05)
    3.69 -	rorl	#8,d1
    3.70 -	moveb	d1,a0@(0x03)
    3.71 -	swap	d1
    3.72 -
    3.73 -	addl	_SDL_MintAudio_audiosize,d1
    3.74 -
    3.75 -	moveb	d1,a0@(0x13)	/* End address */
    3.76 -	rorl	#8,d1
    3.77 -	moveb	d1,a0@(0x11)
    3.78 -	rorl	#8,d1
    3.79 -	moveb	d1,a0@(0x0f)
    3.80 -
    3.81 -	moveml	sp@+,d0-d1/a0-a1
    3.82 -
    3.83 -	clrw	_SDL_MintAudio_mutex
    3.84 -intdma_end:
    3.85 -	rte
    3.86 -
    3.87 -/*--- Xbios interrupt vector ---*/
    3.88 -
    3.89 -	.text
    3.90 -_SDL_MintAudio_IntXbios:
    3.91 -
    3.92 -	/* Reenable interrupts, so other interrupts can work */
    3.93 -	movew	#0x2300,sr
    3.94 -
    3.95 -	/* Clear service bit, so other MFP interrupts can work */
    3.96 -	bclr	#5,0xfffffa0f:w
    3.97 -
    3.98 -	/* Check if we are not already running */
    3.99 -	tstw	_SDL_MintAudio_mutex
   3.100 -	bnes	intxbios_end
   3.101 -	notw	_SDL_MintAudio_mutex
   3.102 -	
   3.103 -	/* Swap buffers */
   3.104 -	moveml	d0-d2/a0-a2,sp@-
   3.105 -
   3.106 -	movel	_SDL_MintAudio_numbuf,d0
   3.107 -	movel	_SDL_MintAudio_audiobuf,a0
   3.108 -	eorl	#1,d0
   3.109 -	beqs	intxbios_buffer0
   3.110 -	movel	_SDL_MintAudio_audiobuf+4,a0
   3.111 -intxbios_buffer0:
   3.112 -	movel	d0,_SDL_MintAudio_numbuf
   3.113 -
   3.114 -	/* Callback */
   3.115 -	moveml	a0,sp@-
   3.116 -	jsr	_SDL_MintAudio_Callback
   3.117 -	moveml	sp@+,a0
   3.118 -
   3.119 -	/* Setbuffer xbios function */
   3.120 -	movel	_SDL_MintAudio_audiosize,d1
   3.121 -	lea	a0@(0,d1:l),a1
   3.122 -
   3.123 -	movel	a1,sp@-
   3.124 -	movel	a0,sp@-
   3.125 -	clrw	sp@-
   3.126 -	movew	#131,sp@-
   3.127 -	trap	#14
   3.128 -	lea	sp@(12),sp
   3.129 -
   3.130 -	moveml	sp@+,d0-d2/a0-a2
   3.131 -
   3.132 -	clrw	_SDL_MintAudio_mutex
   3.133 -intxbios_end:
   3.134 -	rte
   3.135 -
   3.136 -/*--- GSXB interrupt vector ---*/
   3.137 -
   3.138 -	.text
   3.139 -_SDL_MintAudio_IntGsxb:
   3.140 -
   3.141 -	/* Check if we are not already running */
   3.142 -	tstw	_SDL_MintAudio_mutex
   3.143 -	bnes	intgsxb_end
   3.144 -	notw	_SDL_MintAudio_mutex
   3.145 -
   3.146 -	/* Swap buffers */
   3.147 -	moveml	d0-d2/a0-a2,sp@-
   3.148 -
   3.149 -	movel	_SDL_MintAudio_numbuf,d0
   3.150 -	movel	_SDL_MintAudio_audiobuf,a0
   3.151 -	eorl	#1,d0
   3.152 -	beqs	intgsxb_buffer0
   3.153 -	movel	_SDL_MintAudio_audiobuf+4,a0
   3.154 -intgsxb_buffer0:
   3.155 -	movel	d0,_SDL_MintAudio_numbuf
   3.156 -
   3.157 -	/* Callback */
   3.158 -	moveml	a0,sp@-
   3.159 -	jsr	_SDL_MintAudio_Callback
   3.160 -	moveml	sp@+,a0
   3.161 -
   3.162 -	/* Setbuffer xbios function */
   3.163 -	movel	_SDL_MintAudio_audiosize,d1
   3.164 -	lea	a0@(0,d1:l),a1
   3.165 -
   3.166 -	movel	a1,sp@-
   3.167 -	movel	a0,sp@-
   3.168 -	clrw	sp@-
   3.169 -	movew	#131,sp@-
   3.170 -	trap	#14
   3.171 -	lea	sp@(12),sp
   3.172 -
   3.173 -	moveml	sp@+,d0-d2/a0-a2
   3.174 -
   3.175 -	clrw	_SDL_MintAudio_mutex
   3.176 -intgsxb_end:
   3.177 -	rts
   3.178 -
   3.179 -/*--- Common variables ---*/
   3.180 -
   3.181 -	.data
   3.182 -	.even
   3.183 -	.comm	_SDL_MintAudio_mutex,4
   3.184 -	.even
   3.185 -	.comm	_SDL_MintAudio_audiobuf,8
   3.186 -	.even
   3.187 -	.comm	_SDL_MintAudio_numbuf,4
   3.188 -	.even
   3.189 -	.comm	_SDL_MintAudio_audiosize,4
   3.190 -
     4.1 --- a/src/audio/mint/SDL_mintaudiointerrupt_s.h	Mon Jul 07 19:16:03 2003 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,24 +0,0 @@
     4.4 -/*
     4.5 - *	Audio interrupt
     4.6 - *
     4.7 - *	Patrice Mandin
     4.8 - */
     4.9 -
    4.10 -#ifndef _SDL_MINTAUDIOINTERRUPT_S_H_
    4.11 -#define _SDL_MINTAUDIOINTERRUPT_S_H_
    4.12 -
    4.13 -#include "SDL_types.h"
    4.14 -
    4.15 -/* Variables */
    4.16 -
    4.17 -extern void *SDL_MintAudio_audiobuf[2];	/* Pointers to buffers */
    4.18 -extern long SDL_MintAudio_audiosize;	/* Length of audio buffer */
    4.19 -extern long SDL_MintAudio_numbuf;		/* Buffer to play */
    4.20 -extern long SDL_MintAudio_mutex;
    4.21 -
    4.22 -/* Functions */
    4.23 -void SDL_MintAudio_IntDma(void);
    4.24 -void SDL_MintAudio_IntXbios(void);
    4.25 -void SDL_MintAudio_IntGsxb(void);
    4.26 -
    4.27 -#endif /* _SDL_MINTAUDIOINTERRUPT_S_H_ */