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