comparison src/audio/mint/SDL_mintaudio_dma8.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 99210400e8b9
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
29 29
30 #ifndef _SDL_mintaudio_dma8_h 30 #ifndef _SDL_mintaudio_dma8_h
31 #define _SDL_mintaudio_dma8_h 31 #define _SDL_mintaudio_dma8_h
32 32
33 #define DMAAUDIO_IO_BASE (0xffff8900) 33 #define DMAAUDIO_IO_BASE (0xffff8900)
34 struct DMAAUDIO_IO_S { 34 struct DMAAUDIO_IO_S
35 unsigned char int_ctrl; 35 {
36 unsigned char control; 36 unsigned char int_ctrl;
37 unsigned char control;
37 38
38 unsigned char dummy1; 39 unsigned char dummy1;
39 unsigned char start_high; 40 unsigned char start_high;
40 unsigned char dummy2; 41 unsigned char dummy2;
41 unsigned char start_mid; 42 unsigned char start_mid;
42 unsigned char dummy3; 43 unsigned char dummy3;
43 unsigned char start_low; 44 unsigned char start_low;
44 45
45 unsigned char dummy4; 46 unsigned char dummy4;
46 unsigned char cur_high; 47 unsigned char cur_high;
47 unsigned char dummy5; 48 unsigned char dummy5;
48 unsigned char cur_mid; 49 unsigned char cur_mid;
49 unsigned char dummy6; 50 unsigned char dummy6;
50 unsigned char cur_low; 51 unsigned char cur_low;
51 52
52 unsigned char dummy7; 53 unsigned char dummy7;
53 unsigned char end_high; 54 unsigned char end_high;
54 unsigned char dummy8; 55 unsigned char dummy8;
55 unsigned char end_mid; 56 unsigned char end_mid;
56 unsigned char dummy9; 57 unsigned char dummy9;
57 unsigned char end_low; 58 unsigned char end_low;
58 59
59 unsigned char dummy10[12]; 60 unsigned char dummy10[12];
60 61
61 unsigned char track_ctrl; /* CODEC only */ 62 unsigned char track_ctrl; /* CODEC only */
62 unsigned char sound_ctrl; 63 unsigned char sound_ctrl;
63 unsigned short sound_data; 64 unsigned short sound_data;
64 unsigned short sound_mask; 65 unsigned short sound_mask;
65 66
66 unsigned char dummy11[10]; 67 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 68
79 unsigned char data_direction; 69 unsigned short dev_ctrl;
80 unsigned char dummy13; 70 unsigned short dest_ctrl;
81 unsigned char dev_data; 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;
82 }; 83 };
83 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE)) 84 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
84 85
85 #endif /* _SDL_mintaudio_dma8_h */ 86 #endif /* _SDL_mintaudio_dma8_h */
87 /* vi: set ts=4 sw=4 expandtab: */