/[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 71 by dpavlin, Sat Oct 13 15:05:59 2007 UTC revision 72 by dpavlin, Sun Oct 14 18:34:52 2007 UTC
# Line 47  Line 47 
47  MACHINE_SETUP(sandpoint)  MACHINE_SETUP(sandpoint)
48  {  {
49          struct pci_data *pci_data;          struct pci_data *pci_data;
50  //      char tmpstr[300];          char tmp[300];
51    
52          /*          /*
53           *  NetBSD/sandpoint (http://www.netbsd.org/ports/sandpoint/)           *  NetBSD/sandpoint (http://www.netbsd.org/ports/sandpoint/)
# Line 64  MACHINE_SETUP(sandpoint) Line 64  MACHINE_SETUP(sandpoint)
64          // OpenPIC FIXME          // OpenPIC FIXME
65          device_add(machine, "openpic addr=0xfc041000");          device_add(machine, "openpic addr=0xfc041000");
66    
 #if 0  
         snprintf(tmpstr, sizeof(tmpstr), "prep irq=%s.cpu[%i]",  
             machine->path, machine->bootstrap_cpu);  
         device_add(machine, tmpstr);  
 #endif  
67    
68          /*  PCI and Interrupt controller (hostbus)  */          /*  PCI and Interrupt controller (hostbus)  */
69          pci_data = dev_mpc10x_init(machine, machine->memory, 0xfe000000,          pci_data = dev_mpc10x_init(machine, machine->memory, 0xfe000000,
70              64 /*  isa irq base */, 128 /*  pci irq: TODO */);              64 /*  isa irq base */, 128 /*  pci irq: TODO */);
71    
         /*  serial port  */  
72    
73            /*  serial ports  */
74    
75            snprintf(tmp, sizeof(tmp), "ns16550 irq=%s.cpu[%i].openpic.%i addr=0x%llx "
76                "name2=tty1", machine->path, machine->bootstrap_cpu, 121, (long long)0xfc004500);
77          machine->main_console_handle = (size_t)          machine->main_console_handle = (size_t)
78                  device_add(machine, "ns16550 addr=0xfc004500");                  device_add(machine, tmp);
79    
80  #if 0  #if 0
81          snprintf(tmp, sizeof(tmp), "ns16550 irq=%s.mpc10x.%i addr=0x%llx "          snprintf(tmp, sizeof(tmp), "ns16550 irq=%s.cpu[%i].openpic.%i addr=0x%llx "
82              "name2=tty1", devinit->interrupt_path, 31 - MPC_IB_UART_1,              "name2=tty1", machine->path, machine->bootstrap_cpu, 122, (long long)0xfc004600);
83              (long long)fc004600);          device_add(machine, tmp);
         device_add(devinit->machine, tmp);  
84  #endif  #endif
85    
86  #if 0  #if 0
87          /*  RTC at "ext int 5" = "int 25" in IBM jargon, int          /*  RTC at "ext int 5" = "int 25" in IBM jargon, int
88              31-25 = 6 for the rest of us.  */              31-25 = 6 for the rest of us.  */

Legend:
Removed from v.71  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.26