files.pci revision 1.137
1#	$NetBSD: files.pci,v 1.137 2001/08/27 19:42:19 thorpej Exp $
2#
3# Config file and device description for machine-independent PCI code.
4# Included by ports that need it.  Requires that the SCSI files be
5# defined first.
6
7defopt	opt_pci.h	PCIVERBOSE PCI_CONFIG_DUMP PCI_NETBSD_CONFIGURE
8			PCI_NETBSD_ENABLE_IDE
9
10defopt	opt_bktr.h	BKTR_OVERRIDE_CARD BKTR_OVERRIDE_TUNER BKTR_OVERRIDE_DBX
11			BKTR_OVERRIDE_MSP BKTR_SYSTEM_DEFAULT
12			BKTR_USE_PLL BKTR_GPIO_ACCESS BKTR_NO_MSP_RESET
13			BKTR_430_FX_MODE BKTR_SIS_VIA_MODE
14
15defopt	opt_pciide.h	PCIIDE_CMD064x_DISABLE PCIIDE_AMD756_ENABLEDMA
16			PCIIDE_CMD0646U_ENABLEUDMA
17
18device	pci {[dev = -1], [function = -1]}
19attach	pci at pcibus
20file	dev/pci/pci.c			pci			needs-flag
21file	dev/pci/pci_map.c		pci
22file	dev/pci/pci_quirks.c		pci
23file	dev/pci/pci_subr.c		pci
24file	dev/pci/pciconf.c		pci_netbsd_configure
25
26# Cypress 82c693 hyperCache(tm) Stand-Alone PCI Peripheral Controller
27# with USB.  This is a combo chip:
28#
29#	PCI-ISA bridge
30#	PCI IDE controller
31#	OHCI USB controller
32#
33# There are some common subroutines that each function needs.
34define	cy82c693
35file	dev/pci/cy82c693.c		cy82c693
36
37# Adaptec 3940, 2940, and aic78[5678]0 SCSI controllers
38# device declaration in sys/conf/files
39attach	ahc at pci with ahc_pci: ahc_seeprom, smc93cx6
40file	dev/pci/ahc_pci.c		ahc_pci
41
42# I2O adapters
43attach	iop at pci with iop_pci
44file	dev/pci/iop_pci.c		iop_pci
45
46# 3ware RAID controllers
47device	twe {unit = -1}
48attach	twe at pci
49file	dev/pci/twe.c			twe
50
51attach	ld at twe with ld_twe
52file	dev/pci/ld_twe.c		ld_twe
53
54# Compaq RAID controllers
55attach	cac at pci with cac_pci
56file	dev/pci/cac_pci.c		cac_pci
57
58# Mylex DAC960 RAID controllers
59attach	mlx at pci with mlx_pci
60file	dev/pci/mlx_pci.c		mlx_pci
61
62# Newer Mylex AcceleRAID and eXtremeRAID controllers
63device	mly: scsi
64attach	mly at pci
65file	dev/pci/mly.c			mly			needs-flag
66
67# DPT EATA SCSI controllers
68attach	dpt at pci with dpt_pci
69file	dev/pci/dpt_pci.c		dpt_pci
70
71# AdvanSys 1200A, 1200B, and ULTRA SCSI controllers
72# device declaration in sys/conf/files
73attach	adv at pci with adv_pci
74file	dev/pci/adv_pci.c		adv_pci
75
76# AdvanSys ULTRA WIDE SCSI controllers
77# device declaration in sys/conf/files
78attach	adw at pci with adw_pci
79file	dev/pci/adw_pci.c		adw_pci
80file	dev/ic/adwlib.c			adw_pci
81file	dev/ic/adwmcode.c		adw_pci
82
83# AMD Am53c974 PCscsi-PCI SCSI controllers
84device	pcscp: scsi, ncr53c9x
85attach	pcscp at pci
86file	dev/pci/pcscp.c			pcscp
87
88# BusLogic BT-9xx PCI family
89# device declaration in sys/conf/files
90attach	bha at pci with bha_pci
91file	dev/pci/bha_pci.c		bha_pci
92
93# Qlogic ISP 10x0 (PCI) family
94# device declaration in sys/conf/files
95attach	isp at pci with isp_pci
96file	dev/pci/isp_pci.c		isp_pci
97
98# Ethernet driver for DC21040-based boards
99device	de: ether, ifnet, arp
100attach	de at pci
101file	dev/pci/if_de.c			de
102
103# Efficient Networks, Inc. ATM interface
104# device declaration in sys/conf/files
105attach	en at pci with en_pci
106file	dev/pci/if_en_pci.c		en_pci
107
108# 3Com 3c590 and 3c595 Ethernet controllers
109# device declaration in sys/conf/files
110attach	ep at pci with ep_pci
111file	dev/pci/if_ep_pci.c		ep_pci
112
113# 3Com 3c90x[B] Ethernet controllers
114# device declaration in sys/conf/files
115attach	ex at pci with ex_pci
116file	dev/pci/if_ex_pci.c		ex_pci
117
118# Digital DEFPA PCI FDDI Controller
119device	fpa: pdq, fddi, ifnet, arp
120attach	fpa at pci
121file	dev/pci/if_fpa.c		fpa
122
123# AMD am7990 (LANCE) -based Ethernet controllers
124# device declaration in sys/conf/files
125attach	le at pci with le_pci: le32
126file	dev/pci/if_le_pci.c		le_pci
127
128# AMD PCnet-PCI Ethernet controller family
129# Supersedes if_le_pci.c
130device	pcn: ether, ifnet, arp, mii
131attach	pcn at pci
132file	dev/pci/if_pcn.c		pcn
133
134# common code for siop/esiop pci front end
135define	siop_pci_common
136file	dev/pci/siop_pci_common.c	siop_pci_common
137
138# Symbios 53c8xx SCSI chips
139# device declaration in sys/conf/files
140attach	siop at pci with siop_pci: siop_pci_common
141file	dev/pci/siop_pci.c		siop_pci
142
143# Initio INIC-940/950 SCSI controllers
144attach	iha at pci with iha_pci
145file	dev/pci/iha_pci.c		iha_pci
146
147# PCI IDE controllers
148device	pciide {[channel = -1]}: cy82c693, wdc_base, ata, atapi
149attach	pciide at pci
150file	dev/pci/pciide.c		pciide
151
152# PCI-PCI bridge chips
153device	ppb: pcibus
154attach	ppb at pci
155file	dev/pci/ppb.c			ppb
156
157# Cyclades Cyclom-8/16/32 
158attach	cy at pci with cy_pci
159file	dev/pci/cy_pci.c		cy_pci
160
161# Cyclades-Z series of intelligent multi-port serial adapters
162device	cz
163attach	cz at pci
164file	dev/pci/cz.c			cz			needs-flag
165
166# Intel EtherExpress PRO 10/100B
167attach	fxp at pci with fxp_pci
168file	dev/pci/if_fxp_pci.c		fxp_pci
169
170# Sun HME-network
171attach	hme at pci with hme_pci
172file	dev/pci/if_hme_pci.c		hme_pci
173
174# NE2000-compatible PCI Ethernet cards
175defparam opt_ipkdb.h	IPKDB_NE_PCISLOT	: IPKDB_NE_PCI
176defopt	opt_ipkdb.h	IPKDB_NE_PCI		: IPKDB_NE IPKDB_NE_PCISLOT
177attach	ne at pci with ne_pci: rtl80x9
178file	dev/pci/if_ne_pci.c		ne_pci | IPKDB_NE_PCI
179
180# Texas Instruments ThunderLAN Chip.
181device	tl: ether, ifnet, arp, i2c, i2c_eeprom, mii, mii_bitbang
182attach	tl at pci
183file	dev/pci/if_tl.c			tl
184
185# SDL Communications N2 PCI Network Interface
186# device declaration in sys/conf/files
187attach	ntwoc at pci with ntwoc_pci
188file	dev/pci/if_ntwoc_pci.c		ntwoc_pci
189
190# Lan Media Corporation T1/HSSI/DS3 driver
191device	lmc: ifnet, sppp
192attach	lmc at pci
193file	dev/pci/if_lmc.c		lmc
194file	dev/pci/if_lmc_common.c		lmc
195file	dev/pci/if_lmc_media.c		lmc
196file	dev/pci/if_lmc_nbsd.c		lmc
197
198# Essential Communications HIPPI interface
199# device declaration in sys/conf/files
200attach	esh at pci with esh_pci
201file	dev/pci/if_esh_pci.c		esh_pci
202
203# generic PCI VGA
204attach	vga at pci with vga_pci
205file	dev/pci/vga_pci.c		vga_pci			needs-flag
206
207# DEC TGA
208device	tga: wsemuldisplaydev, rasops8, rasops32
209attach	tga at pci
210file	dev/pci/tga.c			tga			needs-flag
211file	dev/pci/tga_conf.c		tga
212file	dev/ic/bt485.c			tga
213file	dev/ic/bt463.c			tga
214
215# Brooktree Bt848 video capture
216device	bktr: pcibus
217attach	bktr at pci
218file	dev/pci/bktr/bktr_audio.c	bktr
219file	dev/pci/bktr/bktr_card.c	bktr
220file	dev/pci/bktr/bktr_core.c	bktr
221file	dev/pci/bktr/bktr_os.c		bktr			needs-flag
222file	dev/pci/bktr/bktr_tuner.c	bktr
223
224# Cirrus Logic CrystalClear PCI Audio CS4280
225device	clcs: audio, auconv, mulaw, ac97, midibus
226attach	clcs at pci
227file	dev/pci/cs4280.c		clcs
228
229# Cirrus Logic CrystalClear PCI Audio CS4281
230device	clct: audio, auconv, mulaw, ac97
231attach	clct at pci
232file	dev/pci/cs4281.c		clct
233
234# Shared code for Cirrus Logic CrystalClear PCI Audio CS4280 and CS4281
235file	dev/pci/cs428x.c		clcs | clct
236
237# Forte Media FM801
238device	fms { }: audio, auconv, mulaw, ac97, midibus
239attach	fms at pci
240file	dev/pci/fms.c			fms
241
242attach	opl at fms with opl_fms
243file	dev/pci/opl_fms.c		opl_fms
244
245attach	mpu at fms with mpu_fms
246file	dev/pci/mpu_fms.c		mpu_fms
247
248# Ensoniq AudioPCI S5016
249device	eap: audio, auconv, mulaw, ac97, midibus
250attach	eap at pci
251file	dev/pci/eap.c			eap
252
253# Intel ICH AC'97 audio
254device	auich: audio, auconv, mulaw, ac97
255attach	auich at pci
256file	dev/pci/auich.c			auich
257
258# VIA VT82C686A AC'97 Audio
259device	auvia: audio, auconv, mulaw, ac97
260attach	auvia at pci
261file	dev/pci/auvia.c			auvia
262
263# NeoMagic 256 AC'97 Audio
264device	neo: audio, auconv, mulaw, ac97
265attach	neo at pci
266file	dev/pci/neo.c			neo
267
268# ESS Solo-1 PCI AudioDrive
269device	eso { }: audio, auconv, mulaw, midibus
270attach	eso at pci
271file	dev/pci/eso.c			eso
272
273attach	opl at eso with opl_eso
274file	dev/pci/opl_eso.c		opl_eso
275
276attach	mpu at eso with mpu_eso
277file	dev/pci/mpu_eso.c		mpu_eso
278
279# ESS Maestro-1/2/2e PCI AC97 Audio Accelerator
280device	esm: audio, auconv, mulaw, ac97
281attach	esm at pci
282file	dev/pci/esm.c			esm
283
284# S3 SonicVibes (S3 617)
285device	sv { }: audio, auconv, mulaw, midibus
286attach	sv at pci
287file	dev/pci/sv.c			sv
288
289attach	opl at sv with opl_sv
290file	dev/pci/opl_sv.c		opl_sv
291
292# C-Media CMI8x38 Audio Chip
293device	cmpci { }: audio, auconv, mulaw
294attach	cmpci at pci
295file	dev/pci/cmpci.c			cmpci
296
297# Yamaha YMF724/740/744/754 PCI audio controller
298device	yds { }: audio, auconv, mulaw, ac97
299attach	yds at pci
300file	dev/pci/yds.c			yds
301
302attach	opl at yds with opl_yds
303file	dev/pci/opl_yds.c		opl_yds
304
305attach	mpu at yds with mpu_yds
306file	dev/pci/mpu_yds.c		mpu_yds
307
308# SMC EPIC/100 Fast Ethernet on PCI
309attach	epic at pci with epic_pci
310file	dev/pci/if_epic_pci.c		epic_pci
311
312# PCI "universal" communication device driver, for PCI com, lpt, etc. ports
313# (see documentation in the driver for what, exactly, should be supported)
314device	puc { port = -1 }
315attach	puc at pci
316file	dev/pci/puc.c			puc
317file	dev/pci/pucdata.c		puc
318
319attach	com at puc with com_puc
320file	dev/pci/com_puc.c		com_puc
321
322# Console device support for puc drivers
323defopt	opt_puccn.h			PUCCN
324file	dev/pci/puccn.c			puccn
325
326# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
327# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
328# XXX (when the conf/files and files.isa bogons are fixed, this can
329# XXX be fixed as well.)
330
331# attach	lpt at puc with lpt_puc
332# file	dev/pci/lpt_puc.c		lpt_puc
333
334# UHCI USB controller
335attach	uhci at pci with uhci_pci
336file	dev/pci/uhci_pci.c		uhci_pci
337
338# OHCI USB controller
339attach	ohci at pci with ohci_pci
340file	dev/pci/ohci_pci.c		ohci_pci
341
342# EHCI USB controller
343attach	ehci at pci with ehci_pci
344file	dev/pci/ehci_pci.c		ehci_pci
345
346# OHCI IEEE 1394 controller
347attach	fwohci at pci with fwohci_pci
348file	dev/pci/fwohci_pci.c		fwohci_pci
349
350# IEEE 1394 TI "Lynx" controller
351attach	fwlynx at pci with fwlynx_pci
352file	dev/pci/fwlynx_pci.c		fwlynx_pci
353
354# VIA Rhine/Rhine II Fast Ethernet controllers
355device	vr: ether, ifnet, arp, mii, mii_bitbang
356attach	vr at pci
357file	dev/pci/if_vr.c			vr
358
359# SiS 900 Fast Ethernet controllers
360device	sip: ether, ifnet, arp, mii
361attach	sip at pci
362file	dev/pci/if_sip.c		sip
363
364# National Semiconductor DP83820 Gigabit Ethernet
365device	gsip: ether, ifnet, arp, mii, mii_bitbang
366attach	gsip at pci
367file	dev/pci/if_gsip.c		gsip
368
369# Sundance Tech./Tamarack TC9021 Gigabit Ethernet
370device	stge: ether, ifnet, arp, mii, mii_bitbang
371attach	stge at pci
372file	dev/pci/if_stge.c		stge
373
374# Realtek 8129/8139 Ethernet controllers
375attach	rtk at pci with rtk_pci
376file	dev/pci/if_rtk_pci.c		rtk_pci
377
378# DECchip 21x4x Ethernet controller family, and assorted clones.
379attach	tlp at pci with tlp_pci
380defopt	opt_tlp.h	TLP_MATCH_21040 TLP_MATCH_21041
381			TLP_MATCH_21140 TLP_MATCH_21142
382
383file	dev/pci/if_tlp_pci.c		tlp_pci
384
385# Bit3 PCI-VME mod. 617
386device	btvmei: vmebus
387attach	btvmei at pci
388file	dev/pci/btvmei.c		btvmei
389#file	dev/pci/btvmei_dma.c		btvmei
390#file	dev/pci/btvmei_cntlrdma.c	btvmei
391
392# Alteon ACEnic Gigabit Ethernet controller
393device	ti: ether, ifnet, arp
394attach	ti at pci
395file	dev/pci/if_ti.c			ti
396
397# Adaptec AIC-6915 Ethernet interface
398attach	sf at pci with sf_pci
399file	dev/pci/if_sf_pci.c		sf_pci
400
401# Sundance Tech. ST-201 10/100 Ethernet
402device	ste: ether, ifnet, arp, mii, mii_bitbang
403attach	ste at pci
404file	dev/pci/if_ste.c		ste
405
406# YENTA PCI-Cardbus bridge 
407#device	cbb: cbbus, pcmciabus
408device	cbb: pcmciaslot
409attach	cbb at pci with cbb_pci
410file	dev/pci/pccbb.c			cbb
411
412# Tundra Universe PCI-VME adapter
413define	univ_pci
414file	dev/pci/universe_pci.c univ_pci
415
416# Bit3 PCI-VME mod. 2706
417device	btvmeii: vmebus, univ_pci
418attach	btvmeii at pci
419file	dev/pci/btvmeii.c btvmeii
420
421# VT86C686A power management
422device	viapm {}
423attach	viapm at pci
424file	dev/pci/viapm.c	viapm
425
426# hardware monitoring part of viapm
427device	viaenv: sysmon_envsys
428attach	viaenv at viapm
429file	dev/pci/viaenv.c		viaenv			needs-flag
430
431# Hi/fn 7751 
432device	hifn {}
433attach	hifn at pci
434file	dev/pci/hifn7751.c		hifn
435
436# Aironet PC4500/PC4800
437attach	an at pci with an_pci
438file	dev/pci/if_an_pci.c		an_pci
439
440
441# ISDN devices
442attach	isic at pci with isic_pci
443file	dev/pci/isic_pci.c		isic_pci
444
445defopt	opt_isicpci.h	ISICPCI_ELSA_QS1PCI ISICPCI_AVM_A1
446
447file	dev/pci/isic_pci_elsa_qs1p.c	isic_pci
448file	dev/pci/isic_pci_avm_fritz_pci.c isic_pci
449
450