• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2     SDL - Simple DirectMedia Layer
3     Copyright (C) 1997-2004 Sam Lantinga
4 
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Library General Public
7     License as published by the Free Software Foundation; either
8     version 2 of the License, or (at your option) any later version.
9 
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13     Library General Public License for more details.
14 
15     You should have received a copy of the GNU Library General Public
16     License along with this library; if not, write to the Free
17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 
19     Sam Lantinga
20     slouken@libsdl.org
21 */
22 #include "SDL_config.h"
23 
24 /*
25 	DMA 8bits and Falcon Codec audio definitions
26 
27 	Patrice Mandin, Didier M�quignon
28 */
29 
30 #ifndef _SDL_mintaudio_dma8_h
31 #define _SDL_mintaudio_dma8_h
32 
33 #define DMAAUDIO_IO_BASE (0xffff8900)
34 struct DMAAUDIO_IO_S {
35 	unsigned char int_ctrl;
36 	unsigned char control;
37 
38 	unsigned char dummy1;
39 	unsigned char start_high;
40 	unsigned char dummy2;
41 	unsigned char start_mid;
42 	unsigned char dummy3;
43 	unsigned char start_low;
44 
45 	unsigned char dummy4;
46 	unsigned char cur_high;
47 	unsigned char dummy5;
48 	unsigned char cur_mid;
49 	unsigned char dummy6;
50 	unsigned char cur_low;
51 
52 	unsigned char dummy7;
53 	unsigned char end_high;
54 	unsigned char dummy8;
55 	unsigned char end_mid;
56 	unsigned char dummy9;
57 	unsigned char end_low;
58 
59 	unsigned char dummy10[12];
60 
61 	unsigned char track_ctrl; /* CODEC only */
62 	unsigned char sound_ctrl;
63 	unsigned short sound_data;
64 	unsigned short sound_mask;
65 
66 	unsigned char dummy11[10];
67 
68 	unsigned short dev_ctrl;
69 	unsigned short dest_ctrl;
70 	unsigned short sync_div;
71 	unsigned char track_rec;
72 	unsigned char adderin_input;
73 	unsigned char channel_input;
74 	unsigned char channel_amplification;
75 	unsigned char channel_reduction;
76 
77 	unsigned char dummy12[6];
78 
79 	unsigned char data_direction;
80 	unsigned char dummy13;
81 	unsigned char dev_data;
82 };
83 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
84 
85 #endif /* _SDL_mintaudio_dma8_h */
86