/[gxemul]/trunk/src/machines/machine_sandpoint.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_sandpoint.c

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

revision 49 by dpavlin, Wed Oct 10 23:31:09 2007 UTC revision 62 by dpavlin, Sat Oct 13 12:51:47 2007 UTC
# Line 61  MACHINE_SETUP(sandpoint) Line 61  MACHINE_SETUP(sandpoint)
61          /*  Sandpoint PPC specific motherboard registers:  */          /*  Sandpoint PPC specific motherboard registers:  */
62          device_add(machine, "sandpoint");          device_add(machine, "sandpoint");
63    
64          /*  PCI and Interrupt controller:  */          // OpenPIC FIXME
65          pci_data = device_add(machine, "mpc40x");          device_add(machine, "gc addr=0xfc041000");
66    
67  #if 0  #if 0
68            snprintf(tmpstr, sizeof(tmpstr), "prep irq=%s.cpu[%i]",
69                machine->path, machine->bootstrap_cpu);
70            device_add(machine, tmpstr);
71    #endif
72    
73            /*  PCI and Interrupt controller (hostbus)  */
74            pci_data = dev_mpc10x_init(machine, machine->memory, 0xfe000000,
75                64 /*  isa irq base */, 128 /*  pci irq: TODO */);
76    
77            /*  serial port  */
78    
79            machine->main_console_handle = (size_t)
80                    device_add(machine, "ns16550 addr=0xfc004500");
81    #if 0
82            snprintf(tmp, sizeof(tmp), "ns16550 irq=%s.mpc10x.%i addr=0x%llx "
83                "name2=tty1", devinit->interrupt_path, 31 - MPC_IB_UART_1,
84                (long long)fc004600);
85            device_add(devinit->machine, tmp);
86    #endif
87    #if 0
88          /*  RTC at "ext int 5" = "int 25" in IBM jargon, int          /*  RTC at "ext int 5" = "int 25" in IBM jargon, int
89              31-25 = 6 for the rest of us.  */              31-25 = 6 for the rest of us.  */
90          snprintf(tmpstr, sizeof(tmpstr), "%s.cpu[%i].mpc40x.%i",          snprintf(tmpstr, sizeof(tmpstr), "%s.cpu[%i].mpc10x.%i",
91              machine->path, machine->bootstrap_cpu, 31-25);              machine->path, machine->bootstrap_cpu, 31-25);
92          dev_mc146818_init(machine, machine->memory, 0x7ff00000, tmpstr,          dev_mc146818_init(machine, machine->memory, 0x7ff00000, tmpstr,
93              MC146818_SANDPOINT, 1);              MC146818_SANDPOINT, 1);
94    
95          bus_pci_add(machine, pci_data, machine->memory, 0, 8, 0, "dec21143");          bus_pci_add(machine, pci_data, machine->memory, 0, 8, 0, "dec21143");
96  #endif  #endif
97    
98  }  }
99    
100    
101  MACHINE_DEFAULT_CPU(sandpoint)  MACHINE_DEFAULT_CPU(sandpoint)
102  {  {
103          machine->cpu_name = strdup("PPC750");          machine->cpu_name = strdup("PPC603e");
104  }  }
105    
106    

Legend:
Removed from v.49  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.26