Atari MiNT: remove useless files
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40646
This commit is contained in:
parent
e1695a4b13
commit
c15617d050
4 changed files with 0 additions and 339 deletions
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* STE/TT 8 bits audio dma registers
|
||||
*
|
||||
* Patrice Mandin
|
||||
*/
|
||||
|
||||
#ifndef _SDL_mintdma_h
|
||||
#define _SDL_mintdma_h
|
||||
|
||||
#define DMAAUDIO_IO_BASE (0xffff8900)
|
||||
struct DMAAUDIO_IO_S {
|
||||
unsigned char int_ctrl;
|
||||
unsigned char control;
|
||||
|
||||
unsigned char dummy1;
|
||||
unsigned char start_high;
|
||||
unsigned char dummy2;
|
||||
unsigned char start_mid;
|
||||
unsigned char dummy3;
|
||||
unsigned char start_low;
|
||||
|
||||
unsigned char dummy4;
|
||||
unsigned char cur_high;
|
||||
unsigned char dummy5;
|
||||
unsigned char cur_mid;
|
||||
unsigned char dummy6;
|
||||
unsigned char cur_low;
|
||||
|
||||
unsigned char dummy7;
|
||||
unsigned char end_high;
|
||||
unsigned char dummy8;
|
||||
unsigned char end_mid;
|
||||
unsigned char dummy9;
|
||||
unsigned char end_low;
|
||||
|
||||
unsigned char dummy10[12];
|
||||
|
||||
unsigned char track_select; /* CODEC only */
|
||||
unsigned char mode;
|
||||
};
|
||||
#define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
|
||||
|
||||
#endif /* _SDL_mintdma_h */
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* GSXB audio definitions
|
||||
*
|
||||
* Patrice Mandin
|
||||
*/
|
||||
|
||||
#ifndef _SDL_mintgsxb_h
|
||||
#define _SDL_mintgsxb_h
|
||||
|
||||
#include <mint/falcon.h> /* for trap_14_xxx macros */
|
||||
|
||||
/* GSXB Cookie */
|
||||
|
||||
#define C_GSXB 0x47535842L
|
||||
|
||||
/* Bit 5 in cookie _SND */
|
||||
|
||||
#define SND_GSXB (1<<5)
|
||||
|
||||
/* NSoundcmd modes */
|
||||
|
||||
#define SETRATE 7 /* Set sample rate */
|
||||
#define SET8BITFORMAT 8 /* 8 bits format */
|
||||
#define SET16BITFORMAT 9 /* 16 bits format */
|
||||
#define SET24BITFORMAT 10 /* 24 bits format */
|
||||
#define SET32BITFORMAT 11 /* 32 bits format */
|
||||
#define LTATTEN_MASTER 12 /* Attenuation */
|
||||
#define RTATTEN_MASTER 13
|
||||
#define LTATTEN_MICIN 14
|
||||
#define RTATTEN_MICIN 15
|
||||
#define LTATTEN_FMGEN 16
|
||||
#define RTATTEN_FMGEN 17
|
||||
#define LTATTEN_LINEIN 18
|
||||
#define RTATTEN_LINEIN 19
|
||||
#define LTATTEN_CDIN 20
|
||||
#define RTATTEN_CDIN 21
|
||||
#define LTATTEN_VIDIN 22
|
||||
#define RTATTEN_VIDIN 23
|
||||
#define LTATTEN_AUXIN 24
|
||||
#define RTATTEN_AUXIN 25
|
||||
|
||||
/* Setmode modes */
|
||||
|
||||
#define MONO16 3
|
||||
#define STEREO24 4
|
||||
#define STEREO32 5
|
||||
#define MONO24 6
|
||||
#define MONO32 7
|
||||
|
||||
/* Sndstatus modes */
|
||||
|
||||
#define SND_QUERYFORMATS 2
|
||||
#define SND_QUERYMIXERS 3
|
||||
#define SND_QUERYSOURCES 4
|
||||
#define SND_QUERYDUPLEX 5
|
||||
#define SND_QUERY8BIT 8
|
||||
#define SND_QUERY16BIT 9
|
||||
#define SND_QUERY24BIT 10
|
||||
#define SND_QUERY32BIT 11
|
||||
|
||||
#define SND_FORMAT8 (1<<0)
|
||||
#define SND_FORMAT16 (1<<1)
|
||||
#define SND_FORMAT24 (1<<2)
|
||||
#define SND_FORMAT32 (1<<3)
|
||||
|
||||
#define SND_FORMATSIGNED (1<<0)
|
||||
#define SND_FORMATUNSIGNED (1<<1)
|
||||
#define SND_FORMATBIGENDIAN (1<<2)
|
||||
#define SND_FORMATLITTLEENDIAN (1<<3)
|
||||
|
||||
/* Devconnect prescalers */
|
||||
|
||||
#define CLK_44K 1
|
||||
#define CLK_22K 3
|
||||
#define CLK_11K 7
|
||||
|
||||
/* Extra xbios functions */
|
||||
|
||||
#define NSoundcmd(mode,data,data2) \
|
||||
(long)trap_14_wwl((short)130,(short)(mode),(short)(data),(long)(data2))
|
||||
#define NSetinterrupt(src_inter,cause,inth_addr) \
|
||||
(long)trap_14_wwwl((short)135,(short)(src_inter),(short)(cause), \
|
||||
(long)(inth_addr))
|
||||
|
||||
#endif /* _SDL_mintgsxb_h */
|
|
@ -1,187 +0,0 @@
|
|||
/*
|
||||
* Audio interrupt routines
|
||||
*
|
||||
* Patrice Mandin
|
||||
*/
|
||||
|
||||
.text
|
||||
|
||||
.globl _SDL_MintAudio_Callback
|
||||
|
||||
.globl _SDL_MintAudio_IntDma
|
||||
.globl _SDL_MintAudio_IntXbios
|
||||
.globl _SDL_MintAudio_IntGsxb
|
||||
|
||||
.globl _SDL_MintAudio_mutex
|
||||
.globl _SDL_MintAudio_audiobuf
|
||||
.globl _SDL_MintAudio_numbuf
|
||||
.globl _SDL_MintAudio_audiosize
|
||||
|
||||
/*
|
||||
How it works:
|
||||
- Audio is playing buffer #0 (resp. #1)
|
||||
- We must calculate a sample in buffer #1 (resp. #0)
|
||||
so we first call the callback to do it
|
||||
- Then we swap the buffers
|
||||
*/
|
||||
|
||||
/*--- DMA 8 bits interrupt vector ---*/
|
||||
|
||||
.text
|
||||
_SDL_MintAudio_IntDma:
|
||||
|
||||
/* Reenable interrupts, so other interrupts can work */
|
||||
movew #0x2300,sr
|
||||
|
||||
/* Clear service bit, so other MFP interrupts can work */
|
||||
bclr #5,0xfffffa0f:w
|
||||
|
||||
/* Check if we are not already running */
|
||||
tstw _SDL_MintAudio_mutex
|
||||
bnes intdma_end
|
||||
notw _SDL_MintAudio_mutex
|
||||
|
||||
/* Swap buffers */
|
||||
moveml d0-d1/a0-a1,sp@-
|
||||
|
||||
movel _SDL_MintAudio_numbuf,d0
|
||||
movel _SDL_MintAudio_audiobuf,d1
|
||||
eorl #1,d0
|
||||
beqs intdma_buffer0
|
||||
movel _SDL_MintAudio_audiobuf+4,d1
|
||||
intdma_buffer0:
|
||||
movel d0,_SDL_MintAudio_numbuf
|
||||
|
||||
/* Callback */
|
||||
movel d1,sp@-
|
||||
jsr _SDL_MintAudio_Callback
|
||||
movel sp@+,d1
|
||||
|
||||
/* Modify DMA addresses */
|
||||
lea 0xffff8900:w,a0
|
||||
|
||||
moveb d1,a0@(0x07) /* Start address */
|
||||
rorl #8,d1
|
||||
moveb d1,a0@(0x05)
|
||||
rorl #8,d1
|
||||
moveb d1,a0@(0x03)
|
||||
swap d1
|
||||
|
||||
addl _SDL_MintAudio_audiosize,d1
|
||||
|
||||
moveb d1,a0@(0x13) /* End address */
|
||||
rorl #8,d1
|
||||
moveb d1,a0@(0x11)
|
||||
rorl #8,d1
|
||||
moveb d1,a0@(0x0f)
|
||||
|
||||
moveml sp@+,d0-d1/a0-a1
|
||||
|
||||
clrw _SDL_MintAudio_mutex
|
||||
intdma_end:
|
||||
rte
|
||||
|
||||
/*--- Xbios interrupt vector ---*/
|
||||
|
||||
.text
|
||||
_SDL_MintAudio_IntXbios:
|
||||
|
||||
/* Reenable interrupts, so other interrupts can work */
|
||||
movew #0x2300,sr
|
||||
|
||||
/* Clear service bit, so other MFP interrupts can work */
|
||||
bclr #5,0xfffffa0f:w
|
||||
|
||||
/* Check if we are not already running */
|
||||
tstw _SDL_MintAudio_mutex
|
||||
bnes intxbios_end
|
||||
notw _SDL_MintAudio_mutex
|
||||
|
||||
/* Swap buffers */
|
||||
moveml d0-d2/a0-a2,sp@-
|
||||
|
||||
movel _SDL_MintAudio_numbuf,d0
|
||||
movel _SDL_MintAudio_audiobuf,a0
|
||||
eorl #1,d0
|
||||
beqs intxbios_buffer0
|
||||
movel _SDL_MintAudio_audiobuf+4,a0
|
||||
intxbios_buffer0:
|
||||
movel d0,_SDL_MintAudio_numbuf
|
||||
|
||||
/* Callback */
|
||||
moveml a0,sp@-
|
||||
jsr _SDL_MintAudio_Callback
|
||||
moveml sp@+,a0
|
||||
|
||||
/* Setbuffer xbios function */
|
||||
movel _SDL_MintAudio_audiosize,d1
|
||||
lea a0@(0,d1:l),a1
|
||||
|
||||
movel a1,sp@-
|
||||
movel a0,sp@-
|
||||
clrw sp@-
|
||||
movew #131,sp@-
|
||||
trap #14
|
||||
lea sp@(12),sp
|
||||
|
||||
moveml sp@+,d0-d2/a0-a2
|
||||
|
||||
clrw _SDL_MintAudio_mutex
|
||||
intxbios_end:
|
||||
rte
|
||||
|
||||
/*--- GSXB interrupt vector ---*/
|
||||
|
||||
.text
|
||||
_SDL_MintAudio_IntGsxb:
|
||||
|
||||
/* Check if we are not already running */
|
||||
tstw _SDL_MintAudio_mutex
|
||||
bnes intgsxb_end
|
||||
notw _SDL_MintAudio_mutex
|
||||
|
||||
/* Swap buffers */
|
||||
moveml d0-d2/a0-a2,sp@-
|
||||
|
||||
movel _SDL_MintAudio_numbuf,d0
|
||||
movel _SDL_MintAudio_audiobuf,a0
|
||||
eorl #1,d0
|
||||
beqs intgsxb_buffer0
|
||||
movel _SDL_MintAudio_audiobuf+4,a0
|
||||
intgsxb_buffer0:
|
||||
movel d0,_SDL_MintAudio_numbuf
|
||||
|
||||
/* Callback */
|
||||
moveml a0,sp@-
|
||||
jsr _SDL_MintAudio_Callback
|
||||
moveml sp@+,a0
|
||||
|
||||
/* Setbuffer xbios function */
|
||||
movel _SDL_MintAudio_audiosize,d1
|
||||
lea a0@(0,d1:l),a1
|
||||
|
||||
movel a1,sp@-
|
||||
movel a0,sp@-
|
||||
clrw sp@-
|
||||
movew #131,sp@-
|
||||
trap #14
|
||||
lea sp@(12),sp
|
||||
|
||||
moveml sp@+,d0-d2/a0-a2
|
||||
|
||||
clrw _SDL_MintAudio_mutex
|
||||
intgsxb_end:
|
||||
rts
|
||||
|
||||
/*--- Common variables ---*/
|
||||
|
||||
.data
|
||||
.even
|
||||
.comm _SDL_MintAudio_mutex,4
|
||||
.even
|
||||
.comm _SDL_MintAudio_audiobuf,8
|
||||
.even
|
||||
.comm _SDL_MintAudio_numbuf,4
|
||||
.even
|
||||
.comm _SDL_MintAudio_audiosize,4
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
/*
|
||||
* Audio interrupt
|
||||
*
|
||||
* Patrice Mandin
|
||||
*/
|
||||
|
||||
#ifndef _SDL_MINTAUDIOINTERRUPT_S_H_
|
||||
#define _SDL_MINTAUDIOINTERRUPT_S_H_
|
||||
|
||||
#include "SDL_types.h"
|
||||
|
||||
/* Variables */
|
||||
|
||||
extern void *SDL_MintAudio_audiobuf[2]; /* Pointers to buffers */
|
||||
extern long SDL_MintAudio_audiosize; /* Length of audio buffer */
|
||||
extern long SDL_MintAudio_numbuf; /* Buffer to play */
|
||||
extern long SDL_MintAudio_mutex;
|
||||
|
||||
/* Functions */
|
||||
void SDL_MintAudio_IntDma(void);
|
||||
void SDL_MintAudio_IntXbios(void);
|
||||
void SDL_MintAudio_IntGsxb(void);
|
||||
|
||||
#endif /* _SDL_MINTAUDIOINTERRUPT_S_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue