files.alpha revision 1.119
1# $NetBSD: files.alpha,v 1.119 2000/06/25 17:21:57 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_2100_A500	# Sable etc:	AlphaServer 2100
14defopt	DEC_2100A_A500	# Lynx etc:	AlphaServer 2100A
15defopt	DEC_3000_300	# Pelican etc:	3000/300*
16defopt	DEC_3000_500	# Flamingo etc:	3000/[4-9]00*
17defopt	DEC_550		# Miata:	Personal Workstation (550)
18defopt	DEC_AXPPCI_33	# NoName:	AXPpci33, etc.
19defopt	DEC_EB164	# EB164:	AlphaPC 164
20defopt	DEC_EB64PLUS	# EB64+:	AlphaPC 64, etc.
21defopt	DEC_KN20AA	# KN20AA:	AlphaStation 500 and 600
22defopt	DEC_KN8AE	# KN8AE:	AlphaServer 8200 and 8400
23defopt	DEC_KN300	# KN300:	AlphaServer 4X00
24defopt	AVALON_A12	# Avalon:	A12T1, A12M Parallel Supercomputer
25defopt	DEC_1000	# Mikasa etc:	AlphaServer 1000
26defopt	DEC_1000A	# Corelle etc:	AlphaServer 800 and 1000A
27defopt	DEC_ALPHABOOK1	# AlphaBook1:	Tadpole/DEC AlphaBook
28defopt	DEC_EB66	# EB66:		21066 Evaluation Board
29defopt	DEC_6600	# EV6		Various EV6 Systems
30defopt	API_UP1000	# EV6		Alpha Processor, Inc. UP1000
31
32# Miscellaneous CPU-specific option headers
33defopt	FIX_UNALIGNED_VAX_FP
34defopt	ZS_IOASIC_DMA
35
36# XXX Temporary, until integration is finished.
37defopt	NEW_SCC_DRIVER
38
39# realtime clock compatible to OSF/1
40defopt	CLOCK_COMPAT_OSF1
41
42# this loses, but there's no way to define attributes which have attributes
43define	alpha_shared_intr
44file	arch/alpha/common/shared_intr.c	alpha_shared_intr | dec_eb164 |
45					dec_eb64plus | dec_kn20aa | dec_kn8ae |
46					dec_kn300 | dec_550 | dec_1000 |
47					dec_1000a | dec_eb66 | dec_6600
48define	alpha_sgmap
49file	arch/alpha/common/sgmap_common.c alpha_sgmap | dec_3000_500
50
51#
52# Bus-independent devices
53#
54
55device	mainbus { }			# no locators (yet?)
56attach	mainbus at root
57
58device	cpu { }				# not really optional
59attach	cpu at mainbus
60file	arch/alpha/alpha/cpu.c		cpu
61
62#
63# Machine-independent MII/PHY drivers.
64#
65
66include "dev/mii/files.mii"
67
68#
69# Machine-independent SCSI drivers
70#
71
72include "dev/scsipi/files.scsipi"
73major { cd = 3 }
74major { sd = 8 }
75
76#
77# Machine-independent ATA drivers
78#
79
80include "dev/ata/files.ata"
81major { wd = 4 }
82
83# Memory Disk
84file	arch/alpha/alpha/md_root.c	memory_disk_hooks
85major { md = 6 }
86
87# RAIDframe 
88major { raid = 16 }
89
90# Raster operations
91include "dev/rasops/files.rasops"
92include "dev/wsfont/files.wsfont"
93
94#
95# "Workstation Console" glue.
96#
97include "dev/wscons/files.wscons"
98
99
100#
101# TurboLaser Bus Support
102#
103
104device	tlsb { node = -1, offset = -1 }
105attach	tlsb at mainbus
106file	arch/alpha/tlsb/tlsb.c		tlsb & dec_kn8ae
107
108device	kft { }
109attach	kft at tlsb
110file	arch/alpha/tlsb/kftxx.c		kft
111
112device	tlsbmem
113attach	tlsbmem at tlsb
114file	arch/alpha/tlsb/tlsbmem.c	tlsbmem
115
116device	gbus { offset = -1 }
117attach	gbus at tlsb
118file	arch/alpha/tlsb/gbus.c		gbus
119
120#
121# MCBUS support
122#
123
124device	mcbus { mid = -1 }
125attach	mcbus at mainbus
126file	arch/alpha/mcbus/mcbus.c	mcbus & dec_kn300
127
128device	mcmem
129attach	mcmem at mcbus
130file	arch/alpha/mcbus/mcmem.c	mcmem
131
132#
133# Bus-independent support for DEC devices
134#
135include "dev/dec/files.dec"
136
137#
138# TURBOchannel Devices
139#
140include "dev/tc/files.tc"
141
142# TC attachment is MD
143attach	tc at tcbus
144
145device	tcasic: tcbus
146attach	tcasic at mainbus
147file	arch/alpha/tc/tcasic.c		tcasic
148file	arch/alpha/tc/tc_bus_mem.c	tcasic
149file	arch/alpha/tc/tc_dma.c		tcasic
150file	arch/alpha/tc/tc_dma_3000_300.c	tcasic & dec_3000_300
151file	arch/alpha/tc/tc_dma_3000_500.c	tcasic & dec_3000_500
152file	arch/alpha/tc/tc_sgmap.c	tcasic & dec_3000_500
153file	arch/alpha/tc/tc_3000_500.c	tcasic & dec_3000_500
154file	arch/alpha/tc/tc_3000_300.c	tcasic & dec_3000_300
155
156# the TURBOchannel IOCTL ASIC
157#  IOASIC device and attachment defined in sys/dev/tc/files.tc
158file	arch/alpha/tc/ioasic.c		ioasic
159
160# Color Frame buffer
161device	cfb: wsemuldisplaydev, wsrasteremulops
162attach	cfb at tc
163file	arch/alpha/tc/cfb.c		cfb		needs-flag
164
165# Smart Frame buffer
166device	sfb: wsemuldisplaydev, rasops8
167attach	sfb at tc
168file	dev/tc/sfb.c			sfb		needs-flag
169
170# 8530 UARTs
171device	scc: tty
172attach	scc at ioasic
173file	arch/alpha/tc/scc.c		scc		needs-count
174
175# 8530 UARTs using the MI 8530 driver   
176device	zsc { channel = -1 }
177attach	zsc at ioasic with zsc_ioasic
178file	arch/alpha/tc/zs_ioasic.c	zsc_ioasic	needs-flag
179file	dev/ic/z8530sc.c		zsc
180
181device	zstty: tty
182attach	zstty at zsc
183file	dev/ic/z8530tty.c		zstty		needs-flag
184
185device	vsms: wsmousedev
186attach	vsms at zsc with zsms
187file	dev/dec/zsms.c			zsms
188
189device	lkkbd: wskbddev
190attach	lkkbd at zsc with zskbd
191file	dev/dec/zskbd.c			zskbd		needs-flag
192
193# the TCDS ASIC
194device	tcds { chip = -1 }
195attach	tcds at tc
196file	arch/alpha/tc/tcds.c		tcds
197
198# 53C[F]90 SCSI
199device	asc: scsi, ncr53c9x
200attach	asc at tcds with asc_tcds
201file	arch/alpha/tc/asc.c		asc
202file	arch/alpha/tc/tcds_dma.c	asc
203
204# TC and baseboard ioasic Lance ethernet are in files.tc
205
206#
207# ISA Bus support
208#
209
210include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
211include "dev/isa/files.isa"
212
213#
214# ISA Bus devices
215#
216
217file	arch/alpha/isa/isa_machdep.c	isa
218
219define	isadma_bounce
220file	arch/alpha/isa/isadma_bounce.c	isadma_bounce
221
222include "dev/pckbc/files.pckbc"
223
224# ISA speaker generates keyboard beep
225device isabeep
226attach isabeep at pcppi
227
228# Floppy disk controller
229device	fdc { drive = -1 }: isadma
230file	dev/isa/fd.c			fdc needs-flag
231
232attach	fdc at isa with fdc_isa
233file	dev/isa/fdc_isa.c		fdc_isa
234
235device	fd: disk
236attach	fd at fdc
237major	{ fd = 0 }
238
239# ISA Plug 'n Play devices
240file	arch/alpha/isa/isapnp_machdep.c	isapnp
241
242#
243# EISA Bus support
244#
245
246include "dev/eisa/files.eisa"
247
248device	jensenio {[port = -1]}: eisabus, isabus, isadma_bounce
249attach	jensenio at mainbus
250file	arch/alpha/jensenio/jensenio.c		 jensenio
251file	arch/alpha/jensenio/jensenio_bus_intio.c jensenio
252file	arch/alpha/jensenio/jensenio_bus_io.c	 jensenio
253file	arch/alpha/jensenio/jensenio_bus_mem.c	 jensenio
254file	arch/alpha/jensenio/jensenio_dma.c	 jensenio
255file	arch/alpha/jensenio/jensenio_intr.c	 jensenio
256
257attach	com at jensenio with com_jensenio
258file	arch/alpha/jensenio/com_jensenio.c	com_jensenio
259
260attach	lpt at jensenio with lpt_jensenio
261file	arch/alpha/jensenio/lpt_jensenio.c	lpt_jensenio
262
263attach	pckbc at jensenio with pckbc_jensenio
264file	arch/alpha/jensenio/pckbc_jensenio.c	pckbc_jensenio
265
266#
267# PCI Bus support
268#
269
270# include "dev/pci/files.pci" XXX SEE ABOVE
271
272file	arch/alpha/pci/pciide_machdep.c		pciide
273
274define	alpha_pci_sgmap_pte32
275file	arch/alpha/pci/pci_sgmap_pte32.c	alpha_pci_sgmap_pte32
276
277define	alpha_pci_sgmap_pte64
278file	arch/alpha/pci/pci_sgmap_pte64.c	alpha_pci_sgmap_pte64
279
280device	apecs: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
281attach	apecs at mainbus
282file	arch/alpha/pci/apecs.c		apecs
283file	arch/alpha/pci/apecs_bus_io.c	apecs
284file	arch/alpha/pci/apecs_bus_mem.c	apecs
285file	arch/alpha/pci/apecs_dma.c	apecs
286file	arch/alpha/pci/apecs_pci.c	apecs
287
288device	cia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
289attach	cia at mainbus
290file	arch/alpha/pci/cia.c		cia
291file	arch/alpha/pci/cia_dma.c	cia
292file	arch/alpha/pci/cia_pci.c	cia
293file	arch/alpha/pci/cia_bwx_bus_io.c cia
294file	arch/alpha/pci/cia_bwx_bus_mem.c cia
295file	arch/alpha/pci/cia_swiz_bus_io.c cia
296file	arch/alpha/pci/cia_swiz_bus_mem.c cia
297
298device	a12c { }: pcibus
299attach	a12c at mainbus
300file	arch/alpha/pci/a12c.c		a12c
301file	arch/alpha/pci/a12c_bus_mem.c	a12c
302file	arch/alpha/pci/a12c_dma.c	a12c
303file	arch/alpha/pci/a12c_pci.c	a12c
304
305device	dwlpx: pcibus, alpha_sgmap, alpha_pci_sgmap_pte32
306attach	dwlpx at kft
307file	arch/alpha/pci/dwlpx.c		dwlpx
308file	arch/alpha/pci/dwlpx_bus_io.c	dwlpx
309file	arch/alpha/pci/dwlpx_bus_mem.c	dwlpx
310file	arch/alpha/pci/dwlpx_dma.c	dwlpx
311file	arch/alpha/pci/dwlpx_pci.c	dwlpx
312
313device	irongate: pcibus, isadma_bounce
314attach	irongate at mainbus
315file	arch/alpha/pci/irongate.c		irongate
316file	arch/alpha/pci/irongate_bus_io.c	irongate
317file	arch/alpha/pci/irongate_bus_mem.c	irongate
318file	arch/alpha/pci/irongate_dma.c		irongate
319file	arch/alpha/pci/irongate_pci.c		irongate
320
321device	lca: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
322attach	lca at mainbus
323file	arch/alpha/pci/lca.c		lca
324file	arch/alpha/pci/lca_bus_io.c	lca
325file	arch/alpha/pci/lca_bus_mem.c	lca
326file	arch/alpha/pci/lca_dma.c	lca
327file	arch/alpha/pci/lca_pci.c	lca
328
329device	mcpcia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
330attach	mcpcia at mcbus
331file	arch/alpha/pci/mcpcia.c		mcpcia
332file	arch/alpha/pci/mcpcia_bus_io.c	mcpcia
333file	arch/alpha/pci/mcpcia_bus_mem.c	mcpcia
334file	arch/alpha/pci/mcpcia_dma.c	mcpcia
335file	arch/alpha/pci/mcpcia_pci.c	mcpcia
336
337device	tsc { }
338attach	tsc at mainbus
339file	arch/alpha/pci/tsc.c		dec_6600
340
341device	tsp: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
342attach	tsp at tsc
343file	arch/alpha/pci/tsp_dma.c	tsp
344file	arch/alpha/pci/tsp_pci.c	tsp
345file	arch/alpha/pci/tsp_bus_io.c	tsp
346file	arch/alpha/pci/tsp_bus_mem.c	tsp
347
348device	ttwoga { hose = -1 }
349attach	ttwoga at mainbus
350device	ttwopci: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
351attach	ttwopci at ttwoga
352file	arch/alpha/pci/ttwoga.c		ttwoga
353file	arch/alpha/pci/ttwoga_bus_io.c	ttwoga
354file	arch/alpha/pci/ttwoga_bus_mem.c	ttwoga
355file	arch/alpha/pci/ttwoga_dma.c	ttwoga
356file	arch/alpha/pci/ttwoga_pci.c	ttwoga
357
358#
359# Sable STDIO support
360#
361device	sableio { port = -1 }
362attach	sableio at pcibus
363file	arch/alpha/sableio/sableio.c		sableio
364
365attach	com at sableio with com_sableio
366file	arch/alpha/sableio/com_sableio.c	com_sableio
367
368attach	lpt at sableio with lpt_sableio
369file	arch/alpha/sableio/lpt_sableio.c	lpt_sableio
370
371attach	pckbc at sableio with pckbc_sableio
372file	arch/alpha/sableio/pckbc_sableio.c	pckbc_sableio
373
374#attach	fdc at sableio with fdc_sableio
375#file	arch/alpha/sableio/fdc_sableio.c	fdc_sableio
376
377# CPU support files
378file	arch/alpha/alpha/dec_2000_300.c	dec_2000_300
379file	arch/alpha/pci/pci_2100_a50.c	dec_2100_a50
380file	arch/alpha/pci/pci_2100_a500.c	dec_2100_a500 | dec_2100a_a500
381file	arch/alpha/pci/pci_up1000.c	api_up1000
382file	arch/alpha/pci/pci_a12.c	avalon_a12
383file	arch/alpha/pci/pci_alphabook1.c	dec_alphabook1
384file	arch/alpha/pci/pci_axppci_33.c	dec_axppci_33
385file	arch/alpha/pci/pci_eb164.c	dec_eb164
386file	arch/alpha/pci/pci_eb164_intr.s	dec_eb164
387file	arch/alpha/pci/pci_eb64plus.c	dec_eb64plus
388file	arch/alpha/pci/pci_eb64plus_intr.s dec_eb64plus
389file	arch/alpha/pci/pci_eb66.c	dec_eb66
390file	arch/alpha/pci/pci_eb66_intr.s	dec_eb66
391file	arch/alpha/pci/pci_kn20aa.c	dec_kn20aa
392file	arch/alpha/pci/pci_kn8ae.c	dec_kn8ae
393file	arch/alpha/pci/pci_kn300.c	dec_kn300
394file	arch/alpha/pci/pci_550.c	dec_550
395file	arch/alpha/pci/pci_1000a.c	dec_1000a
396file	arch/alpha/pci/pci_1000.c	dec_1000
397file	arch/alpha/pci/pci_6600.c	dec_6600
398
399
400#
401# PCI Bus devices
402#
403
404file	arch/alpha/pci/pci_machdep.c	pci
405
406device	sio: isabus, alpha_shared_intr, cy82c693
407attach	sio at pci
408device	pceb: isabus, eisabus, cy82c693
409attach	pceb at pci
410file	arch/alpha/pci/sio.c		sio | pceb	needs-flag
411file	arch/alpha/pci/sio_pic.c	sio | pceb
412
413
414#
415# A12 if_de hack
416#
417device	ade: ether, ifnet, arp
418attach	ade at pci
419file	arch/alpha/a12/if_ade.c		ade
420
421#
422# alpha/a12 platform-specific drivers
423#
424
425# Switch
426
427device	xb
428attach	xb at a12c
429file	arch/alpha/a12/if_xb.c	xb
430
431# Console
432
433device	a12dc
434attach	a12dc at a12c
435file	arch/alpha/a12/a12dc.c	a12dc		needs-flag
436
437#
438# Devices that can live on multiple busses
439#
440
441device	mcclock
442attach	mcclock at ioasic with mcclock_ioasic
443attach	mcclock at isa with mcclock_isa
444attach	mcclock at gbus with mcclock_tlsb
445attach	mcclock at jensenio with mcclock_jensenio
446file	arch/alpha/alpha/mcclock.c	mcclock
447file	arch/alpha/tc/mcclock_ioasic.c	mcclock_ioasic
448file	arch/alpha/isa/mcclock_isa.c	mcclock_isa
449file	arch/alpha/tlsb/mcclock_tlsb.c	mcclock_tlsb
450file	arch/alpha/jensenio/mcclock_jensenio.c	mcclock_jensenio
451
452
453#
454# Standard files
455#
456file	arch/alpha/alpha/autoconf.c
457file	arch/alpha/alpha/clock.c
458file	dev/clock_subr.c
459file	arch/alpha/alpha/conf.c
460file	arch/alpha/alpha/cpuconf.c
461file	arch/alpha/alpha/interrupt.c
462file	arch/alpha/alpha/ipifuncs.c		multiprocessor
463file	arch/alpha/alpha/machdep.c
464file	arch/alpha/alpha/mainbus.c
465file	arch/alpha/alpha/mem.c
466file	arch/alpha/alpha/pmap.c
467file	arch/alpha/alpha/process_machdep.c
468file	arch/alpha/alpha/prom.c
469file	arch/alpha/alpha/support.c
470file	arch/alpha/alpha/sys_machdep.c
471file	arch/alpha/alpha/trap.c
472file	arch/alpha/alpha/vm_machdep.c
473file	arch/alpha/alpha/disksubr.c
474file	arch/alpha/common/bus_dma.c
475file	arch/alpha/common/comlogout.c
476file	dev/cons.c
477
478# Network protocol checksum routines
479file	arch/alpha/alpha/in_cksum.c		inet
480file	netinet/in4_cksum.c			inet
481file	netns/ns_cksum.c			ns
482
483# PROM console support (for ports that don't have native console support)
484file	arch/alpha/alpha/promcons.c
485
486# CPU support
487file	arch/alpha/alpha/dec_2100_a50.c		dec_2100_a50
488file	arch/alpha/alpha/dec_2100_a500.c	dec_2100_a500 | dec_2100a_a500
489file	arch/alpha/alpha/dec_3000_300.c		dec_3000_300
490file	arch/alpha/alpha/dec_3000_500.c		dec_3000_500
491file	arch/alpha/alpha/dec_550.c		dec_550
492file	arch/alpha/alpha/dec_alphabook1.c	dec_alphabook1
493file	arch/alpha/alpha/dec_axppci_33.c	dec_axppci_33
494file	arch/alpha/alpha/dec_eb164.c		dec_eb164
495file	arch/alpha/alpha/dec_eb64plus.c		dec_eb64plus
496file	arch/alpha/alpha/dec_eb66.c		dec_eb66
497file	arch/alpha/alpha/dec_kn20aa.c		dec_kn20aa
498file	arch/alpha/alpha/dec_kn8ae.c		dec_kn8ae
499file	arch/alpha/alpha/dec_kn300.c		dec_kn300
500file	arch/alpha/alpha/api_up1000.c		api_up1000
501file	arch/alpha/alpha/avalon_a12.c		avalon_a12
502file	arch/alpha/alpha/dec_1000a.c		dec_1000 | dec_1000a
503file	arch/alpha/alpha/dec_6600.c		dec_6600
504
505# Kernel debugger support
506file	arch/alpha/alpha/db_disasm.c		ddb
507file	arch/alpha/alpha/db_interface.c		ddb
508file	arch/alpha/alpha/db_trace.c		ddb
509
510# Binary compatibility with previous NetBSD releases (COMPAT_XX)
511file	arch/alpha/alpha/compat_13_machdep.c	compat_13
512
513# OSF/1 Binary Compatibility (COMPAT_OSF1)
514include "compat/osf1/files.osf1"
515file	arch/alpha/alpha/osf1_locore.s		compat_osf1
516
517# Linux Binary Compatibility (COMPAT_LINUX)
518include "compat/linux/files.linux"
519include "compat/linux/arch/alpha/files.linux_alpha"
520
521# OSS audio driver compatibility
522include "compat/ossaudio/files.ossaudio"
523
524# XXXX pcic here because it needs to be late.  The catch: pcic needs
525# to be late, so devices which attach to it are attached late.  But it
526# needs to be before its isa and pci attachments.  This answer is
527# non-optimal, but I don't have a better answer right now.
528
529# PCIC pcmcia contoller
530# XXX this needs to be done very late, so it's done here.  This feels
531# like a kludge, but it might be for the best.
532
533defopt	PCIC_ISA_ALLOC_IOBASE
534defopt	PCIC_ISA_ALLOC_IOSIZE
535defopt	PCIC_ISA_INTR_ALLOC_MASK
536
537device	pcic: pcmciabus
538file	dev/ic/i82365.c			pcic
539
540# PCIC pcmcia controller on ISA bus.
541attach	pcic at isa with pcic_isa
542file	dev/isa/i82365_isa.c		pcic_isa
543
544# PCIC pcmcia controller on PCI bus.
545attach	pcic at pci with pcic_pci
546file	dev/pci/i82365_pci.c		pcic_pci
547
548# PCIC pcmcia controller on PnP board
549attach pcic at isapnp with pcic_isapnp
550file	dev/isapnp/i82365_isapnp.c	pcic_isapnp
551
552# Code common to ISA and ISAPnP attachments
553file	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
554
555
556# this wants to be probed as late as possible.
557#
558# Machine-independent PCMCIA drivers
559#
560include "dev/pcmcia/files.pcmcia"
561#
562# Machine-independent USB device support
563#
564include "dev/usb/files.usb"
565