2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2009 Sam Lantinga
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.
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.
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
22 #include "SDL_config.h"
25 DMA 8bits and Falcon Codec audio definitions
27 Patrice Mandin, Didier Méquignon
30 #ifndef _SDL_mintaudio_dma8_h
31 #define _SDL_mintaudio_dma8_h
33 #define DMAAUDIO_IO_BASE (0xffff8900)
34 struct DMAAUDIO_IO_S {
35 unsigned char int_ctrl;
36 unsigned char control;
39 unsigned char start_high;
41 unsigned char start_mid;
43 unsigned char start_low;
46 unsigned char cur_high;
48 unsigned char cur_mid;
50 unsigned char cur_low;
53 unsigned char end_high;
55 unsigned char end_mid;
57 unsigned char end_low;
59 unsigned char dummy10[12];
61 unsigned char track_ctrl; /* CODEC only */
62 unsigned char sound_ctrl;
63 unsigned short sound_data;
64 unsigned short sound_mask;
66 unsigned char dummy11[10];
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;
77 unsigned char dummy12[6];
79 unsigned char data_direction;
80 unsigned char dummy13;
81 unsigned char dev_data;
83 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
85 #endif /* _SDL_mintaudio_dma8_h */