files.alpha revision 1.82
1# $NetBSD: files.alpha,v 1.82 1998/06/26 05:42:35 thorpej Exp $
2#
3# alpha-specific configuration info
4
5# maxpartitions must be first item in files.${ARCH}.newconf
6maxpartitions 8
7
8maxusers 8 16 64
9
10# CPU support option headers
11defopt	DEC_2000_300	# "Jensen":	2000/300 (DECpc AXP 150)
12defopt	DEC_2100_A50	# Avanti etc:	AlphaStation 400, 200, etc.
13defopt	DEC_3000_300	# Pelican etc:	3000/300*
14defopt	DEC_3000_500	# Flamingo etc:	3000/[4-9]00*
15defopt	DEC_550		# Miata:	Personal Workstation (550)
16defopt	DEC_AXPPCI_33	# NoName:	AXPpci33, etc.
17defopt	DEC_EB164	# EB164:	AlphaPC 164
18defopt	DEC_EB64PLUS	# EB64+:	AlphaPC 64, etc.
19defopt	DEC_KN20AA	# KN20AA:	AlphaStation 500 and 600
20defopt	DEC_KN8AE	# KN8AE:	AlphaServer 8200 and 8400
21defopt	DEC_KN300	# KN300:	AlphaServer 4X00
22defopt	AVALON_A12	# Avalon:	A12T1, A12M Parallel Supercomputer
23defopt	DEC_1000A	# Corelle etc:	AlphaServer 800 and 1000A
24defopt	DEC_ALPHABOOK1	# AlphaBook1:	Tadpole/DEC AlphaBook
25
26# Miscellaneous CPU-specific option headers
27defopt	FIX_UNALIGNED_VAX_FP
28defopt	ZS_IOASIC_DMA
29
30# XXX Temporary, until integration is finished.
31defopt	NEW_SCC_DRIVER
32
33# this loses, but there's no way to define attributes which have attributes
34define	alpha_shared_intr
35file	arch/alpha/common/shared_intr.c	alpha_shared_intr | dec_eb164 |
36					dec_eb64plus | dec_kn20aa | dec_kn8ae |
37					dec_kn300 | dec_550 | dec_1000a
38define	alpha_sgmap
39file	arch/alpha/common/sgmap_common.c alpha_sgmap | dec_3000_500
40
41#
42# Bus-independent devices
43#
44
45device	mainbus { }			# no locators (yet?)
46attach	mainbus at root
47
48device	cpu { }				# not really optional
49attach	cpu at mainbus
50file	arch/alpha/alpha/cpu.c		cpu
51
52
53#
54# Machine-independent SCSI drivers
55#
56
57include "dev/scsipi/files.scsipi"
58major { st = 2 }
59major { cd = 3 }
60major { sd = 8 }
61
62#
63# Machine-independent ATA drivers
64#
65
66include "dev/ata/files.ata"
67major { wd = 4 }
68
69# Memory Disk
70file	arch/alpha/alpha/md_root.c	memory_disk_hooks
71major { md = 6 }
72
73
74#
75# "Workstation Console" glue.
76#
77include "dev/wscons/files.wscons"
78
79
80#
81# TurboLaser Bus Support
82#
83
84device	tlsb { node = -1, offset = -1 }
85attach	tlsb at mainbus
86file	arch/alpha/tlsb/tlsb.c		tlsb & dec_kn8ae
87
88device	kft { }
89attach	kft at tlsb
90file	arch/alpha/tlsb/kftxx.c		kft
91
92device	tlsbmem
93attach	tlsbmem at tlsb
94file	arch/alpha/tlsb/tlsbmem.c	tlsbmem
95
96device	gbus { offset = -1 }
97attach	gbus at tlsb
98file	arch/alpha/tlsb/gbus.c		gbus
99
100#
101# MCBUS support
102#
103
104device	mcbus { mid = -1 }
105attach	mcbus at mainbus
106file	arch/alpha/mcbus/mcbus.c	mcbus & dec_kn300
107
108device	mcmem
109attach	mcmem at mcbus
110file	arch/alpha/mcbus/mcmem.c	mcmem
111
112#
113# Bus-independent support for DEC devices
114#
115include "dev/dec/files.dec"
116
117#
118# TurboChannel Devices
119#
120include "dev/tc/files.tc"
121
122# TC attachment is MD
123attach	tc at tcbus
124
125device	tcasic: tcbus
126attach	tcasic at mainbus
127file	arch/alpha/tc/tcasic.c		tcasic
128file	arch/alpha/tc/tc_bus_mem.c	tcasic
129file	arch/alpha/tc/tc_dma.c		tcasic
130file	arch/alpha/tc/tc_dma_3000_300.c	tcasic & dec_3000_300
131file	arch/alpha/tc/tc_dma_3000_500.c	tcasic & dec_3000_500
132file	arch/alpha/tc/tc_sgmap.c	tcasic & dec_3000_500
133file	arch/alpha/tc/tc_3000_500.c	tcasic & dec_3000_500
134file	arch/alpha/tc/tc_3000_300.c	tcasic & dec_3000_300
135
136# the TurboChannel IOCTL ASIC
137#  IOASIC device and attachment defined in sys/dev/tc/files.tc
138file	arch/alpha/tc/ioasic.c		ioasic
139
140# Color Frame buffer
141device	cfb: wsemuldisplaydev, wsrasteremulops
142attach	cfb at tc
143file	arch/alpha/tc/cfb.c		cfb
144
145# Smart Frame buffer
146device	sfb: wsemuldisplaydev, wsrasteremulops
147attach	sfb at tc
148file	arch/alpha/tc/sfb.c		sfb
149
150# 8530 UARTs
151device	scc: tty
152attach	scc at ioasic
153file	arch/alpha/tc/scc.c		scc		needs-count
154
155# 8530 UARTs using the MI 8530 driver   
156device	zsc { channel = -1 }
157attach	zsc at ioasic with zsc_ioasic
158file	arch/alpha/tc/zs_ioasic.c	zsc_ioasic
159file	dev/ic/z8530sc.c		zsc
160
161device	zstty: tty
162attach	zstty at zsc
163file	dev/ic/z8530tty.c		zstty		needs-flag
164
165# the TCDS ASIC
166device	tcds { chip = -1 }
167attach	tcds at tc
168file	arch/alpha/tc/tcds.c		tcds
169
170# 53C[F]90 SCSI
171device	asc: scsi, ncr53c9x
172attach	asc at tcds with asc_tcds
173file	arch/alpha/tc/asc.c		asc
174file	arch/alpha/tc/tcds_dma.c	asc
175
176# TC and baseboard ioasic Lance ethernet are in files.tc
177
178#
179# ISA Bus support
180#
181
182include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
183include "dev/isa/files.isa"
184
185#file	arch/alpha/isa/isafcns_jensen.c	dec_2000_300
186
187# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
188# XXX BECAUSE NOT ALL PORTS USE THE MI DRIVER YET.  (when the conf/files
189# XXX and files.isa bogons are fixed, this can be fixed as well.)
190
191# PCI IDE controllers
192device	pciide {[channel = -1]}
193attach	pciide at pci
194file	dev/pci/pciide.c		pciide
195attach	wdc at pciide with wdc_pciide
196file	dev/pci/wdc_pciide.c		wdc_pciide
197
198#
199# ISA Bus devices
200#
201
202#device	ibus at mainbus { }
203#device	jcombo at ibus: isabus
204#device	jeisa at ibus: eisabus
205
206file	arch/alpha/isa/isa_machdep.c	isa
207
208include "dev/pckbc/files.pckbc"
209
210# Floppy disk controller
211device	fdc { drive = -1 }
212attach	fdc at isa
213device	fd: disk, isadma
214attach	fd at fdc
215file	arch/alpha/isa/fd.c		fdc needs-flag
216major	{ fd = 0 }
217
218#
219# EISA Bus support
220#
221
222include "dev/eisa/files.eisa"
223
224
225#
226# PCI Bus support
227#
228
229# include "dev/pci/files.pci" XXX SEE ABOVE
230
231file	arch/alpha/pci/pciide_machdep.c		pciide
232
233define	alpha_pci_sgmap_pte32
234file	arch/alpha/pci/pci_sgmap_pte32.c	alpha_pci_sgmap_pte32
235
236define	alpha_pci_sgmap_pte64
237file	arch/alpha/pci/pci_sgmap_pte64.c	alpha_pci_sgmap_pte64
238
239device	apecs: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
240attach	apecs at mainbus
241file	arch/alpha/pci/apecs.c		apecs
242file	arch/alpha/pci/apecs_bus_io.c	apecs
243file	arch/alpha/pci/apecs_bus_mem.c	apecs
244file	arch/alpha/pci/apecs_dma.c	apecs
245file	arch/alpha/pci/apecs_pci.c	apecs
246
247device	cia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
248attach	cia at mainbus
249file	arch/alpha/pci/cia.c		cia
250file	arch/alpha/pci/cia_dma.c	cia
251file	arch/alpha/pci/cia_pci.c	cia
252file	arch/alpha/pci/cia_bwx_bus_io.c cia
253file	arch/alpha/pci/cia_bwx_bus_mem.c cia
254file	arch/alpha/pci/cia_swiz_bus_io.c cia
255file	arch/alpha/pci/cia_swiz_bus_mem.c cia
256
257device	a12c { }: pcibus
258attach	a12c at mainbus
259file	arch/alpha/pci/a12c.c		a12c
260file	arch/alpha/pci/a12c_bus_mem.c	a12c
261file	arch/alpha/pci/a12c_dma.c	a12c
262file	arch/alpha/pci/a12c_pci.c	a12c
263
264device	dwlpx: pcibus, alpha_sgmap, alpha_pci_sgmap_pte32
265attach	dwlpx at kft
266file	arch/alpha/pci/dwlpx.c		dwlpx
267file	arch/alpha/pci/dwlpx_bus_io.c	dwlpx
268file	arch/alpha/pci/dwlpx_bus_mem.c	dwlpx
269file	arch/alpha/pci/dwlpx_dma.c	dwlpx
270file	arch/alpha/pci/dwlpx_pci.c	dwlpx
271
272device	lca: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
273attach	lca at mainbus
274file	arch/alpha/pci/lca.c		lca
275file	arch/alpha/pci/lca_bus_io.c	lca
276file	arch/alpha/pci/lca_bus_mem.c	lca
277file	arch/alpha/pci/lca_dma.c	lca
278file	arch/alpha/pci/lca_pci.c	lca
279
280device	mcpcia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
281attach	mcpcia at mcbus
282file	arch/alpha/pci/mcpcia.c		mcpcia
283file	arch/alpha/pci/mcpcia_bus_io.c	mcpcia
284file	arch/alpha/pci/mcpcia_bus_mem.c	mcpcia
285file	arch/alpha/pci/mcpcia_dma.c	mcpcia
286file	arch/alpha/pci/mcpcia_pci.c	mcpcia
287
288
289# CPU support files
290file	arch/alpha/pci/pci_2100_a50.c	dec_2100_a50
291file	arch/alpha/pci/pci_a12.c	avalon_a12
292file	arch/alpha/pci/pci_alphabook1.c	dec_alphabook1
293file	arch/alpha/pci/pci_axppci_33.c	dec_axppci_33
294file	arch/alpha/pci/pci_eb164.c	dec_eb164
295file	arch/alpha/pci/pci_eb164_intr.s	dec_eb164
296file	arch/alpha/pci/pci_eb64plus.c	dec_eb64plus
297file	arch/alpha/pci/pci_eb64plus_intr.s dec_eb64plus
298file	arch/alpha/pci/pci_kn20aa.c	dec_kn20aa
299file	arch/alpha/pci/pci_kn8ae.c	dec_kn8ae
300file	arch/alpha/pci/pci_kn300.c	dec_kn300
301file	arch/alpha/pci/pci_550.c	dec_550
302file	arch/alpha/pci/pci_1000a.c	dec_1000a
303
304
305#
306# PCI Bus devices
307#
308
309file	arch/alpha/pci/pci_machdep.c	pci
310
311device	sio: isabus, alpha_shared_intr
312attach	sio at pci
313device	pceb: isabus, eisabus
314attach	pceb at pci
315file	arch/alpha/pci/sio.c		sio | pceb	needs-flag
316file	arch/alpha/pci/sio_pic.c	sio | pceb
317
318
319#
320# A12 if_de hack, this is temporary!
321#
322device	ade: ether, ifnet, arp
323attach	ade at pci
324file	arch/alpha/pci/if_ade.c		ade
325
326#
327# alpha/a12 platform-specific drivers
328#
329
330# Switch
331
332device	xb
333attach	xb at a12c
334file	arch/alpha/a12/if_xb.c	xb
335
336# Console
337
338device	a12dc
339attach	a12dc at a12c
340file	arch/alpha/a12/a12dc.c	a12dc		needs-flag
341
342#
343# Devices that can live on multiple busses
344#
345
346device	mcclock
347attach	mcclock at ioasic with mcclock_ioasic
348attach	mcclock at isa with mcclock_isa
349attach	mcclock at gbus with mcclock_tlsb
350file	arch/alpha/alpha/mcclock.c	mcclock
351file	arch/alpha/tc/mcclock_ioasic.c	mcclock_ioasic
352file	arch/alpha/isa/mcclock_isa.c	mcclock_isa
353file	arch/alpha/tlsb/mcclock_tlsb.c	mcclock_tlsb
354
355
356#
357# Standard files
358#
359file	arch/alpha/alpha/autoconf.c
360file	arch/alpha/alpha/clock.c
361file	arch/alpha/alpha/conf.c
362file	arch/alpha/alpha/cpuconf.c
363file	arch/alpha/alpha/interrupt.c
364file	arch/alpha/alpha/machdep.c
365file	arch/alpha/alpha/mainbus.c
366file	arch/alpha/alpha/mem.c
367file	arch/alpha/alpha/pmap.c
368file	arch/alpha/alpha/process_machdep.c
369file	arch/alpha/alpha/prom.c
370file	arch/alpha/alpha/support.c
371file	arch/alpha/alpha/sys_machdep.c
372file	arch/alpha/alpha/trap.c
373file	arch/alpha/alpha/vm_machdep.c
374file	arch/alpha/alpha/disksubr.c
375file	arch/alpha/common/bus_dma.c
376file	dev/cons.c
377
378# Network protocol checksum routines
379file	arch/alpha/alpha/in_cksum.c		inet
380file	netns/ns_cksum.c			ns
381
382# PROM console support (for ports that don't have native console support)
383file	arch/alpha/alpha/promcons.c
384
385# CPU support
386file	arch/alpha/alpha/dec_2100_a50.c		dec_2100_a50
387file	arch/alpha/alpha/dec_3000_300.c		dec_3000_300
388file	arch/alpha/alpha/dec_3000_500.c		dec_3000_500
389file	arch/alpha/alpha/dec_550.c		dec_550
390file	arch/alpha/alpha/dec_alphabook1.c	dec_alphabook1
391file	arch/alpha/alpha/dec_axppci_33.c	dec_axppci_33
392file	arch/alpha/alpha/dec_eb164.c		dec_eb164
393file	arch/alpha/alpha/dec_eb64plus.c		dec_eb64plus
394file	arch/alpha/alpha/dec_kn20aa.c		dec_kn20aa
395file	arch/alpha/alpha/dec_kn8ae.c		dec_kn8ae
396file	arch/alpha/alpha/dec_kn300.c		dec_kn300
397file	arch/alpha/alpha/avalon_a12.c		avalon_a12
398file	arch/alpha/alpha/dec_1000a.c		dec_1000a
399
400# Kernel debugger support
401file	arch/alpha/alpha/db_disasm.c		ddb
402file	arch/alpha/alpha/db_interface.c		ddb
403file	arch/alpha/alpha/db_trace.c		ddb
404
405# OSF/1 Binary Compatibility (COMPAT_OSF1)
406include "compat/osf1/files.osf1"
407
408# XXXX pcic here because it needs to be late.  The catch: pcic needs
409# to be late, so devices which attach to it are attached late.  But it
410# needs to be before its isa and pci attachments.  This answer is
411# non-optimal, but I don't have a better answer right now.
412
413# PCIC pcmcia contoller
414# XXX this needs to be done very late, so it's done here.  This feels
415# like a kludge, but it might be for the best.
416
417defopt	PCIC_ISA_ALLOC_IOBASE
418defopt	PCIC_ISA_ALLOC_IOSIZE
419defopt	PCIC_ISA_INTR_ALLOC_MASK
420
421device	pcic {[controller = -1], [socket = -1]}
422file	dev/ic/i82365.c			pcic
423
424# PCIC pcmcia contoller
425attach	pcic at isa with pcic_isa
426file	dev/isa/i82365_isa.c		pcic_isa
427file	dev/isa/i82365_isasubr.c	pcic_isa
428
429# PCIC pcmcia contoller
430attach	pcic at pci with pcic_pci
431file	dev/pci/i82365_pci.c		pcic_pci
432
433
434# this wants to be probed as late as possible.
435#
436# Machine-independent PCMCIA drivers
437#
438include "dev/pcmcia/files.pcmcia"
439