files.alpha revision 1.195
1# $NetBSD: files.alpha,v 1.195 2024/03/02 19:57: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
11defflag		DEC_2000_300	# "Jensen":	2000/300 (DECpc AXP 150)
12defflag		DEC_2100_A50	# Avanti etc:	AlphaStation 400, 200, etc.
13defflag		DEC_2100_A500	# Sable etc:	AlphaServer 2100
14defflag		DEC_2100A_A500	# Lynx etc:	AlphaServer 2100A
15defflag		DEC_3000_300	# Pelican etc:	3000/300*
16defflag		DEC_3000_500	# Flamingo etc:	3000/[4-9]00*
17defflag		DEC_550		# Miata:	Personal Workstation (550)
18defflag		DEC_AXPPCI_33	# NoName:	AXPpci33, etc.
19defflag		DEC_EB164	# EB164:	AlphaPC 164
20defflag		DEC_EB64PLUS	# EB64+:	AlphaPC 64, etc.
21defflag		DEC_KN20AA	# KN20AA:	AlphaStation 500 and 600
22defflag		DEC_KN8AE	# KN8AE:	AlphaServer 8200 and 8400
23defflag		DEC_KN300	# KN300:	AlphaServer 4X00
24defflag		DEC_1000	# Mikasa etc:	AlphaServer 1000
25defflag		DEC_1000A	# Corelle etc:	AlphaServer 800 and 1000A
26defflag		DEC_ALPHABOOK1	# AlphaBook1:	Tadpole/DEC AlphaBook
27defflag		DEC_EB66	# EB66:		21066 Evaluation Board
28defflag		DEC_6600	# EV6		Various EV6 Systems
29defflag		API_UP1000	# EV6		Alpha Processor, Inc. UP1000
30
31# Miscellaneous CPU-specific option headers
32defflag		FIX_UNALIGNED_VAX_FP
33defflag		ZS_IOASIC_DMA
34
35# realtime clock compatible to OSF/1
36defflag		CLOCK_COMPAT_OSF1
37
38# this loses, but there's no way to define attributes which have attributes
39define	alpha_shared_intr
40file	arch/alpha/common/shared_intr.c	alpha_shared_intr | dec_eb164 |
41					dec_eb64plus | dec_kn20aa | dec_kn8ae |
42					dec_kn300 | dec_550 | dec_1000 |
43					dec_1000a | dec_eb66 | dec_6600
44define	alpha_sgmap
45file	arch/alpha/common/sgmap_common.c alpha_sgmap | dec_3000_500
46
47#
48# Bus-independent devices
49#
50
51device	mainbus { }			# no locators (yet?)
52attach	mainbus at root
53
54device	cpu { }				# not really optional
55attach	cpu at mainbus
56file	arch/alpha/alpha/cpu.c		cpu
57
58device	qemu
59attach	qemu at mainbus
60file	arch/alpha/alpha/qemu.c		qemu
61
62#
63# Machine-independent I2O drivers.
64#
65
66include "dev/i2o/files.i2o"
67
68#
69# Machine-independent SCSI drivers
70#
71
72include "dev/scsipi/files.scsipi"
73
74#
75# Machine-independent ATA drivers
76#
77
78include "dev/ata/files.ata"
79
80# Memory Disk
81file	dev/md_root.c			memory_disk_hooks
82
83#
84# TurboLaser Bus Support
85#
86
87device	tlsb { node = -1, offset = -1 }
88attach	tlsb at mainbus
89file	arch/alpha/tlsb/tlsb.c		tlsb & dec_kn8ae
90
91device	kft { }
92attach	kft at tlsb
93file	arch/alpha/tlsb/kftxx.c		kft
94
95device	tlsbmem
96attach	tlsbmem at tlsb
97file	arch/alpha/tlsb/tlsbmem.c	tlsbmem
98
99#
100# GBus support
101#
102
103device	gbus { offset = -1 }
104attach	gbus at tlsb
105file	arch/alpha/gbus/gbus.c		gbus
106
107#
108# MCBUS support
109#
110
111device	mcbus { mid = -1 }
112attach	mcbus at mainbus
113file	arch/alpha/mcbus/mcbus.c	mcbus & dec_kn300
114
115device	mcmem
116attach	mcmem at mcbus
117file	arch/alpha/mcbus/mcmem.c	mcmem
118
119#
120# Bus-independent support for DEC devices
121#
122include "dev/dec/files.dec"
123
124#
125# TURBOchannel Devices
126#
127include "dev/tc/files.tc"
128
129# TC attachment is MD
130define	tcbus	{ }			# TURBOchannel attachment
131attach	tc at tcbus
132
133device	tcasic: tcbus
134attach	tcasic at mainbus
135file	arch/alpha/tc/tcasic.c		tcasic
136file	arch/alpha/tc/tc_bus_mem.c	tcasic
137file	arch/alpha/tc/tc_dma.c		tcasic
138file	arch/alpha/tc/tc_dma_3000_300.c	tcasic & dec_3000_300
139file	arch/alpha/tc/tc_dma_3000_500.c	tcasic & dec_3000_500
140file	arch/alpha/tc/tc_sgmap.c	tcasic & dec_3000_500
141file	arch/alpha/tc/tc_3000_500.c	tcasic & dec_3000_500
142file	arch/alpha/tc/tc_3000_300.c	tcasic & dec_3000_300
143
144# the TURBOchannel IOCTL ASIC
145#  IOASIC device and attachment defined in sys/dev/tc/files.tc
146file	arch/alpha/tc/ioasic.c		ioasic
147
148# TC and baseboard ioasic Lance ethernet are in files.tc
149
150#
151# ISA Bus support
152#
153
154include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
155include "dev/pci/files.agp"
156include "dev/isa/files.isa"
157
158#
159# ISA Bus devices
160#
161
162file	arch/alpha/isa/isa_machdep.c	isa
163
164define	isadma_bounce
165file	arch/alpha/isa/isadma_bounce.c	isadma_bounce
166
167include "dev/pckbport/files.pckbport"
168
169# ISA speaker generates keyboard beep
170device isabeep
171attach isabeep at pcppi
172
173# Floppy disk controller
174device	fdc { drive = -1 }: isadma
175file	dev/isa/fd.c			fdc needs-flag
176
177attach	fdc at isa with fdc_isa
178file	dev/isa/fdc_isa.c		fdc_isa
179
180device	fd: disk
181attach	fd at fdc
182
183# ISA Plug 'n Play devices
184file	arch/alpha/isa/isapnp_machdep.c	isapnp
185
186#
187# EISA Bus support
188#
189
190include "dev/eisa/files.eisa"
191
192file	arch/alpha/eisa/eisa_machdep.c	eisa
193
194device	jensenio {[port = -1]}: eisabus, isabus, isadma_bounce
195attach	jensenio at mainbus
196file	arch/alpha/jensenio/jensenio.c		 jensenio
197file	arch/alpha/jensenio/jensenio_bus_intio.c jensenio
198file	arch/alpha/jensenio/jensenio_bus_io.c	 jensenio
199file	arch/alpha/jensenio/jensenio_bus_mem.c	 jensenio
200file	arch/alpha/jensenio/jensenio_dma.c	 jensenio
201file	arch/alpha/jensenio/jensenio_intr.c	 jensenio
202
203attach	com at jensenio with com_jensenio
204file	arch/alpha/jensenio/com_jensenio.c	com_jensenio
205
206attach	lpt at jensenio with lpt_jensenio
207file	arch/alpha/jensenio/lpt_jensenio.c	lpt_jensenio
208
209attach	pckbc at jensenio with pckbc_jensenio
210file	arch/alpha/jensenio/pckbc_jensenio.c	pckbc_jensenio
211
212#
213# PCI Bus support
214#
215
216# include "dev/pci/files.pci" XXX SEE ABOVE
217
218file	arch/alpha/pci/pciide_machdep.c		pciide_common
219
220define	alpha_pci_sgmap_pte32
221file	arch/alpha/pci/pci_sgmap_pte32.c	alpha_pci_sgmap_pte32
222
223define	alpha_pci_sgmap_pte64
224file	arch/alpha/pci/pci_sgmap_pte64.c	alpha_pci_sgmap_pte64
225
226device	apecs: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
227attach	apecs at mainbus
228file	arch/alpha/pci/apecs.c		apecs
229file	arch/alpha/pci/apecs_bus_io.c	apecs
230file	arch/alpha/pci/apecs_bus_mem.c	apecs
231file	arch/alpha/pci/apecs_dma.c	apecs
232file	arch/alpha/pci/apecs_pci.c	apecs
233
234device	cia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
235attach	cia at mainbus
236file	arch/alpha/pci/cia.c		cia
237file	arch/alpha/pci/cia_dma.c	cia
238file	arch/alpha/pci/cia_pci.c	cia
239file	arch/alpha/pci/cia_bwx_bus_io.c cia
240file	arch/alpha/pci/cia_bwx_bus_mem.c cia
241file	arch/alpha/pci/cia_swiz_bus_io.c cia
242file	arch/alpha/pci/cia_swiz_bus_mem.c cia
243
244device	dwlpx: pcibus, alpha_sgmap, alpha_pci_sgmap_pte32
245attach	dwlpx at kft
246file	arch/alpha/pci/dwlpx.c		dwlpx
247file	arch/alpha/pci/dwlpx_bus_io.c	dwlpx
248file	arch/alpha/pci/dwlpx_bus_mem.c	dwlpx
249file	arch/alpha/pci/dwlpx_dma.c	dwlpx
250file	arch/alpha/pci/dwlpx_pci.c	dwlpx
251
252device	irongate: pcibus, agpbus, isadma_bounce
253attach	irongate at mainbus
254file	arch/alpha/pci/irongate.c		irongate
255file	arch/alpha/pci/irongate_bus_io.c	irongate
256file	arch/alpha/pci/irongate_bus_mem.c	irongate
257file	arch/alpha/pci/irongate_dma.c		irongate
258file	arch/alpha/pci/irongate_pci.c		irongate
259
260device	lca: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
261attach	lca at mainbus
262file	arch/alpha/pci/lca.c		lca
263file	arch/alpha/pci/lca_bus_io.c	lca
264file	arch/alpha/pci/lca_bus_mem.c	lca
265file	arch/alpha/pci/lca_dma.c	lca
266file	arch/alpha/pci/lca_pci.c	lca
267
268device	mcpcia: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
269attach	mcpcia at mcbus
270file	arch/alpha/pci/mcpcia.c		mcpcia
271file	arch/alpha/pci/mcpcia_bus_io.c	mcpcia
272file	arch/alpha/pci/mcpcia_bus_mem.c	mcpcia
273file	arch/alpha/pci/mcpcia_dma.c	mcpcia
274file	arch/alpha/pci/mcpcia_pci.c	mcpcia
275
276device	tsc { }
277attach	tsc at mainbus
278file	arch/alpha/pci/tsc.c		dec_6600
279
280device	tsp: pcibus, alpha_sgmap, alpha_pci_sgmap_pte64
281attach	tsp at tsc
282file	arch/alpha/pci/tsp_dma.c	tsp
283file	arch/alpha/pci/tsp_pci.c	tsp
284file	arch/alpha/pci/tsp_bus_io.c	tsp
285file	arch/alpha/pci/tsp_bus_mem.c	tsp
286
287device	tsciic: i2cbus, i2c_bitbang
288attach	tsciic at tsc
289file	arch/alpha/pci/tsciic.c	tsciic	needs-flag
290
291device	ttwoga { hose = -1 }
292attach	ttwoga at mainbus
293# identical to pcibus
294define	sableiobus {[bus = -1]}
295device	ttwopci: pcibus, sableiobus, alpha_sgmap, alpha_pci_sgmap_pte64
296attach	ttwopci at ttwoga
297file	arch/alpha/pci/ttwoga.c		ttwoga
298file	arch/alpha/pci/ttwoga_bus_io.c	ttwoga
299file	arch/alpha/pci/ttwoga_bus_mem.c	ttwoga
300file	arch/alpha/pci/ttwoga_dma.c	ttwoga
301file	arch/alpha/pci/ttwoga_pci.c	ttwoga
302
303#
304# Sable STDIO support
305#
306device	sableio { port = -1 }
307attach	sableio at sableiobus
308file	arch/alpha/sableio/sableio.c		sableio
309
310attach	com at sableio with com_sableio
311file	arch/alpha/sableio/com_sableio.c	com_sableio
312
313attach	lpt at sableio with lpt_sableio
314file	arch/alpha/sableio/lpt_sableio.c	lpt_sableio
315
316attach	pckbc at sableio with pckbc_sableio
317file	arch/alpha/sableio/pckbc_sableio.c	pckbc_sableio
318
319attach	fdc at sableio with fdc_sableio
320file	arch/alpha/sableio/fdc_sableio.c	fdc_sableio
321
322# CPU support files
323file	arch/alpha/pci/pci_2100_a50.c	dec_2100_a50
324file	arch/alpha/pci/pci_2100_a500.c	dec_2100_a500 | dec_2100a_a500
325file	arch/alpha/pci/pci_up1000.c	api_up1000
326file	arch/alpha/pci/pci_alphabook1.c	dec_alphabook1
327file	arch/alpha/pci/pci_axppci_33.c	dec_axppci_33
328file	arch/alpha/pci/pci_eb164.c	dec_eb164
329file	arch/alpha/pci/pci_eb164_intr.s	dec_eb164
330file	arch/alpha/pci/pci_eb64plus.c	dec_eb64plus
331file	arch/alpha/pci/pci_eb64plus_intr.s dec_eb64plus
332file	arch/alpha/pci/pci_eb66.c	dec_eb66
333file	arch/alpha/pci/pci_eb66_intr.s	dec_eb66
334file	arch/alpha/pci/pci_kn20aa.c	dec_kn20aa
335file	arch/alpha/pci/pci_kn8ae.c	dec_kn8ae
336file	arch/alpha/pci/pci_kn300.c	dec_kn300
337file	arch/alpha/pci/pci_550.c	dec_550
338file	arch/alpha/pci/pci_1000a.c	dec_1000a
339file	arch/alpha/pci/pci_1000.c	dec_1000
340file	arch/alpha/pci/pci_6600.c	dec_6600
341
342
343#
344# PCI Bus devices
345#
346
347file	arch/alpha/pci/pci_machdep.c	pci
348file	arch/alpha/pci/agp_machdep.c	agp
349
350device	sio: isabus, alpha_shared_intr, cy82c693
351attach	sio at pci
352device	pceb: isabus, eisabus, cy82c693, alpha_shared_intr
353attach	pceb at pci
354file	arch/alpha/pci/sio.c		sio | pceb	needs-flag
355file	arch/alpha/pci/sio_pic.c	sio | pceb
356
357#
358# Devices that can live on multiple busses
359#
360
361device	mcclock: mc146818
362attach	mcclock at ioasic with mcclock_ioasic
363attach	mcclock at isa with mcclock_isa
364attach	mcclock at gbus with mcclock_gbus
365attach	mcclock at jensenio with mcclock_jensenio
366file	arch/alpha/alpha/mcclock.c	mcclock
367file	arch/alpha/tc/mcclock_ioasic.c	mcclock_ioasic
368file	arch/alpha/isa/mcclock_isa.c	mcclock_isa
369file	arch/alpha/gbus/mcclock_gbus.c	mcclock_gbus
370file	arch/alpha/jensenio/mcclock_jensenio.c	mcclock_jensenio
371
372
373#
374# Standard files
375#
376file	arch/alpha/alpha/autoconf.c
377file	arch/alpha/alpha/clock.c
378file	arch/alpha/alpha/core_machdep.c		coredump
379file	arch/alpha/alpha/cpuconf.c
380file	arch/alpha/alpha/interrupt.c
381file	arch/alpha/alpha/ipifuncs.c		multiprocessor
382file	arch/alpha/alpha/kobj_machdep.c		modular
383file	arch/alpha/alpha/machdep.c
384file	arch/alpha/alpha/mainbus.c
385file	arch/alpha/alpha/patch.c
386file	arch/alpha/alpha/pmap.c
387file	arch/alpha/alpha/process_machdep.c
388file	arch/alpha/alpha/procfs_machdep.c	procfs
389file	arch/alpha/alpha/prom.c
390file	arch/alpha/alpha/sys_machdep.c
391file	arch/alpha/alpha/syscall.c
392file	arch/alpha/alpha/trap.c
393file	arch/alpha/alpha/fp_complete.c
394file	arch/alpha/alpha/vm_machdep.c
395file	arch/alpha/alpha/disksubr.c
396file	arch/alpha/common/bus_dma.c
397file	arch/alpha/common/comlogout.c
398file	dev/cons.c
399file	kern/kern_cctr.c
400
401file	dev/bus_dma/bus_dmamem_common.c
402
403# PROM console support (for ports that don't have native console support)
404file	arch/alpha/alpha/promcons.c
405
406# CPU support
407file	arch/alpha/alpha/dec_2000_300.c		dec_2000_300
408file	arch/alpha/alpha/dec_2100_a50.c		dec_2100_a50
409file	arch/alpha/alpha/dec_2100_a500.c	dec_2100_a500 | dec_2100a_a500
410file	arch/alpha/alpha/dec_3000_300.c		dec_3000_300
411file	arch/alpha/alpha/dec_3000_500.c		dec_3000_500
412file	arch/alpha/alpha/dec_550.c		dec_550
413file	arch/alpha/alpha/dec_alphabook1.c	dec_alphabook1
414file	arch/alpha/alpha/dec_axppci_33.c	dec_axppci_33
415file	arch/alpha/alpha/dec_eb164.c		dec_eb164
416file	arch/alpha/alpha/dec_eb64plus.c		dec_eb64plus
417file	arch/alpha/alpha/dec_eb66.c		dec_eb66
418file	arch/alpha/alpha/dec_kn20aa.c		dec_kn20aa
419file	arch/alpha/alpha/dec_kn8ae.c		dec_kn8ae
420file	arch/alpha/alpha/dec_kn300.c		dec_kn300
421file	arch/alpha/alpha/api_up1000.c		api_up1000
422file	arch/alpha/alpha/dec_1000a.c		dec_1000 | dec_1000a
423file	arch/alpha/alpha/dec_6600.c		dec_6600
424
425# Kernel debugger support
426file	arch/alpha/alpha/db_disasm.c		ddb
427file	arch/alpha/alpha/db_interface.c		ddb
428file	arch/alpha/alpha/db_trace.c		ddb
429
430file	arch/alpha/alpha/kgdb_machdep.c		kgdb
431
432# Binary compatibility with previous NetBSD releases (COMPAT_XX)
433file	arch/alpha/alpha/compat_13_machdep.c	compat_13
434file	arch/alpha/alpha/compat_16_machdep.c	compat_16
435
436# Linux Binary Compatibility (COMPAT_LINUX)
437include "compat/linux/files.linux"
438include "compat/linux/arch/alpha/files.linux_alpha"
439file	arch/alpha/alpha/linux_sigcode.s	compat_linux
440file	arch/alpha/alpha/linux_syscall.c	compat_linux
441file	arch/alpha/alpha/linux_trap.c		compat_linux
442
443# Lock stubs
444file	arch/alpha/alpha/lock_stubs.s
445
446# OSS audio driver compatibility
447include "compat/ossaudio/files.ossaudio"
448
449# XXXX pcic here because it needs to be late.  The catch: pcic needs
450# to be late, so devices which attach to it are attached late.  But it
451# needs to be before its isa and pci attachments.  This answer is
452# non-optimal, but I don't have a better answer right now.
453
454# PCIC pcmcia controller
455# XXX this needs to be done very late, so it's done here.  This feels
456# like a kludge, but it might be for the best.
457
458defparam	PCIC_ISA_ALLOC_IOBASE
459defparam	PCIC_ISA_ALLOC_IOSIZE
460defparam	PCIC_ISA_INTR_ALLOC_MASK
461
462device	pcic: pcmciabus
463file	dev/ic/i82365.c			pcic
464
465# PCIC pcmcia controller on ISA bus.
466attach	pcic at isa with pcic_isa
467file	dev/isa/i82365_isa.c		pcic_isa
468
469# PCIC pcmcia controller on PCI bus.
470attach	pcic at pci with pcic_pci
471file	dev/pci/i82365_pci.c		pcic_pci
472
473# PCIC pcmcia controller on PnP board
474attach pcic at isapnp with pcic_isapnp
475file	dev/isapnp/i82365_isapnp.c	pcic_isapnp
476
477# Code common to ISA and ISAPnP attachments
478file	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
479
480
481# this wants to be probed as late as possible.
482#
483# Machine-independent PCMCIA drivers
484#
485include "dev/pcmcia/files.pcmcia"
486#
487# Machine-independent USB device support
488#
489include "dev/usb/files.usb"
490#
491# Machine-independent Bluetooth support
492#
493include "dev/bluetooth/files.bluetooth"
494#
495# Machine-independent IEEE 1394 device support
496#
497include "dev/ieee1394/files.ieee1394"
498
499include	"arch/alpha/conf/majors.alpha"
500