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