/*
 * Xbox PIC address definitions
 * Copyright (C) Thomas "ShALLaX" Pedley (gentoox@shallax.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
 *
 */

/* The PIC hardware address */
#define PIC_ADDRESS			0x10	/* Required to 'talk' to the pic */

/* LED registers */
#define LED_MODE				0x07	/* Enable/ disable custom sequences */
#define LED_REGISTER			0x08	/* Set the custom sequence */

/* Fan registers */
#define FAN_MODE				0x05	/* Enable/ disable the custom fan speeds (0/1) */
#define FAN_REGISTER			0x06 	/* Set custom fan speeds (0-50) */
#define FAN_READBACK			0x10 	/* Current fan speed (0-50) */

/* Eject commands */
#define DVD_EJECT_REG		0x0C 	/* Where to send the open/ close commands to */
#define DVD_TRAY_OPEN		0x00 	/* Open command */
#define DVD_TRAY_CLOSE		0x01 	/* Close command */
#define DVD_TRAY_STATE		0x03  /* Where the tray state is stored */
#define DVD_RESET_ON_EJECT	0x19	/* Needed to stop the xbox rebooting on eject */

/* Temperatures */
#define BOARD_TEMP			0x0A 	/* Board Temperature */
#define CPU_TEMP				0x09	/* CPU Temperature */

/* Video encoders (used by video.c) */
#define CONEXANT_ADDRESS	0x45
#define FOCUS_ADDRESS		0x6a
#define XCALIBUR_ADDRESS	0x70
