/*
 *  Copyright (C) 2008 Nuke (wiinuke@gmail.com)
 *
 *  this file is part of GeckoOS for USB Gecko
 *  http://www.usbgecko.com
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __CMDSLOWLEVEL_H__
#define __CMDSLOWLEVEL_H__

// Globals
	#define exi_chan0sr			*(volatile unsigned int*) 0xCD006800 // Channel 0 Status Register
	#define exi_chan1sr			*(volatile unsigned int*) 0xCD006814 // Channel 1 Status Register
	#define exi_chan2sr			*(volatile unsigned int*) 0xCD006828 // Channel 2 Status Register
	#define exi_chan0cr			*(volatile unsigned int*) 0xCD00680c // Channel 0 Control Register
	#define exi_chan1cr			*(volatile unsigned int*) 0xCD006820 // Channel 1 Control Register
	#define exi_chan2cr			*(volatile unsigned int*) 0xCD006834 // Channel 2 Control Register
	#define exi_chan0data		*(volatile unsigned int*) 0xCD006810 // Channel 0 Immediate Data
	#define exi_chan1data		*(volatile unsigned int*) 0xCD006824 // Channel 1 Immediate Data
	#define exi_chan2data		*(volatile unsigned int*) 0xCD006838 // Channel 2 Immediate Data
	#define exi_chan0dmasta		*(volatile unsigned int*) 0xCD006804 // Channel 0 DMA Start address
	#define exi_chan1dmasta		*(volatile unsigned int*) 0xCD006818 // Channel 1 DMA Start address
	#define exi_chan2dmasta		*(volatile unsigned int*) 0xCD00682c // Channel 2 DMA Start address
	#define exi_chan0dmalen		*(volatile unsigned int*) 0xCD006808 // Channel 0 DMA Length
	#define exi_chan1dmalen		*(volatile unsigned int*) 0xCD00681c // Channel 1 DMA Length
	#define exi_chan2dmalen		*(volatile unsigned int*) 0xCD006830 // Channel 2 DMA Length


// Function prototypes
u32 commands_dumpwiibiosfonts();
int commands_dumpsram();

#endif // __CMDSLOWLEVEL_H__
