files.alpha revision 1.120
1# $NetBSD: files.alpha,v 1.120 2000/07/04 02:22:10 nisimura 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	dev/tc/tcds.c			tcds
197
198# 53C[F]90 SCSI
199device	asc: scsi, ncr53c9x
200attach	asc at tcds with asc_tcds
201file	dev/tc/asc_tcds.c		asc_tcds
202
203# TC and baseboard ioasic Lance ethernet are in files.tc
204
205#
206# ISA Bus support
207#
208
209include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
210include "dev/isa/files.isa"
211
212#
213# ISA Bus devices
214#
215
216file	arch/alpha/isa/isa_machdep.c	isa
217
218define	isadma_bounce
219file	arch/alpha/isa/isadma_bounce.c	isadma_bounce
220
221include "dev/pckbc/files.pckbc"
222
223# ISA speaker generates keyboard beep
224device isabeep
225attach isabeep at pcppi
226
227# Floppy disk controller
228device	fdc { drive = -1 }: isadma
229file	dev/isa/fd.c			fdc needs-flag
230
231attach	fdc at isa with fdc_isa
232file	dev/isa/fdc_isa.c		fdc_isa
233
234device	fd: disk
235attach	fd at fdc
236major	{ fd = 0 }
237
238# ISA Plug 'n Play devices
239file	arch/alpha/isa/isapnp_machdep.c	isapnp
240
241#
242# EISA Bus support
243#
244
245include "dev/eisa/files.eisa"
246
247device	jensenio {[port = -1]}: eisabus, isabus, isadma_bounce
248attach	jensenio at mainbus
249file	arch/alpha/jensenio/jensenio.c		 jensenio
250file	arch/alpha/jensenio/jensenio_bus_intio.c jensenio
251file	arch/alpha/jensenio/jensenio_bus_io.c	 jensenio
252file	arch/alpha/jensenio/jensenio_bus_mem.c	 jensenio
253file	arch/alpha/jensenio/jensenio_dma.c	 jensenio
254file	arch/alpha/jensenio/jensenio_intr.c	 jensenio
255
256attach	com at jensenio with com_jensenio
257file	arch/alpha/jensenio/com_jensenio.c	com_jensenio
258
259attach	lpt at jensenio with lpt_jensenio
260file	arch/alpha/jensenio/lpt_jensenio.c	lpt_jensenio
261
262attach	pckbc at jensenio with pckbc_jensenio
263file	arch/alpha/jensenio/pckbc_jensenio.c	pckbc_jensenio
264
265#
266# PCI Bus support
267#
268
269# include "dev/pci/files.pci" XXX SEE ABOVE
270
271file	arch/alpha/pci/pciide_machdep.c		pciide
272
273define	alpha_pci_sgmap_pte32
274file	arch/alpha/pci/pci_sgmap_pte32.c	alpha_pci_sgmap_pte32
275
276define	alpha_pci_sgmap_pte64
277file	arch/alpha/pci/pci_sgmap_pte64.c	alpha_pci_sgmap_pte64
278
279device	apecs: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
280attach	apecs at mainbus
281file	arch/alpha/pci/apecs.c		apecs
282file	arch/alpha/pci/apecs_bus_io.c	apecs
283file	arch/alpha/pci/apecs_bus_mem.c	apecs
284file	arch/alpha/pci/apecs_dma.c	apecs
285file	arch/alpha/pci/apecs_pci.c	apecs
286
287device	cia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
288attach	cia at mainbus
289file	arch/alpha/pci/cia.c		cia
290file	arch/alpha/pci/cia_dma.c	cia
291file	arch/alpha/pci/cia_pci.c	cia
292file	arch/alpha/pci/cia_bwx_bus_io.c cia
293file	arch/alpha/pci/cia_bwx_bus_mem.c cia
294file	arch/alpha/pci/cia_swiz_bus_io.c cia
295file	arch/alpha/pci/cia_swiz_bus_mem.c cia
296
297device	a12c { }: pcibus
298attach	a12c at mainbus
299file	arch/alpha/pci/a12c.c		a12c
300file	arch/alpha/pci/a12c_bus_mem.c	a12c
301file	arch/alpha/pci/a12c_dma.c	a12c
302file	arch/alpha/pci/a12c_pci.c	a12c
303
304device	dwlpx: pcibus, alpha_sgmap, alpha_pci_sgmap_pte32
305attach	dwlpx at kft
306file	arch/alpha/pci/dwlpx.c		dwlpx
307file	arch/alpha/pci/dwlpx_bus_io.c	dwlpx
308file	arch/alpha/pci/dwlpx_bus_mem.c	dwlpx
309file	arch/alpha/pci/dwlpx_dma.c	dwlpx
310file	arch/alpha/pci/dwlpx_pci.c	dwlpx
311
312device	irongate: pcibus, isadma_bounce
313attach	irongate at mainbus
314file	arch/alpha/pci/irongate.c		irongate
315file	arch/alpha/pci/irongate_bus_io.c	irongate
316file	arch/alpha/pci/irongate_bus_mem.c	irongate
317file	arch/alpha/pci/irongate_dma.c		irongate
318file	arch/alpha/pci/irongate_pci.c		irongate
319
320device	lca: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
321attach	lca at mainbus
322file	arch/alpha/pci/lca.c		lca
323file	arch/alpha/pci/lca_bus_io.c	lca
324file	arch/alpha/pci/lca_bus_mem.c	lca
325file	arch/alpha/pci/lca_dma.c	lca
326file	arch/alpha/pci/lca_pci.c	lca
327
328device	mcpcia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
329attach	mcpcia at mcbus
330file	arch/alpha/pci/mcpcia.c		mcpcia
331file	arch/alpha/pci/mcpcia_bus_io.c	mcpcia
332file	arch/alpha/pci/mcpcia_bus_mem.c	mcpcia
333file	arch/alpha/pci/mcpcia_dma.c	mcpcia
334file	arch/alpha/pci/mcpcia_pci.c	mcpcia
335
336device	tsc { }
337attach	tsc at mainbus
338file	arch/alpha/pci/tsc.c		dec_6600
339
340device	tsp: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
341attach	tsp at tsc
342file	arch/alpha/pci/tsp_dma.c	tsp
343file	arch/alpha/pci/tsp_pci.c	tsp
344file	arch/alpha/pci/tsp_bus_io.c	tsp
345file	arch/alpha/pci/tsp_bus_mem.c	tsp
346
347device	ttwoga { hose = -1 }
348attach	ttwoga at mainbus
349device	ttwopci: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
350attach	ttwopci at ttwoga
351file	arch/alpha/pci/ttwoga.c		ttwoga
352file	arch/alpha/pci/ttwoga_bus_io.c	ttwoga
353file	arch/alpha/pci/ttwoga_bus_mem.c	ttwoga
354file	arch/alpha/pci/ttwoga_dma.c	ttwoga
355file	arch/alpha/pci/ttwoga_pci.c	ttwoga
356
357#
358# Sable STDIO support
359#
360device	sableio { port = -1 }
361attach	sableio at pcibus
362file	arch/alpha/sableio/sableio.c		sableio
363
364attach	com at sableio with com_sableio
365file	arch/alpha/sableio/com_sableio.c	com_sableio
366
367attach	lpt at sableio with lpt_sableio
368file	arch/alpha/sableio/lpt_sableio.c	lpt_sableio
369
370attach	pckbc at sableio with pckbc_sableio
371file	arch/alpha/sableio/pckbc_sableio.c	pckbc_sableio
372
373#attach	fdc at sableio with fdc_sableio
374#file	arch/alpha/sableio/fdc_sableio.c	fdc_sableio
375
376# CPU support files
377file	arch/alpha/alpha/dec_2000_300.c	dec_2000_300
378file	arch/alpha/pci/pci_2100_a50.c	dec_2100_a50
379file	arch/alpha/pci/pci_2100_a500.c	dec_2100_a500 | dec_2100a_a500
380file	arch/alpha/pci/pci_up1000.c	api_up1000
381file	arch/alpha/pci/pci_a12.c	avalon_a12
382file	arch/alpha/pci/pci_alphabook1.c	dec_alphabook1
383file	arch/alpha/pci/pci_axppci_33.c	dec_axppci_33
384file	arch/alpha/pci/pci_eb164.c	dec_eb164
385file	arch/alpha/pci/pci_eb164_intr.s	dec_eb164
386file	arch/alpha/pci/pci_eb64plus.c	dec_eb64plus
387file	arch/alpha/pci/pci_eb64plus_intr.s dec_eb64plus
388file	arch/alpha/pci/pci_eb66.c	dec_eb66
389file	arch/alpha/pci/pci_eb66_intr.s	dec_eb66
390file	arch/alpha/pci/pci_kn20aa.c	dec_kn20aa
391file	arch/alpha/pci/pci_kn8ae.c	dec_kn8ae
392file	arch/alpha/pci/pci_kn300.c	dec_kn300
393file	arch/alpha/pci/pci_550.c	dec_550
394file	arch/alpha/pci/pci_1000a.c	dec_1000a
395file	arch/alpha/pci/pci_1000.c	dec_1000
396file	arch/alpha/pci/pci_6600.c	dec_6600
397
398
399#
400# PCI Bus devices
401#
402
403file	arch/alpha/pci/pci_machdep.c	pci
404
405device	sio: isabus, alpha_shared_intr, cy82c693
406attach	sio at pci
407device	pceb: isabus, eisabus, cy82c693
408attach	pceb at pci
409file	arch/alpha/pci/sio.c		sio | pceb	needs-flag
410file	arch/alpha/pci/sio_pic.c	sio | pceb
411
412
413#
414# A12 if_de hack
415#
416device	ade: ether, ifnet, arp
417attach	ade at pci
418file	arch/alpha/a12/if_ade.c		ade
419
420#
421# alpha/a12 platform-specific drivers
422#
423
424# Switch
425
426device	xb
427attach	xb at a12c
428file	arch/alpha/a12/if_xb.c	xb
429
430# Console
431
432device	a12dc
433attach	a12dc at a12c
434file	arch/alpha/a12/a12dc.c	a12dc		needs-flag
435
436#
437# Devices that can live on multiple busses
438#
439
440device	mcclock
441attach	mcclock at ioasic with mcclock_ioasic
442attach	mcclock at isa with mcclock_isa
443attach	mcclock at gbus with mcclock_tlsb
444attach	mcclock at jensenio with mcclock_jensenio
445file	arch/alpha/alpha/mcclock.c	mcclock
446file	arch/alpha/tc/mcclock_ioasic.c	mcclock_ioasic
447file	arch/alpha/isa/mcclock_isa.c	mcclock_isa
448file	arch/alpha/tlsb/mcclock_tlsb.c	mcclock_tlsb
449file	arch/alpha/jensenio/mcclock_jensenio.c	mcclock_jensenio
450
451
452#
453# Standard files
454#
455file	arch/alpha/alpha/autoconf.c
456file	arch/alpha/alpha/clock.c
457file	dev/clock_subr.c
458file	arch/alpha/alpha/conf.c
459file	arch/alpha/alpha/cpuconf.c
460file	arch/alpha/alpha/interrupt.c
461file	arch/alpha/alpha/ipifuncs.c		multiprocessor
462file	arch/alpha/alpha/machdep.c
463file	arch/alpha/alpha/mainbus.c
464file	arch/alpha/alpha/mem.c
465file	arch/alpha/alpha/pmap.c
466file	arch/alpha/alpha/process_machdep.c
467file	arch/alpha/alpha/prom.c
468file	arch/alpha/alpha/support.c
469file	arch/alpha/alpha/sys_machdep.c
470file	arch/alpha/alpha/trap.c
471file	arch/alpha/alpha/vm_machdep.c
472file	arch/alpha/alpha/disksubr.c
473file	arch/alpha/common/bus_dma.c
474file	arch/alpha/common/comlogout.c
475file	dev/cons.c
476
477# Network protocol checksum routines
478file	arch/alpha/alpha/in_cksum.c		inet
479file	netinet/in4_cksum.c			inet
480file	netns/ns_cksum.c			ns
481
482# PROM console support (for ports that don't have native console support)
483file	arch/alpha/alpha/promcons.c
484
485# CPU support
486file	arch/alpha/alpha/dec_2100_a50.c		dec_2100_a50
487file	arch/alpha/alpha/dec_2100_a500.c	dec_2100_a500 | dec_2100a_a500
488file	arch/alpha/alpha/dec_3000_300.c		dec_3000_300
489file	arch/alpha/alpha/dec_3000_500.c		dec_3000_500
490file	arch/alpha/alpha/dec_550.c		dec_550
491file	arch/alpha/alpha/dec_alphabook1.c	dec_alphabook1
492file	arch/alpha/alpha/dec_axppci_33.c	dec_axppci_33
493file	arch/alpha/alpha/dec_eb164.c		dec_eb164
494file	arch/alpha/alpha/dec_eb64plus.c		dec_eb64plus
495file	arch/alpha/alpha/dec_eb66.c		dec_eb66
496file	arch/alpha/alpha/dec_kn20aa.c		dec_kn20aa
497file	arch/alpha/alpha/dec_kn8ae.c		dec_kn8ae
498file	arch/alpha/alpha/dec_kn300.c		dec_kn300
499file	arch/alpha/alpha/api_up1000.c		api_up1000
500file	arch/alpha/alpha/avalon_a12.c		avalon_a12
501file	arch/alpha/alpha/dec_1000a.c		dec_1000 | dec_1000a
502file	arch/alpha/alpha/dec_6600.c		dec_6600
503
504# Kernel debugger support
505file	arch/alpha/alpha/db_disasm.c		ddb
506file	arch/alpha/alpha/db_interface.c		ddb
507file	arch/alpha/alpha/db_trace.c		ddb
508
509# Binary compatibility with previous NetBSD releases (COMPAT_XX)
510file	arch/alpha/alpha/compat_13_machdep.c	compat_13
511
512# OSF/1 Binary Compatibility (COMPAT_OSF1)
513include "compat/osf1/files.osf1"
514file	arch/alpha/alpha/osf1_locore.s		compat_osf1
515
516# Linux Binary Compatibility (COMPAT_LINUX)
517include "compat/linux/files.linux"
518include "compat/linux/arch/alpha/files.linux_alpha"
519
520# OSS audio driver compatibility
521include "compat/ossaudio/files.ossaudio"
522
523# XXXX pcic here because it needs to be late.  The catch: pcic needs
524# to be late, so devices which attach to it are attached late.  But it
525# needs to be before its isa and pci attachments.  This answer is
526# non-optimal, but I don't have a better answer right now.
527
528# PCIC pcmcia contoller
529# XXX this needs to be done very late, so it's done here.  This feels
530# like a kludge, but it might be for the best.
531
532defopt	PCIC_ISA_ALLOC_IOBASE
533defopt	PCIC_ISA_ALLOC_IOSIZE
534defopt	PCIC_ISA_INTR_ALLOC_MASK
535
536device	pcic: pcmciabus
537file	dev/ic/i82365.c			pcic
538
539# PCIC pcmcia controller on ISA bus.
540attach	pcic at isa with pcic_isa
541file	dev/isa/i82365_isa.c		pcic_isa
542
543# PCIC pcmcia controller on PCI bus.
544attach	pcic at pci with pcic_pci
545file	dev/pci/i82365_pci.c		pcic_pci
546
547# PCIC pcmcia controller on PnP board
548attach pcic at isapnp with pcic_isapnp
549file	dev/isapnp/i82365_isapnp.c	pcic_isapnp
550
551# Code common to ISA and ISAPnP attachments
552file	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
553
554
555# this wants to be probed as late as possible.
556#
557# Machine-independent PCMCIA drivers
558#
559include "dev/pcmcia/files.pcmcia"
560#
561# Machine-independent USB device support
562#
563include "dev/usb/files.usb"
564