No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / hpc / stand / hpcboot / machine_config.cpp
blob802c5059473f2dc5ecbf9aed02dd8af2fcf889a4
1 /* -*-C++-*- $NetBSD: machine_config.cpp,v 1.13 2008/03/08 02:26:03 rafal Exp $ */
3 /*-
4 * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by UCHIYAMA Yasushi.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
33 // Platform dependent configuration.
36 #include <hpcmenu.h>
37 #include <machine/bootinfo.h>
38 #include <machine/platid.h>
39 #include <machine/platid_mask.h>
41 #include <framebuffer.h>
44 // Frame buffer information.
46 struct FrameBufferInfo::framebuffer_info
47 FrameBufferInfo::_table[] =
49 // CPU MACHINE BPP WIDTH HEIGHT LINEBYTES FRAME BUFFER ADDR
50 #ifdef MIPS
51 // VR41 (kseg1 address)
52 { PLATID_CPU_MIPS_VR_4102, PLATID_MACH_EVEREX_FREESTYLE_AXX , 2, 240, 320, 80, 0xaa000000 },
53 { PLATID_CPU_MIPS_VR_4102, PLATID_MACH_NEC_MCCS_11 , 2, 480, 240, 256, 0xaa000000 },
54 { PLATID_CPU_MIPS_VR_4102, PLATID_MACH_NEC_MCCS_12 , 2, 480, 240, 256, 0xaa000000 },
55 { PLATID_CPU_MIPS_VR_4102, PLATID_MACH_NEC_MCCS_13 , 2, 480, 240, 256, 0xaa000000 },
56 { PLATID_CPU_MIPS_VR_4102, PLATID_MACH_NEC_MCR_MPRO700 , 2, 640, 240, 256, 0xaa000000 },
57 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_CASIO_CASSIOPEIAE_E55 , 2, 240, 320, 256, 0xaa000000 },
58 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_COMPAQ_AERO_1530 , 2, 240, 320, 0, 0xa0000000 },
59 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_COMPAQ_PRESARIO_213 , 8, 240, 320, 0, 0xa0000000 },
60 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_NEC_MCR_300 , 2, 640, 240, 256, 0xaa000000 },
61 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_NEC_MCR_500 , 8, 640, 240, 1024, 0xb3000000 },
62 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_NEC_MCR_500A , 8, 640, 240, 1024, 0xb3000000 },
63 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_NEC_MCR_FORDOCOMO , 2, 640, 240, 256, 0xaa000000 },
64 { PLATID_CPU_MIPS_VR_4111, PLATID_MACH_SHARP_TRIPAD_PV6000 , 8, 640, 480, 640, 0xaa000000 },
65 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_CASIO_CASSIOPEIAE_E100 , 16, 240, 320, 512, 0xaa200000 },
66 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_CASIO_CASSIOPEIAE_E500 , 16, 240, 320, 512, 0xaa200000 },
67 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET, 16, 320, 240, 1024, 0xaa200000 },
68 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_FUJITSU_INTERTOP_IT300 , 8, 640, 480, 640, 0xaa000000 },
69 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_FUJITSU_INTERTOP_IT300 , 16, 640, 480, 1280, 0xaa000000 },
70 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_FUJITSU_INTERTOP_IT310 , 8, 640, 480, 640, 0xaa000000 },
71 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_IBM_WORKPAD_26011AU , 16, 640, 480, 1280, 0xaa000000 },
72 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_320 , 2, 640, 240, 160, 0xaa000000 },
73 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_330 , 2, 640, 240, 160, 0xaa000000 },
74 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_430 , 16, 640, 240, 1280, 0xaa180100 },
75 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_510 , 8, 640, 240, 1024, 0xaa000000 },
76 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_510 , 16, 640, 240, 1600, 0xaa000000 },
77 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_520 , 16, 640, 240, 1600, 0xaa000000 },
78 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_520A , 16, 640, 240, 1600, 0xaa000000 },
79 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_530 , 8, 640, 240, 640, 0xaa1d4c00 },
80 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_530 , 16, 640, 240, 1280, 0xaa180100 },
81 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_530A , 16, 640, 240, 1280, 0xaa180100 },
82 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_700 , 16, 800, 600, 1600, 0xaa000000 },
83 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_700A , 16, 800, 600, 1600, 0xaa000000 },
84 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_730 , 16, 800, 600, 1600, 0xaa0ea600 },
85 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_730A , 16, 800, 600, 1600, 0xaa0ea600 },
86 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_NEC_MCR_SIGMARION , 16, 640, 240, 1280, 0xaa000000 },
87 { PLATID_CPU_MIPS_VR_4131, PLATID_MACH_NEC_MCR_SIGMARION2 , 16, 640, 240, 1280, 0xb0800000 },
88 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_SHARP_TRIPAD_PV6000 , 16, 640, 480, 1280, 0xaa200000 },
89 { PLATID_CPU_MIPS_VR_4121, PLATID_MACH_FUJITSU_PENCENTRA_130 , 8, 640, 480, 640, 0xb0201e00 },
90 { PLATID_CPU_MIPS_VR_4122, PLATID_MACH_VICTOR_INTERLINK_MPC303 , 16, 800, 600, 0, 0x00000000 },
91 // TX39 (can't determine frame buffer address)
92 { PLATID_CPU_MIPS_TX_3912, PLATID_MACH_COMPAQ_C_2010 , 8, 640, 240, 0, 0x00000000 },
93 { PLATID_CPU_MIPS_TX_3912, PLATID_MACH_COMPAQ_C_2015 , 8, 640, 240, 0, 0x00000000 },
94 { PLATID_CPU_MIPS_TX_3912, PLATID_MACH_COMPAQ_C_810 , 2, 640, 240, 0, 0x00000000 },
95 { PLATID_CPU_MIPS_TX_3912, PLATID_MACH_PHILIPS_NINO_312 , 2, 240, 320, 0, 0x00000000 },
96 { PLATID_CPU_MIPS_TX_3912, PLATID_MACH_SHARP_MOBILON_HC1200 , 4, 640, 240, 0, 0x00000000 },
97 { PLATID_CPU_MIPS_TX_3912, PLATID_MACH_SHARP_MOBILON_HC4100 , 4, 640, 240, 0, 0x00000000 },
98 { PLATID_CPU_MIPS_TX_3922, PLATID_MACH_SHARP_TELIOS_HCAJ , 16, 800, 600, 0, 0x00000000 },
99 { PLATID_CPU_MIPS_TX_3922, PLATID_MACH_SHARP_TELIOS_HCVJ , 16, 800, 480, 0, 0x00000000 },
100 { PLATID_CPU_MIPS_TX_3922, PLATID_MACH_VICTOR_INTERLINK_MPC101 , 16, 640, 480, 0, 0x00000000 },
101 #endif // MIPS
102 #ifdef SHx
103 // SH7709 (P2 address)
104 { PLATID_CPU_SH_3_7709 , PLATID_MACH_HP_LX_620 , 8, 640, 240, 640, 0xb2000000 },
105 { PLATID_CPU_SH_3_7709 , PLATID_MACH_HP_LX_620JP , 8, 640, 240, 640, 0xb2000000 },
106 { PLATID_CPU_SH_3_7709 , PLATID_MACH_HITACHI_PERSONA_HPW50PAD , 8, 640, 240, 640, 0xb2000000 },
107 { PLATID_CPU_SH_3_7709 , PLATID_MACH_HITACHI_PERSONA_HPW230JC , 8, 640, 240, 640, 0xb2000000 },
108 { PLATID_CPU_SH_3_7709 , PLATID_MACH_HITACHI_PERSONA_HPW200EC , 8, 640, 240, 640, 0xb2000000 },
109 // SH7709A (P2 address)
110 { PLATID_CPU_SH_3_7709A , PLATID_MACH_HP_JORNADA , 16, 640, 240, 1280, 0xb2000000 },
111 // SH7750 (P2 address)
112 { PLATID_CPU_SH_4_7750 , PLATID_MACH_HITACHI_PERSONA_HPW650PA , 16, 640, 480, 1280, 0xb204b000 },
113 #endif // SHx
114 #ifdef ARM
115 // SA-1100 (can't determine frame buffer address)
116 { PLATID_CPU_ARM_STRONGARM_SA1100 , PLATID_MACH_HP_JORNADA_820 , 8, 640, 480, 0, 0x00000000 },
117 { PLATID_CPU_ARM_STRONGARM_SA1100 , PLATID_MACH_HP_JORNADA_820JP , 8, 640, 480, 0, 0x00000000 },
118 // SA-1110
119 { PLATID_CPU_ARM_STRONGARM_SA1110 , PLATID_MACH_HP_JORNADA_7XX , 16, 640, 240, 1280, 0x48200000 },
120 { PLATID_CPU_ARM_STRONGARM_SA1110 , PLATID_MACH_COMPAQ_IPAQ_H3600 , 16, 320, 240, 640, 0x00000000 },
121 // PXA250
122 { PLATID_CPU_ARM_XSCALE_PXA250 , PLATID_MACH_COMPAQ_IPAQ_H3900 , 16, 320, 240, 640, 0x00000000 },
123 #endif // ARM
124 { 0, 0, 0, 0, 0, 0, 0 } // TERMINATOR
128 // Unsupported machine list.
130 struct HpcMenuInterface::support_status
131 HpcMenuInterface::_unsupported[] =
133 #ifdef ARM
134 #endif // ARM
135 #ifdef MIPS
136 #endif // MIPS
137 #ifdef SHx
138 { PLATID_CPU_SH_3_7709 , PLATID_MACH_CASIO_CASSIOPEIAA_A55V , L"Companion chip FM-7403 not supported." },
139 #endif // SHx
140 { 0, 0, 0 } // TERMINATOR