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/) |
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. */ |