25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_evbmips.c,v 1.20 2007/04/10 16:51:35 debug Exp $ |
* $Id: machine_evbmips.c,v 1.27 2007/06/15 18:08:10 debug Exp $ |
29 |
|
* |
30 |
|
* COMMENT: MIPS evaluation boards (e.g. Malta) |
31 |
*/ |
*/ |
32 |
|
|
33 |
#include <stdio.h> |
#include <stdio.h> |
52 |
struct pci_data *pci_data; |
struct pci_data *pci_data; |
53 |
int i; |
int i; |
54 |
|
|
55 |
/* See http://www.netbsd.org/Ports/evbmips/ for more info. */ |
/* See http://www.netbsd.org/ports/evbmips/ for more info. */ |
56 |
|
|
57 |
switch (machine->machine_subtype) { |
switch (machine->machine_subtype) { |
58 |
case MACHINE_EVBMIPS_MALTA: |
case MACHINE_EVBMIPS_MALTA: |
61 |
machine->emulated_hz = 33000000; |
machine->emulated_hz = 33000000; |
62 |
cpu->byte_order = EMUL_LITTLE_ENDIAN; |
cpu->byte_order = EMUL_LITTLE_ENDIAN; |
63 |
machine->machine_name = "MALTA (evbmips, little endian)"; |
machine->machine_name = "MALTA (evbmips, little endian)"; |
|
machine->stable = 1; |
|
64 |
|
|
65 |
if (machine->machine_subtype == MACHINE_EVBMIPS_MALTA_BE) { |
if (machine->machine_subtype == MACHINE_EVBMIPS_MALTA_BE) { |
66 |
machine->machine_name = "MALTA (evbmips, big endian)"; |
machine->machine_name = "MALTA (evbmips, big endian)"; |
85 |
pci_data = dev_gt_init(machine, machine->memory, 0x1be00000, |
pci_data = dev_gt_init(machine, machine->memory, 0x1be00000, |
86 |
tmpstr, tmpstr2, 120); |
tmpstr, tmpstr2, 120); |
87 |
|
|
88 |
if (machine->use_x11) { |
if (machine->x11_md.in_use) { |
89 |
if (strlen(machine->boot_string_argument) < 3) { |
if (strlen(machine->boot_string_argument) < 3) { |
90 |
fatal("WARNING: remember to use -o 'console=" |
fatal("WARNING: remember to use -o 'console=" |
91 |
"tty0' if you are emulating Linux. (Not" |
"tty0' if you are emulating Linux. (Not" |
168 |
|
|
169 |
case MACHINE_EVBMIPS_MALTA: |
case MACHINE_EVBMIPS_MALTA: |
170 |
case MACHINE_EVBMIPS_MALTA_BE: |
case MACHINE_EVBMIPS_MALTA_BE: |
171 |
|
/* 5Kc = MIPS64 rev 1, 5KE = MIPS64 rev 2 */ |
172 |
machine->cpu_name = strdup("5Kc"); |
machine->cpu_name = strdup("5Kc"); |
173 |
break; |
break; |
174 |
|
|
180 |
|
|
181 |
MACHINE_DEFAULT_RAM(evbmips) |
MACHINE_DEFAULT_RAM(evbmips) |
182 |
{ |
{ |
|
/* MeshCube is always (?) 64 MB, and the others work fine |
|
|
with 64 MB too. */ |
|
183 |
machine->physical_ram_in_mb = 64; |
machine->physical_ram_in_mb = 64; |
184 |
} |
} |
185 |
|
|