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