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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
# $NetBSD: files.sun2,v 1.21 2018/12/19 13:57:50 maxv Exp $
#
# sun2-specific configuration info
#
# maxpartitions must be first item in files.${ARCH}
maxpartitions 8
maxusers 2 8 64
# Standard stuff
file arch/sun2/sun2/locore2.c
file arch/sun2/sun2/machdep.c
file arch/sun2/sun2/pmap.c
file arch/sun2/sun2/control.c
file arch/sun2/sun2/db_machdep.c ddb
file arch/sun2/sun2/db_memrw.c ddb | kgdb
file arch/sun2/sun2/leds.c
file arch/sun2/sun2/mm_md.c
file arch/sun2/sun2/idprom.c
file arch/sun2/sun2/promlib.c
file arch/sun2/sun2/sys_machdep.c
file arch/sun2/sun2/trap.c
include "arch/m68k/fpe/files.fpe"
# Console support:
file arch/sun2/dev/consinit.c
file dev/cons.c
#
# Bus types
#
device mainbus {}
attach mainbus at root
# VME support (these should be moved into arch/sun68k)
include "dev/vme/files.vme"
device sun68kvme: vmebus
attach sun68kvme at mainbus
file arch/sun68k/sun68k/vme_sun68k.c sun68kvme
# On-board I/O space (required).
device obio {addr = -1, [ipl = -1], [vect = -1]}
attach obio at mainbus
file arch/sun2/sun2/obio.c
# On-board MEMory space (required).
device obmem {addr = -1, [ipl = -1], [vect = -1]}
attach obmem at mainbus
file arch/sun2/sun2/obmem.c obmem
# MultiBus MEMory space (optional).
device mbmem {addr = -1, [ipl = -1], [vect = -1]}
attach mbmem at mainbus
file arch/sun2/sun2/mbmem.c mbmem
# MultiBus I/O space (optional).
device mbio {addr = -1, [ipl = -1], [vect = -1]}
attach mbio at mainbus
file arch/sun2/sun2/mbio.c mbio
#
# Machine-independent SCSI drivers
#
include "dev/scsipi/files.scsipi"
#
# Devices, files, and attributes needed below
#
include "dev/sun/files.sun"
device zs {channel = -1}
file arch/sun2/dev/zs.c zs needs-count
file dev/ic/z8530sc.c zs
file arch/sun2/dev/zs_kgdb.c kgdb
device zstty {}: tty
attach zstty at zs
file dev/ic/z8530tty.c zstty needs-flag
file arch/sun2/dev/zs_any.c zs_obio | zs_obmem | zs_mbmem
file arch/sun2/dev/bwtwo_any.c bwtwo_obio | bwtwo_obmem
#
# On-Board I/O (OBIO), in attach order.
# The following are all required.
#
# Zilog Serial (ZS)
attach zs at obio with zs_obio
# AMD timer
device clock
attach clock at obio
file arch/sun2/sun2/clock.c
# National Semiconductor Time-Of-Day clock
device tod: mm58167
attach tod at obio with tod_obio
attach tod at vme with tod_vme
file arch/sun2/sun2/tod.c
# These are optional:
# Intel Ethernet
attach ie at obio with ie_obio
file arch/sun2/dev/if_ie_obio.c ie_obio
attach bwtwo at obio with bwtwo_obio
#
# On-Board MEMory (OBMEM)
#
attach zs at obmem with zs_obmem
attach bwtwo at obmem with bwtwo_obmem
#
# MultiBus MEMory (MBMEM)
#
attach zs at mbmem with zs_mbmem
attach ie at mbmem with ie_mbmem
file arch/sun2/dev/if_ie_mbmem.c ie_mbmem
attach sc at mbmem with sc_mbmem
file arch/sun2/dev/sc_mbmem.c sc_mbmem
# 3Com Ethernet
device ec: ifnet, ether, arp
attach ec at mbmem
file arch/sun2/dev/if_ec.c ec
#
# Console (zs) related stuff
#
device pcons
attach pcons at mainbus
file arch/sun2/dev/pcons.c pcons needs-flag
file arch/sun2/dev/kd.c kbd
attach kbd at zstty with kbd_tty
file dev/sun/kbdsun.c kbd_tty
file dev/sun/sunkbd.c kbd_tty
attach ms at zstty with ms_tty
file dev/sun/sunms.c ms_tty
# Memory Disk for boot tape
file dev/md_root.c memory_disk_hooks
# Compatibility modules
# NetBSD m68k a.out Binary Compatibility (COMPAT_AOUT_M68K)
include "compat/aoutm68k/files.aoutm68k"
# SunOS Binary Compatibility (COMPAT_SUNOS)
include "compat/sunos/files.sunos"
file arch/m68k/m68k/sunos_machdep.c compat_sunos
# Linux binary compatibility (COMPAT_LINUX)
include "compat/linux/files.linux"
include "compat/linux/arch/m68k/files.linux_m68k"
file arch/m68k/m68k/linux_trap.c compat_linux
# OSS audio driver compatibility
include "compat/ossaudio/files.ossaudio"
include "arch/sun2/conf/majors.sun2"
|