25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_hpcmips.c,v 1.6 2007/01/21 21:02:57 debug Exp $ |
* $Id: machine_hpcmips.c,v 1.9 2007/06/15 18:08:10 debug Exp $ |
29 |
|
* |
30 |
|
* COMMENT: Handheld MIPS-based machines |
31 |
*/ |
*/ |
32 |
|
|
33 |
#include <stdio.h> |
#include <stdio.h> |
84 |
|
|
85 |
/* TODO: irq? */ |
/* TODO: irq? */ |
86 |
snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x" |
snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x" |
87 |
"0a008680 addr_mult=4 in_use=%i", machine->use_x11? 0 : 1); |
"0a008680 addr_mult=4 in_use=%i", !machine->x11_md.in_use); |
88 |
machine->main_console_handle = (size_t) |
machine->main_console_handle = (size_t) |
89 |
device_add(machine, tmpstr); |
device_add(machine, tmpstr); |
90 |
|
|
114 |
|
|
115 |
/* TODO: irq? */ |
/* TODO: irq? */ |
116 |
snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x" |
snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x" |
117 |
"0a008680 addr_mult=4 in_use=%i", machine->use_x11? 0 : 1); |
"0a008680 addr_mult=4 in_use=%i", !machine->x11_md.in_use); |
118 |
machine->main_console_handle = (size_t) |
machine->main_console_handle = (size_t) |
119 |
device_add(machine, tmpstr); |
device_add(machine, tmpstr); |
120 |
|
|
133 |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_770: |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_770: |
134 |
/* 131 MHz VR4121 */ |
/* 131 MHz VR4121 */ |
135 |
machine->machine_name = "NEC MobilePro 770"; |
machine->machine_name = "NEC MobilePro 770"; |
|
machine->stable = 1; |
|
136 |
hpc_fb_addr = 0xa000000; |
hpc_fb_addr = 0xa000000; |
137 |
hpc_fb_xsize = 640; |
hpc_fb_xsize = 640; |
138 |
hpc_fb_ysize = 240; |
hpc_fb_ysize = 240; |
156 |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_780: |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_780: |
157 |
/* 166 (or 168) MHz VR4121 */ |
/* 166 (or 168) MHz VR4121 */ |
158 |
machine->machine_name = "NEC MobilePro 780"; |
machine->machine_name = "NEC MobilePro 780"; |
|
machine->stable = 1; |
|
159 |
hpc_fb_addr = 0xa180100; |
hpc_fb_addr = 0xa180100; |
160 |
hpc_fb_xsize = 640; |
hpc_fb_xsize = 640; |
161 |
hpc_fb_ysize = 240; |
hpc_fb_ysize = 240; |
179 |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_800: |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_800: |
180 |
/* 131 MHz VR4121 */ |
/* 131 MHz VR4121 */ |
181 |
machine->machine_name = "NEC MobilePro 800"; |
machine->machine_name = "NEC MobilePro 800"; |
|
machine->stable = 1; |
|
182 |
hpc_fb_addr = 0xa000000; |
hpc_fb_addr = 0xa000000; |
183 |
hpc_fb_xsize = 800; |
hpc_fb_xsize = 800; |
184 |
hpc_fb_ysize = 600; |
hpc_fb_ysize = 600; |
202 |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_880: |
case MACHINE_HPCMIPS_NEC_MOBILEPRO_880: |
203 |
/* 168 MHz VR4121 */ |
/* 168 MHz VR4121 */ |
204 |
machine->machine_name = "NEC MobilePro 880"; |
machine->machine_name = "NEC MobilePro 880"; |
|
machine->stable = 1; |
|
205 |
hpc_fb_addr = 0xa0ea600; |
hpc_fb_addr = 0xa0ea600; |
206 |
hpc_fb_xsize = 800; |
hpc_fb_xsize = 800; |
207 |
hpc_fb_ysize = 600; |
hpc_fb_ysize = 600; |
244 |
"ns16550 irq=%i addr=0x0c000010", 8+VRIP_INTR_SIU); |
"ns16550 irq=%i addr=0x0c000010", 8+VRIP_INTR_SIU); |
245 |
x = (size_t)device_add(machine, tmpstr); |
x = (size_t)device_add(machine, tmpstr); |
246 |
|
|
247 |
if (!machine->use_x11) |
if (!machine->x11_md.in_use) |
248 |
machine->main_console_handle = x; |
machine->main_console_handle = x; |
249 |
} |
} |
250 |
|
|
347 |
"res:240,bpp:4,gray,hpck:3084,inv ether=0,0x03fe0300,eth0"); |
"res:240,bpp:4,gray,hpck:3084,inv ether=0,0x03fe0300,eth0"); |
348 |
tmp[tmplen-1] = '\0'; |
tmp[tmplen-1] = '\0'; |
349 |
|
|
350 |
if (!machine->use_x11) |
if (!machine->x11_md.in_use) |
351 |
snprintf(tmp+strlen(tmp), tmplen-strlen(tmp), |
snprintf(tmp+strlen(tmp), tmplen-strlen(tmp), |
352 |
" console=ttyS0,115200"); |
" console=ttyS0,115200"); |
353 |
tmp[tmplen-1] = '\0'; |
tmp[tmplen-1] = '\0'; |