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