summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/psim/psim-tree
blob: 6e038d4fe22ac19c99126249faa0cf5452915c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# $FreeBSD$
#
# Simple psim h/w description
#

/#address-cells 1
/openprom/options/use-stdio? false
#/openprom/options/strict-alignment? true

#
# CPU definition. The phandle property is to help nexus.c locate the
# interrupt controller.
#
/cpus/cpu@0

#
# disk file, done via phb crap. maybe there's a better way.
#
/phb@0x70000000
        ./device_type "pci
        ./name "pci
        ./#address-cells 3
        ./#size-cells 2
        ./ranges ni0,0,0,0 0xc0000000 0x10000

/phb@0x70000000/ide@1
        ./device_type "ide
        ./name "ide
        ./assigned-addresses \
                ni0,0,10,1f0 8 \
                ni0,0,14,3f8 8 \
                ni0,0,18,170 8 \
                ni0,0,1c,378 8 \
                ni0,0,20,200 8
        ./reg \
                1 0 \
                i0,0,10,0 8 \
                i0,0,18,0 8 \
                i0,0,14,6 1 \
                i0,0,1c,6 1 \
                i0,0,20,0 8
        ./ready-delay 1000

/phb@0x70000000/ide@1/disk@0/file "PPC.IMG

#
# I/O Bus
#
/iobus@0x80000000
	./name psim-iobus
	./reg 0x80000000 0x20000000

#
# OpenPIC
#
/iobus@0x80000000/opic@0x80000000
        ./name         interrupt-controller
        ./device_type  open-pic
        ./compatible   psim,open-pic
        ./reg 0x80000000 0x40000
        ./interrupt-ranges 0 256

/iobus/opic > intr0 int /cpus/cpu@0x0

#
# IDE1
#
#/iobus@0x80000000/ide@0x80052000
#        ./name ata-4
#        ./ioport 1
#        ./device_type ata
#        ./interrupt  12
#        ./reg 0x80052000 8 0x80052010 8 0x80052020 8 0x80052030 1 0x80052040 1 0x80052050 8
#/iobus@0x80000000/ide@0x80052000 > a irq12 /iobus/opic
OpenPOWER on IntegriCloud