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