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