files.pci revision 1.169
1#	$NetBSD: files.pci,v 1.169 2002/04/22 15:45:19 bouyer 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
151attach	esiop at pci with esiop_pci: siop_pci_common
152file	dev/pci/esiop_pci.c		esiop_pci
153
154# Initio INIC-940/950 SCSI controllers
155attach	iha at pci with iha_pci
156file	dev/pci/iha_pci.c		iha_pci
157
158# Tekram DC-395U/UW/F and DC-315/U SCSI controllers
159device	trm: scsi
160attach	trm at pci
161file	dev/pci/trm.c			trm
162
163# Guillemot Maxi Radio FM 2000 Radio Card
164device	mr: radiodev
165attach	mr at pci
166file	dev/pci/maxiradio.c		mr
167
168# MediaForte SoundForte SF64-PCR Radio card
169#device	sf4r: radiodev, tea5757
170#attach	sf4r at pci
171#file	dev/pci/sf64pcr.c		sf4r
172
173# PCI IDE controllers
174device	pciide {[channel = -1]}: cy82c693, wdc_base, ata, atapi
175attach	pciide at pci
176file	dev/pci/pciide.c		pciide
177
178# PCI-PCI bridge chips
179device	ppb: pcibus
180attach	ppb at pci
181file	dev/pci/ppb.c			ppb
182
183# Cyclades Cyclom-8/16/32 
184attach	cy at pci with cy_pci
185file	dev/pci/cy_pci.c		cy_pci
186
187# Cyclades-Z series of intelligent multi-port serial adapters
188device	cz
189attach	cz at pci
190file	dev/pci/cz.c			cz			needs-flag
191
192# Intel EtherExpress PRO 10/100B
193attach	fxp at pci with fxp_pci
194file	dev/pci/if_fxp_pci.c		fxp_pci
195
196# Sun HME-network
197attach	hme at pci with hme_pci
198file	dev/pci/if_hme_pci.c		hme_pci
199
200# Sun GEM-network
201attach	gem at pci with gem_pci
202file	dev/pci/if_gem_pci.c		gem_pci
203
204# NE2000-compatible PCI Ethernet cards
205defparam opt_ipkdb.h	IPKDB_NE_PCISLOT	: IPKDB_NE_PCI
206defflag	opt_ipkdb.h	IPKDB_NE_PCI		: IPKDB_NE IPKDB_NE_PCISLOT
207attach	ne at pci with ne_pci: rtl80x9
208file	dev/pci/if_ne_pci.c		ne_pci | IPKDB_NE_PCI
209
210# Texas Instruments ThunderLAN Chip.
211device	tl: ether, ifnet, arp, i2c, i2c_eeprom, mii, mii_bitbang
212attach	tl at pci
213file	dev/pci/if_tl.c			tl
214
215# SDL Communications N2 PCI Network Interface
216# device declaration in sys/conf/files
217attach	ntwoc at pci with ntwoc_pci
218file	dev/pci/if_ntwoc_pci.c		ntwoc_pci
219
220# Lan Media Corporation T1/HSSI/DS3 driver
221device	lmc: ifnet, sppp
222attach	lmc at pci
223file	dev/pci/if_lmc.c		lmc
224file	dev/pci/if_lmc_common.c		lmc
225file	dev/pci/if_lmc_media.c		lmc
226file	dev/pci/if_lmc_nbsd.c		lmc
227
228# Essential Communications HIPPI interface
229# device declaration in sys/conf/files
230attach	esh at pci with esh_pci
231file	dev/pci/if_esh_pci.c		esh_pci
232
233# generic PCI VGA
234attach	vga at pci with vga_pci
235file	dev/pci/vga_pci.c		vga_pci			needs-flag
236
237# DEC TGA
238device	tga: wsemuldisplaydev, rasops8, rasops32
239attach	tga at pci
240file	dev/pci/tga.c			tga			needs-flag
241file	dev/pci/tga_conf.c		tga
242file	dev/ic/bt485.c			tga
243file	dev/ic/bt463.c			tga
244file	dev/ic/ibm561.c			tga
245
246# Integraphics Systems IGA168x and CyberPro framebuffers (linear non-VGA mode)
247# device declaration in sys/conf/files
248attach	igsfb at pci with igsfb_pci
249file	dev/pci/igsfb_pci.c		igsfb_pci
250
251# Brooktree Bt848 video capture
252device	bktr: pcibus, radiodev
253attach	bktr at pci
254file	dev/pci/bktr/bktr_audio.c	bktr
255file	dev/pci/bktr/bktr_card.c	bktr
256file	dev/pci/bktr/bktr_core.c	bktr
257file	dev/pci/bktr/bktr_os.c		bktr			needs-flag
258file	dev/pci/bktr/bktr_tuner.c	bktr
259
260# Cirrus Logic CrystalClear PCI Audio CS4280
261device	clcs: audiobus, auconv, mulaw, ac97, midibus
262attach	clcs at pci
263file	dev/pci/cs4280.c		clcs
264
265# Cirrus Logic CrystalClear PCI Audio CS4281
266device	clct: audiobus, auconv, mulaw, ac97
267attach	clct at pci
268file	dev/pci/cs4281.c		clct
269
270# Shared code for Cirrus Logic CrystalClear PCI Audio CS4280 and CS4281
271file	dev/pci/cs428x.c		clcs | clct
272
273# Forte Media FM801
274device	fms { }: audiobus, auconv, mulaw, ac97, midibus
275attach	fms at pci
276file	dev/pci/fms.c			fms
277
278attach	opl at fms with opl_fms
279file	dev/pci/opl_fms.c		opl_fms
280
281attach	mpu at fms with mpu_fms
282file	dev/pci/mpu_fms.c		mpu_fms
283
284# Ensoniq AudioPCI S5016
285device	eap: audiobus, auconv, mulaw, ac97, midibus
286attach	eap at pci
287file	dev/pci/eap.c			eap
288
289# Intel ICH AC'97 audio
290device	auich: audiobus, auconv, mulaw, ac97, aurateconv
291attach	auich at pci
292file	dev/pci/auich.c			auich
293
294# VIA VT82C686A AC'97 Audio
295device	auvia: audiobus, auconv, mulaw, ac97
296attach	auvia at pci
297file	dev/pci/auvia.c			auvia
298
299# NeoMagic 256 AC'97 Audio
300device	neo: audiobus, auconv, mulaw, ac97
301attach	neo at pci
302file	dev/pci/neo.c			neo
303
304# ESS Allegro-1 / Maestro3
305device	esa: audiobus, auconv, mulaw, ac97
306attach	esa at pci
307file	dev/pci/esa.c			esa
308
309# ESS Solo-1 PCI AudioDrive
310device	eso { }: audiobus, auconv, mulaw, midibus
311attach	eso at pci
312file	dev/pci/eso.c			eso
313
314attach	opl at eso with opl_eso
315file	dev/pci/opl_eso.c		opl_eso
316
317attach	mpu at eso with mpu_eso
318file	dev/pci/mpu_eso.c		mpu_eso
319
320# ESS Maestro-1/2/2e PCI AC97 Audio Accelerator
321device	esm: audiobus, auconv, mulaw, ac97
322attach	esm at pci
323file	dev/pci/esm.c			esm
324
325# S3 SonicVibes (S3 617)
326device	sv { }: audiobus, auconv, mulaw, midibus
327attach	sv at pci
328file	dev/pci/sv.c			sv
329
330attach	opl at sv with opl_sv
331file	dev/pci/opl_sv.c		opl_sv
332
333# C-Media CMI8x38 Audio Chip
334device	cmpci { }: audiobus, auconv, mulaw
335attach	cmpci at pci
336file	dev/pci/cmpci.c			cmpci
337
338attach	opl at cmpci with opl_cmpci
339file	dev/pci/opl_cmpci.c		opl_cmpci
340
341attach	mpu at cmpci with mpu_cmpci
342file	dev/pci/mpu_cmpci.c		mpu_cmpci
343
344# Yamaha YMF724/740/744/754 PCI audio controller
345device	yds { }: audiobus, auconv, mulaw, ac97
346attach	yds at pci
347file	dev/pci/yds.c			yds
348
349attach	opl at yds with opl_yds
350file	dev/pci/opl_yds.c		opl_yds
351
352attach	mpu at yds with mpu_yds
353file	dev/pci/mpu_yds.c		mpu_yds
354
355# Creative Labs EMU10k1 (SBLive! series and PCI512)
356device	emuxki: audiobus, auconv, mulaw, ac97
357attach	emuxki at pci
358file	dev/pci/emuxki.c		emuxki
359
360# Trident 4DWAVE AC'97 audio (including SiS 7018,ALi M5451)
361device	autri: audiobus, auconv, mulaw, ac97, midibus
362attach	autri at pci
363file	dev/pci/autri.c			autri
364
365# SMC EPIC/100 Fast Ethernet on PCI
366attach	epic at pci with epic_pci
367file	dev/pci/if_epic_pci.c		epic_pci
368
369# PCI "universal" communication device driver, for PCI com, lpt, etc. ports
370# (see documentation in the driver for what, exactly, should be supported)
371device	puc { port = -1 }
372attach	puc at pci
373file	dev/pci/puc.c			puc
374file	dev/pci/pucdata.c		puc
375
376attach	com at puc with com_puc
377file	dev/pci/com_puc.c		com_puc
378
379# Console device support for puc drivers
380defflag	opt_puccn.h	PUCCN
381file	dev/pci/puccn.c			puccn
382
383# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
384# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
385# XXX (when the conf/files and files.isa bogons are fixed, this can
386# XXX be fixed as well.)
387
388# attach	lpt at puc with lpt_puc
389# file	dev/pci/lpt_puc.c		lpt_puc
390
391# UHCI USB controller
392attach	uhci at pci with uhci_pci
393file	dev/pci/uhci_pci.c		uhci_pci
394
395# OHCI USB controller
396attach	ohci at pci with ohci_pci
397file	dev/pci/ohci_pci.c		ohci_pci
398
399# EHCI USB controller
400attach	ehci at pci with ehci_pci
401file	dev/pci/ehci_pci.c		ehci_pci
402
403file	dev/pci/usb_pci.c		ehci_pci | ehci_cardbus
404
405# OHCI IEEE 1394 controller
406attach	fwohci at pci with fwohci_pci
407file	dev/pci/fwohci_pci.c		fwohci_pci
408
409# IEEE 1394 TI "Lynx" controller
410attach	fwlynx at pci with fwlynx_pci
411file	dev/pci/fwlynx_pci.c		fwlynx_pci
412
413# VIA Rhine/Rhine II Fast Ethernet controllers
414device	vr: ether, ifnet, arp, mii, mii_bitbang
415attach	vr at pci
416file	dev/pci/if_vr.c			vr
417
418# SiS 900 Fast Ethernet controllers
419device	sip: ether, ifnet, arp, mii
420attach	sip at pci
421file	dev/pci/if_sip.c		sip
422
423# National Semiconductor DP83820 Gigabit Ethernet
424device	gsip: ether, ifnet, arp, mii, mii_bitbang
425attach	gsip at pci
426file	dev/pci/if_gsip.c		gsip
427
428# Level One LXT-1001 Gigabit Ethernet
429device	glxt: ether, ifnet, arp, mii
430attach	glxt at pci
431file	dev/pci/if_glxt.c		glxt
432
433# Sundance Tech./Tamarack TC9021 Gigabit Ethernet
434device	stge: ether, ifnet, arp, mii, mii_bitbang
435attach	stge at pci
436file	dev/pci/if_stge.c		stge
437
438# SysKonnect SKNET-GE Gigabit Ethernet  
439device	skgec { port = -1 }
440attach	skgec at pci
441file	dev/pci/if_skge.c		skgec
442
443device	skge: ether, ifnet, arp, mii
444attach	skge at skgec   
445
446# Intel i8254x Gigabit Ethernet
447device	wm: ether, ifnet, arp, mii, mii_bitbang
448attach	wm at pci
449file	dev/pci/if_wm.c			wm
450
451# Realtek 8129/8139 Ethernet controllers
452attach	rtk at pci with rtk_pci
453file	dev/pci/if_rtk_pci.c		rtk_pci
454
455# DECchip 21x4x Ethernet controller family, and assorted clones.
456attach	tlp at pci with tlp_pci
457file	dev/pci/if_tlp_pci.c		tlp_pci
458
459# Bit3 PCI-VME mod. 617
460device	btvmei: vmebus
461attach	btvmei at pci
462file	dev/pci/btvmei.c		btvmei
463#file	dev/pci/btvmei_dma.c		btvmei
464#file	dev/pci/btvmei_cntlrdma.c	btvmei
465
466# Alteon ACEnic Gigabit Ethernet controller
467device	ti: ether, ifnet, arp
468attach	ti at pci
469file	dev/pci/if_ti.c			ti
470
471# Adaptec AIC-6915 Ethernet interface
472attach	sf at pci with sf_pci
473file	dev/pci/if_sf_pci.c		sf_pci
474
475# Sundance Tech. ST-201 10/100 Ethernet
476device	ste: ether, ifnet, arp, mii, mii_bitbang
477attach	ste at pci
478file	dev/pci/if_ste.c		ste
479
480# YENTA PCI-Cardbus bridge 
481#device	cbb: cbbus, pcmciabus
482device	cbb: pcmciaslot
483attach	cbb at pci with cbb_pci
484file	dev/pci/pccbb.c			cbb
485
486# Tundra Universe PCI-VME adapter
487define	univ_pci
488file	dev/pci/universe_pci.c univ_pci
489
490# Bit3 PCI-VME mod. 2706
491device	btvmeii: vmebus, univ_pci
492attach	btvmeii at pci
493file	dev/pci/btvmeii.c btvmeii
494
495# VT86C686A power management
496device	viapm {}
497attach	viapm at pci
498file	dev/pci/viapm.c	viapm
499
500# hardware monitoring part of viapm
501device	viaenv: sysmon_envsys
502attach	viaenv at viapm
503file	dev/pci/viaenv.c		viaenv			needs-flag
504
505# Hi/fn 7751 
506device	hifn {}
507attach	hifn at pci
508file	dev/pci/hifn7751.c		hifn
509
510# Aironet PC4500/PC4800
511attach	an at pci with an_pci
512file	dev/pci/if_an_pci.c		an_pci
513
514# Intersil Prism2.5 Mini-PCI
515attach	wi at pci with wi_pci
516file	dev/pci/if_wi_pci.c		wi_pci
517
518# ISDN devices
519attach	isic at pci with isic_pci
520file	dev/pci/isic_pci.c		isic_pci
521
522file	dev/pci/isic_pci_elsa_qs1p.c	isic_pci
523
524device	ifpci: isdndev, passive_isdn
525attach	ifpci at pci
526file	dev/pci/ifpci.c			ifpci
527
528# IrDA devices
529#  Toshiba Fast Infrared Type O IrDA driver
530device oboe: irbus, irdasir
531attach oboe at pci
532file	dev/pci/oboe.c			oboe
533
534# Middle Digital, Inc. PCI-Weasel serial console board control
535# devices (watchdog timer, etc.)
536device	weasel: sysmon_wdog
537attach	weasel at pci with weasel_pci
538file	dev/pci/weasel_pci.c		weasel
539
540# Game adapter (joystick)
541attach	joy at pci with joy_pci
542file	dev/pci/joy_pci.c		joy_pci
543