1 |
/* |
/* |
2 |
* Copyright (C) 2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2006-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_mvmeppc.c,v 1.9 2006/06/24 10:19:19 debug Exp $ |
* $Id: machine_mvmeppc.c,v 1.22 2007/06/15 18:08:10 debug Exp $ |
29 |
* |
* |
30 |
* MVMEPPC machines (for experimenting with NetBSD/mvmeppc or RTEMS). |
* COMMENT: MVMEPPC machines |
31 |
|
* |
32 |
|
* This is for experiments with NetBSD/mvmeppc or RTEMS. |
33 |
* (ftp://ftp.netbsd.org/pub/NetBSD/arch/mvmeppc/snapshot/20020302/README) |
* (ftp://ftp.netbsd.org/pub/NetBSD/arch/mvmeppc/snapshot/20020302/README) |
34 |
* |
* |
35 |
* Note: MVME machines that really adhere to the PReP standard should be |
* Note: MVME machines that really adhere to the PReP standard should be |
50 |
#include "devices.h" |
#include "devices.h" |
51 |
#include "diskimage.h" |
#include "diskimage.h" |
52 |
#include "machine.h" |
#include "machine.h" |
|
#include "machine_interrupts.h" |
|
53 |
#include "memory.h" |
#include "memory.h" |
54 |
#include "misc.h" |
#include "misc.h" |
55 |
|
|
56 |
|
|
57 |
MACHINE_SETUP(mvmeppc) |
MACHINE_SETUP(mvmeppc) |
58 |
{ |
{ |
59 |
|
char tmpstr[300]; |
60 |
struct pci_data *pci_data = NULL; |
struct pci_data *pci_data = NULL; |
61 |
|
|
62 |
switch (machine->machine_subtype) { |
switch (machine->machine_subtype) { |
64 |
case MACHINE_MVMEPPC_1600: |
case MACHINE_MVMEPPC_1600: |
65 |
machine->machine_name = "MVME1600"; |
machine->machine_name = "MVME1600"; |
66 |
|
|
67 |
machine->md_int.prep_data = device_add(machine, "prep"); |
snprintf(tmpstr, sizeof(tmpstr), "eagle irq=%s.cpu[%i]", |
68 |
machine->isa_pic_data.native_irq = 1; /* Semi-bogus */ |
machine->path, machine->bootstrap_cpu); |
69 |
machine->md_interrupt = isa32_interrupt; |
device_add(machine, tmpstr); |
|
|
|
|
pci_data = dev_eagle_init(machine, machine->memory, |
|
|
32 /* isa irq base */, 0 /* pci irq: TODO */); |
|
|
|
|
|
bus_isa_init(machine, BUS_ISA_LPTBASE_3BC, |
|
|
0x80000000, 0xc0000000, 32, 48); |
|
70 |
|
|
71 |
bus_pci_add(machine, pci_data, machine->memory, |
bus_pci_add(machine, pci_data, machine->memory, |
72 |
0, 14, 0, "dec21143"); |
0, 14, 0, "dec21143"); |
102 |
|
|
103 |
/* GT64260 interrupt and PCI controller: */ |
/* GT64260 interrupt and PCI controller: */ |
104 |
pci_data = dev_gt_init(machine, machine->memory, |
pci_data = dev_gt_init(machine, machine->memory, |
105 |
0xf1000000, 0 /* TODO: irq */, 0 /* TODO: pciirq */, 260); |
0xf1000000, "TODO: timer irq", "TODO: isa irq", 260); |
106 |
|
|
107 |
/* TODO: irq */ |
/* TODO: irq */ |
108 |
device_add(machine, "ns16550 irq=0 addr=0xf1120000"); |
device_add(machine, "ns16550 irq=0 addr=0xf1120000"); |
182 |
|
|
183 |
MACHINE_REGISTER(mvmeppc) |
MACHINE_REGISTER(mvmeppc) |
184 |
{ |
{ |
185 |
MR_DEFAULT(mvmeppc, "MVME", ARCH_PPC, MACHINE_MVMEPPC); |
MR_DEFAULT(mvmeppc, "MVMEPPC", ARCH_PPC, MACHINE_MVMEPPC); |
186 |
|
|
187 |
machine_entry_add_alias(me, "mvmeppc"); |
machine_entry_add_alias(me, "mvmeppc"); |
188 |
|
|