/[gxemul]/trunk/src/machines/machine_macppc.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/machines/machine_macppc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
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.
# Line 41  Line 43 
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"
# Line 62  MACHINE_SETUP(macppc) Line 65  MACHINE_SETUP(macppc)
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,
# Line 77  MACHINE_SETUP(macppc) Line 74  MACHINE_SETUP(macppc)
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    
# Line 104  MACHINE_SETUP(macppc) Line 101  MACHINE_SETUP(macppc)
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);

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26