25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_macppc.c,v 1.11 2007/02/18 09:19:47 debug Exp $ |
* $Id: machine_macppc.c,v 1.16 2007/06/15 18:08:10 debug Exp $ |
29 |
|
* |
30 |
|
* COMMENT: Generic PowerPC-based Macintosh machines |
31 |
* |
* |
32 |
* See also: |
* See also: |
33 |
* |
* |
34 |
* NetBSD/macppc (http://www.netbsd.org/Ports/macppc/) |
* NetBSD/macppc (http://www.netbsd.org/ports/macppc/) |
35 |
* OpenBSD/macppc (http://www.openbsd.org/macppc.html) |
* OpenBSD/macppc (http://www.openbsd.org/macppc.html) |
36 |
* |
* |
37 |
* Currently, these are skeletons for generic PowerMac G3, G4, and G5 systems. |
* Currently, these are skeletons for generic PowerMac G3, G4, and G5 systems. |
43 |
#include <stdlib.h> |
#include <stdlib.h> |
44 |
#include <string.h> |
#include <string.h> |
45 |
|
|
46 |
|
#include "bus_pci.h" |
47 |
#include "cpu.h" |
#include "cpu.h" |
48 |
#include "device.h" |
#include "device.h" |
49 |
#include "devices.h" |
#include "devices.h" |
65 |
if (machine->emulated_hz == 0) |
if (machine->emulated_hz == 0) |
66 |
machine->emulated_hz = 40000000; |
machine->emulated_hz = 40000000; |
67 |
|
|
|
/* NetBSD/macppc works on the "G4" machine type: */ |
|
|
switch (machine->machine_subtype) { |
|
|
case MACHINE_MACPPC_G4: |
|
|
machine->stable = 1; |
|
|
} |
|
|
|
|
68 |
device_add(machine, "gc addr=0xf3000000"); |
device_add(machine, "gc addr=0xf3000000"); |
69 |
|
|
70 |
pci_data = dev_uninorth_init(machine, machine->memory, 0xe2000000, |
pci_data = dev_uninorth_init(machine, machine->memory, 0xe2000000, |
74 |
machine, pci_data, machine->memory, 0, 12, 0, "dec21143"); */ |
machine, pci_data, machine->memory, 0, 12, 0, "dec21143"); */ |
75 |
bus_pci_add(machine, pci_data, machine->memory, 0, 15, 0, "gc_obio"); |
bus_pci_add(machine, pci_data, machine->memory, 0, 15, 0, "gc_obio"); |
76 |
|
|
77 |
if (machine->use_x11) |
if (machine->x11_md.in_use) |
78 |
bus_pci_add(machine, pci_data, machine->memory, 0, 16, 0, |
bus_pci_add(machine, pci_data, machine->memory, 0, 16, 0, |
79 |
"ati_radeon_9200_2"); |
"ati_radeon_9200_2"); |
80 |
|
|
101 |
of_emul_init(machine, fb, 0xf1000000, 1024, 768); |
of_emul_init(machine, fb, 0xf1000000, 1024, 768); |
102 |
of_emul_init_uninorth(machine); |
of_emul_init_uninorth(machine); |
103 |
|
|
104 |
if (machine->use_x11) |
if (machine->x11_md.in_use) |
105 |
of_emul_init_adb(machine); |
of_emul_init_adb(machine); |
106 |
else |
else |
107 |
of_emul_init_zs(machine); |
of_emul_init_zs(machine); |