src/audio/mint/SDL_mintaudio_dma8.h
author Sam Lantinga
Sat, 19 Sep 2009 13:29:40 +0000
changeset 3280 00cace2d9080
parent 2859 99210400e8b9
permissions -rw-r--r--
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2009 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 {
    36     unsigned char int_ctrl;
    37     unsigned char control;
    38 
    39     unsigned char dummy1;
    40     unsigned char start_high;
    41     unsigned char dummy2;
    42     unsigned char start_mid;
    43     unsigned char dummy3;
    44     unsigned char start_low;
    45 
    46     unsigned char dummy4;
    47     unsigned char cur_high;
    48     unsigned char dummy5;
    49     unsigned char cur_mid;
    50     unsigned char dummy6;
    51     unsigned char cur_low;
    52 
    53     unsigned char dummy7;
    54     unsigned char end_high;
    55     unsigned char dummy8;
    56     unsigned char end_mid;
    57     unsigned char dummy9;
    58     unsigned char end_low;
    59 
    60     unsigned char dummy10[12];
    61 
    62     unsigned char track_ctrl;   /* CODEC only */
    63     unsigned char sound_ctrl;
    64     unsigned short sound_data;
    65     unsigned short sound_mask;
    66 
    67     unsigned char dummy11[10];
    68 
    69     unsigned short dev_ctrl;
    70     unsigned short dest_ctrl;
    71     unsigned short sync_div;
    72     unsigned char track_rec;
    73     unsigned char adderin_input;
    74     unsigned char channel_input;
    75     unsigned char channel_amplification;
    76     unsigned char channel_reduction;
    77 
    78     unsigned char dummy12[6];
    79 
    80     unsigned char data_direction;
    81     unsigned char dummy13;
    82     unsigned char dev_data;
    83 };
    84 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
    85 
    86 #endif /* _SDL_mintaudio_dma8_h */
    87 /* vi: set ts=4 sw=4 expandtab: */