files.sparc revision 1.24
1#	$NetBSD: files.sparc,v 1.24 1996/05/29 21:56:38 pk Exp $
2
3# @(#)files.sparc	8.1 (Berkeley) 7/19/93
4# sparc-specific configuration info
5
6# maxpartitions must be first item in files.${ARCH}.newconf
7maxpartitions 8
8
9maxusers 2 8 64
10
11device mainbus {}
12attach mainbus at root
13
14device obio { [addr = -1], [level = -1] }
15attach obio at mainbus
16device vmel { [addr = -1], [level = -1], [vect = -1] }
17attach vmel at mainbus
18device vmes { [addr = -1], [level = -1], [vect = -1] }
19attach vmes at mainbus
20file	arch/sparc/dev/obio.c		obio | vmel | vmes
21
22device audio
23attach audio at mainbus, obio
24file	arch/sparc/dev/amd7930.c		audio
25
26device auxreg
27attach auxreg at mainbus, obio
28file	arch/sparc/sparc/auxreg.c
29
30device clock
31attach clock at mainbus, obio
32
33device oclock
34attach oclock at obio
35
36device timer
37attach timer at mainbus, obio
38
39device eeprom
40attach eeprom at obio
41file	arch/sparc/sparc/clock.c
42
43device power
44attach power at obio
45file	arch/sparc/dev/power.c			power
46
47device cpu
48attach cpu at mainbus
49file	arch/sparc/sparc/cpu.c
50
51device memreg
52attach memreg at mainbus, obio
53file	arch/sparc/sparc/memreg.c
54
55device zs
56attach zs at mainbus, obio
57file	arch/sparc/dev/zs.c			zs needs-count
58
59device fdc {}
60attach fdc at mainbus, obio
61device fd: disk
62attach fd at fdc
63file	arch/sparc/dev/fd.c			fdc | fd needs-flag
64file	arch/sparc/sparc/bsd_fdintr.s		fdc
65
66device iommu {}
67attach iommu at mainbus
68file	arch/sparc/sparc/iommu.c		iommu
69
70device sbus { slot = -1, offset = -1 }
71attach sbus at mainbus, iommu
72file	arch/sparc/dev/sbus.c			sbus
73
74
75#
76# Machine-independent SCSI drivers
77#
78include "../../../scsi/files.scsi"
79
80major { sd = 7 }
81major { vnd = 8 }
82major { cd = 18 }
83
84device dma {}
85attach dma at sbus, obio
86device ledma {}
87attach ledma at sbus
88file	arch/sparc/dev/dma.c		dma | ledma
89
90device esp: scsi
91attach esp at sbus, dma, obio
92file	arch/sparc/dev/esp.c		esp
93
94# Brooktree DAC attribute
95define bt_dac
96
97device bwtwo
98attach bwtwo at sbus, obio, vmes, vmel
99file	arch/sparc/dev/bwtwo.c		bwtwo needs-flag
100
101device cgtwo
102attach cgtwo at sbus, obio, vmes
103file	arch/sparc/dev/cgtwo.c		cgtwo needs-flag
104
105device cgthree: bt_dac
106attach cgthree at sbus
107file	arch/sparc/dev/cgthree.c	cgthree needs-flag
108
109device cgfour: bt_dac
110attach cgfour at obio
111file	arch/sparc/dev/cgfour.c		cgfour needs-flag
112
113device cgsix: bt_dac
114attach cgsix at sbus, obio
115file	arch/sparc/dev/cgsix.c		cgsix needs-flag
116
117device cgeight: bt_dac
118attach cgeight at obio
119file	arch/sparc/dev/cgeight.c	cgeight needs-flag
120
121file	arch/sparc/dev/bt_subr.c	bt_dac
122
123# device definition in sys/conf/files
124attach le at sbus, ledma, obio
125file	arch/sparc/dev/if_le.c		le
126
127device ie: ifnet, ether
128attach ie at obio, vmes, vmel
129file	arch/sparc/dev/if_ie.c		ie
130
131device xdc {drive = -1}
132attach xdc at vmel
133device xd: disk
134attach xd at xdc
135file	arch/sparc/dev/xd.c		xd needs-flag
136major	{xd = 10}
137
138device xyc {drive = -1}
139attach xyc at vmes
140device xy: disk
141attach xy at xyc
142file	arch/sparc/dev/xy.c		xy needs-flag
143major	{xy = 3}
144
145device si: scsi, ncr5380sbc
146attach si at vmes
147device sw: scsi, ncr5380sbc
148attach sw at obio
149file	arch/sparc/dev/si.c		si | sw
150
151pseudo-device	kbd
152
153#
154# Generic Sun stuff
155#
156include "../../../dev/sun/files.sun"
157
158file	arch/sparc/dev/cons.c
159file	arch/sparc/dev/fb.c
160file	arch/sparc/dev/ms.c
161file	arch/sparc/dev/kbd.c		kbd
162
163file	arch/sparc/fpu/fpu.c
164file	arch/sparc/fpu/fpu_add.c
165file	arch/sparc/fpu/fpu_compare.c
166file	arch/sparc/fpu/fpu_div.c
167file	arch/sparc/fpu/fpu_explode.c
168file	arch/sparc/fpu/fpu_implode.c
169file	arch/sparc/fpu/fpu_mul.c
170file	arch/sparc/fpu/fpu_sqrt.c
171file	arch/sparc/fpu/fpu_subr.c
172
173# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not
174# identified the exact problem yet.  NOOPT_C suffices for now.
175file	arch/sparc/sparc/autoconf.c
176file	arch/sparc/sparc/amd7930intr.s	audio
177file	arch/sparc/sparc/cache.c
178file	arch/sparc/sparc/conf.c
179file	arch/sparc/sparc/in_cksum.c
180file	arch/sparc/sparc/intr.c
181file	arch/sparc/sparc/kgdb_stub.c
182# sparc/sparc/locore.s is handled specially in the makefile,
183# because it must come first in the "ld" command line.
184file	arch/sparc/sparc/locore2.c
185file	arch/sparc/sparc/machdep.c
186file	arch/sparc/sparc/process_machdep.c
187file	arch/sparc/sparc/mem.c
188file	arch/sparc/sparc/openprom.c
189file	arch/sparc/sparc/pmap.c
190# the following overrides the generic "sys_process.c"
191# commented out by deraadt
192#file	arch/sparc/sparc/sys_process.c
193file	arch/sparc/sparc/sys_machdep.c
194file	arch/sparc/sparc/trap.c
195file	arch/sparc/sparc/vm_machdep.c
196file	arch/sparc/sparc/disksubr.c
197
198file	kludge_for_in_proto.c		hy needs-flag
199
200file	arch/sparc/sparc/db_interface.c	ddb
201file	arch/sparc/sparc/db_trace.c	ddb
202file	arch/sparc/sparc/db_disasm.c	ddb
203
204#
205# Raster Console
206#
207include "../../../dev/rcons/files.rcons"
208
209#
210# Compatibility modules
211#
212
213# SVR4 Binary Compatibility (COMPAT_SVR4)
214include "../../../compat/svr4/files.svr4"
215file	arch/sparc/sparc/svr4_machdep.c	compat_svr4
216file	arch/sparc/sparc/sunos_machdep.c compat_sunos
217
218# SunOS Binary Compatibility (COMPAT_SUNOS)
219include "../../../compat/sunos/files.sunos"
220
221# Miscellaneous
222file	netns/ns_cksum.c		ns
223
224#pseudo-device rd
225#major	{rd = 5}
226#file	arch/sparc/dev/rd_root.c	microroot
227#file	dev/ramdisk.c			rd needs-flag
228