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