src/audio/mint/SDL_mintaudiodma.h
changeset 398 d219b0e02f5f
equal deleted inserted replaced
397:283d348cb624 398:d219b0e02f5f
       
     1 /*
       
     2  * STE/TT 8 bits audio dma registers
       
     3  * 
       
     4  * Patrice Mandin
       
     5  */
       
     6 
       
     7 #ifndef _SDL_mintdma_h
       
     8 #define _SDL_mintdma_h
       
     9 
       
    10 #define DMAAUDIO_IO_BASE (0xffff8900)
       
    11 struct DMAAUDIO_IO_S {
       
    12 	unsigned char int_ctrl;
       
    13 	unsigned char control;
       
    14 
       
    15 	unsigned char dummy1;
       
    16 	unsigned char start_high;
       
    17 	unsigned char dummy2;
       
    18 	unsigned char start_mid;
       
    19 	unsigned char dummy3;
       
    20 	unsigned char start_low;
       
    21 
       
    22 	unsigned char dummy4;
       
    23 	unsigned char cur_high;
       
    24 	unsigned char dummy5;
       
    25 	unsigned char cur_mid;
       
    26 	unsigned char dummy6;
       
    27 	unsigned char cur_low;
       
    28 
       
    29 	unsigned char dummy7;
       
    30 	unsigned char end_high;
       
    31 	unsigned char dummy8;
       
    32 	unsigned char end_mid;
       
    33 	unsigned char dummy9;
       
    34 	unsigned char end_low;
       
    35 
       
    36 	unsigned char dummy10[12];
       
    37 
       
    38 	unsigned char track_select; /* CODEC only */
       
    39 	unsigned char mode;
       
    40 };
       
    41 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
       
    42 
       
    43 #endif /* _SDL_mintdma_h */