1152219Simp/*-
2152219Simp * Copyright (c) 2005 Rink Springer
3152219Simp * All rights reserved.
4152219Simp *
5152219Simp * Redistribution and use in source and binary forms, with or without
6152219Simp * modification, are permitted provided that the following conditions
7152219Simp * are met:
8152219Simp * 1. Redistributions of source code must retain the above copyright
9152219Simp *    notice, this list of conditions and the following disclaimer.
10152219Simp * 2. Redistributions in binary form must reproduce the above copyright
11152219Simp *    notice, this list of conditions and the following disclaimer in the
12152219Simp *    documentation and/or other materials provided with the distribution.
13152219Simp * 3. The name of the author may not be used to endorse or promote products
14152219Simp *    derived from this software without specific prior written permission
15152219Simp *
16152219Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17152219Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18152219Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19152219Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20152219Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21152219Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22152219Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23152219Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24152219Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25152219Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26152219Simp *
27152219Simp * $FreeBSD$
28152219Simp */
29152219Simp#ifndef _MACHINE_XBOX_H_
30152219Simp#define _MACHINE_XBOX_H_
31152219Simp
32152219Simp#define XBOX_LED_GREEN		0x0f
33152219Simp#define XBOX_LED_RED		0xf0
34152219Simp#define XBOX_LED_FLASHRED	0xa0
35152219Simp#define XBOX_LED_FLASHGREEN	0x03
36152219Simp
37155510Srink#define XBOX_RAM_SIZE		(arch_i386_xbox_memsize * 1024 * 1024)
38156243Srink#define XBOX_FB_SIZE		(0x130000)
39155510Srink#define XBOX_FB_START		(0xf0000000 | (XBOX_RAM_SIZE - XBOX_FB_SIZE))
40155510Srink#define XBOX_FB_START_PTR	(0xFD600800)
41155510Srink
42152219Simpextern int arch_i386_is_xbox;
43152219Simpextern uint32_t arch_i386_xbox_memsize; /* Megabytes */
44152219Simp
45152219Simpvoid pic16l_setbyte(int addr, int reg, int data);
46152219Simpvoid pic16l_setled(int val);
47152219Simpvoid pic16l_reboot(void);
48152219Simpvoid pic16l_poweroff(void);
49152219Simp
50152219Simp#endif /* !_MACHINE_XBOX_H_ */
51