19682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/* 29682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall SDL - Simple DirectMedia Layer 39682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Copyright (C) 1997-2012 Sam Lantinga 49682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 59682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall This library is free software; you can redistribute it and/or 69682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall modify it under the terms of the GNU Library General Public 79682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall License as published by the Free Software Foundation; either 89682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall version 2 of the License, or (at your option) any later version. 99682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall This library is distributed in the hope that it will be useful, 119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall but WITHOUT ANY WARRANTY; without even the implied warranty of 129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Library General Public License for more details. 149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall You should have received a copy of the GNU Library General Public 169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall License along with this library; if not, write to the Free 179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Sam Lantinga 209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall slouken@libsdl.org 219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/ 229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#include "SDL_config.h" 239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/* 259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall DMA 8bits and Falcon Codec audio definitions 269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Patrice Mandin, Didier M�quignon 289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/ 299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#ifndef _SDL_mintaudio_dma8_h 319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define _SDL_mintaudio_dma8_h 329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 339682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define DMAAUDIO_IO_BASE (0xffff8900) 349682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallstruct DMAAUDIO_IO_S { 359682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char int_ctrl; 369682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char control; 379682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 389682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy1; 399682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char start_high; 409682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy2; 419682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char start_mid; 429682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy3; 439682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char start_low; 449682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 459682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy4; 469682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char cur_high; 479682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy5; 489682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char cur_mid; 499682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy6; 509682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char cur_low; 519682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 529682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy7; 539682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char end_high; 549682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy8; 559682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char end_mid; 569682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy9; 579682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char end_low; 589682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 599682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy10[12]; 609682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 619682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char track_ctrl; /* CODEC only */ 629682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char sound_ctrl; 639682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned short sound_data; 649682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned short sound_mask; 659682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 669682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy11[10]; 679682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 689682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned short dev_ctrl; 699682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned short dest_ctrl; 709682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned short sync_div; 719682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char track_rec; 729682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char adderin_input; 739682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char channel_input; 749682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char channel_amplification; 759682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char channel_reduction; 769682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 779682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy12[6]; 789682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 799682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char data_direction; 809682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dummy13; 819682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned char dev_data; 829682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}; 839682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE)) 849682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 859682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#endif /* _SDL_mintaudio_dma8_h */ 86