File: [local] / sys / dev / pci / files.pci (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:12:55 2008 UTC (16 years, 5 months ago) by nbrk
Branch: OPENBSD_4_2_BASE, MAIN
CVS Tags: jornada-partial-support-wip, HEAD Changes since 1.1: +0 -0 lines
Import of OpenBSD 4.2 release kernel tree with initial code to support
Jornada 720/728, StrongARM 1110-based handheld PC.
At this point kernel roots on NFS and boots into vfs_mountroot() and traps.
What is supported:
- glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode
(needs some palette tweaks for non black/white/blue colors, i think)
- saic, SA11x0 interrupt controller (needs cleanup)
- sacom, SA11x0 UART (supported only as boot console for now)
- SA11x0 GPIO controller fully supported (but can't handle multiple interrupt
handlers on one gpio pin)
- sassp, SSP port on SA11x0 that attaches spibus
- Jornada microcontroller (jmcu) to control kbd, battery, etc throught
the SPI bus (wskbd attaches on jmcu, but not tested)
- tod functions seem work
- initial code for SA-1111 (chip companion) : this is TODO
Next important steps, i think:
- gpio and intc on sa1111
- pcmcia support for sa11x0 (and sa1111 help logic)
- REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs)
- root on wd0! (using already supported PCMCIA-ATA)
|
# $OpenBSD: files.pci,v 1.242 2007/08/14 23:16:43 dlg Exp $
# $NetBSD: files.pci,v 1.20 1996/09/24 17:47:15 christos Exp $
#
# Config file and device description for machine-independent PCI code.
# Included by ports that need it. Requires that the SCSI files be
# defined first.
device pci {[dev = -1], [function = -1]}
attach pci at pcibus
file dev/pci/pci.c pci needs-flag
file dev/pci/pci_map.c pci
file dev/pci/pci_quirks.c pci
file dev/pci/pci_subr.c pci
# Generic VGA
attach vga at pci with vga_pci
file dev/pci/vga_pci.c vga_pci
file dev/pci/agp.c vga_pci & pciagp
device tga: wsemuldisplaydev, rasops8, rasops32
attach tga at pci
file dev/pci/tga.c tga needs-flag
file dev/pci/tga_conf.c tga
file dev/ic/bt463.c tga
file dev/ic/bt485.c tga
file dev/ic/ibm561.c tga
attach sti at pci with sti_pci
file dev/pci/sti_pci.c sti_pci
# Cypress 82c693 hyperCache(tm) Stand-Alone PCI Peripheral Controller
# with USB. This is a combo chip:
#
# PCI-ISA bridge
# PCI IDE controller
# OHCI USB controller
#
# There are some common subroutines that each function needs.
define cy82c693
file dev/pci/cy82c693.c cy82c693
# Adaptec 3940, 2940, and aic78[5678]0 SCSI controllers
# device declaration in sys/conf/files
attach ahc at pci with ahc_pci
file dev/pci/ahc_pci.c ahc_pci
# Adaptec U320 SCSI controllers
attach ahd at pci with ahd_pci
file dev/pci/ahd_pci.c ahd_pci
# DPT EATA SCSI controllers
attach dpt at pci with dpt_pci
file dev/pci/dpt_pci.c dpt_pci
# AdvanSys 1200A, 1200B, and ULTRA SCSI controllers
# device declaration in sys/conf/files
attach adv at pci with adv_pci
file dev/pci/adv_pci.c adv_pci
file dev/ic/advlib.c adv_pci
file dev/microcode/adw/advmcode.c adv_pci
# AdvanSys ULTRA WIDE SCSI controllers
# device declaration in sys/conf/files
attach adw at pci with adw_pci
file dev/pci/adw_pci.c adw_pci
file dev/ic/adwlib.c adw_pci
file dev/microcode/adw/adwmcode.c adw_pci
# BusLogic BT-9xx PCI family
attach bha at pci with bha_pci
file dev/pci/bha_pci.c bha_pci
# 3ware 5x000/6x000 RAID controllers
attach twe at pci with twe_pci
file dev/pci/twe_pci.c twe_pci
# Areca RAID Controllers
device arc: scsi
attach arc at pci
file dev/pci/arc.c arc
# JMicron JMB36x controllers
device jmb {}
attach jmb at pci
file dev/pci/jmb.c jmb
# Advanced Host Controller Interface for Serial ATA
device ahci: scsi, atascsi
attach ahci at pci with ahci_pci
attach ahci at jmb with ahci_jmb
file dev/pci/ahci.c ahci | ahci_pci | ahci_jmb
# AMI MegaRAID Express x00/Elite 1500/Express 1x00 RAID Controllers
attach ami at pci with ami_pci
file dev/pci/ami_pci.c ami_pci
# LSI MegaRAID SAS RAID controllers
attach mfi at pci with mfi_pci
file dev/pci/mfi_pci.c mfi_pci
# IBM ServeRAID controllers
device ips: scsi
attach ips at pci
file dev/pci/ips.c ips
# I2O
attach iop at pci with iop_pci
file dev/pci/iop_pci.c iop_pci
# Ensoniq AudioPCI S5016, 1371
device eap: audio, auconv, mulaw, ac97, midibus
attach eap at pci
file dev/pci/eap.c eap
# ESS Solo-1 PCI AudioDrive
device eso {}: audio, auconv, mulaw, midibus
attach eso at pci
file dev/pci/eso.c eso
attach opl at eso with opl_eso
file dev/pci/opl_eso.c opl_eso
# Intel 810/820/440MX ICH audio with AC'97
device auich: audio, auconv, mulaw, ac97
attach auich at pci
file dev/pci/auich.c auich
# Intel 82801 HDA
device azalia: audio, auconv, mulaw, ac97
attach azalia at pci
file dev/pci/azalia.c azalia
file dev/pci/azalia_codec.c azalia
# Creative Labs EMU10k1 (SBLive! series and PCI512)
device emu: audio, auconv, mulaw, ac97
attach emu at pci
file dev/pci/emuxki.c emu
# Trident 4DWAVE based PCI audio (including SiS 7018, ALi M5451)
device autri: audio, auconv, mulaw, ac97, midibus
attach autri at pci
file dev/pci/autri.c autri
# ATI IXP 200/300/400 series AC'97 Audio
device auixp: audio, auconv, mulaw, ac97
attach auixp at pci
file dev/pci/auixp.c auixp
# CS4280 CrystalClear Audio
device clcs: audio, auconv, mulaw, ac97, firmload
attach clcs at pci
file dev/pci/cs4280.c clcs
# CS4281 CrystalClear Audio
device clct: audio, auconv, mulaw, ac97
attach clct at pci
file dev/pci/cs4281.c clct
# ESS Maestro
device maestro: audio, auconv, mulaw, ac97
attach maestro at pci
file dev/pci/maestro.c maestro
# ESS Maestro3
device esa: audio, auconv, mulaw, ac97
attach esa at pci
file dev/pci/esa.c esa
# Yamaha YMF Audio
device yds {}: audio, auconv, mulaw, ac97, firmload
attach yds at pci
file dev/pci/yds.c yds
attach opl at yds with opl_yds
file dev/pci/opl_yds.c opl_yds
# Forte Media FM801
device fms: audio, auconv, mulaw, ac97, midibus, tea5757, radiobus
attach fms at pci
file dev/pci/fms.c fms
file dev/pci/fmsradio.c fms & radio
# VIA VT82C686A AC'97 Audio
device auvia: audio, auconv, mulaw, ac97
attach auvia at pci
file dev/pci/auvia.c auvia
# ICP Vortex GDT PCI RAID controllers
# device declaration in sys/conf/files
attach gdt at pci with gdt_pci
file dev/pci/gdt_pci.c gdt_pci
# Adaptec FSA (file system accelerators) RAID adapters
device aac: scsi
attach aac at pci with aac_pci
file dev/pci/aac_pci.c aac_pci
file dev/ic/aac.c aac
# Compaq Smart ARRAY [234]* RAID controllers
attach cac at pci with cac_pci
file dev/pci/cac_pci.c cac_pci
# Compaq Smart ARRAY [56]* RAID controllers
attach ciss at pci with ciss_pci
file dev/pci/ciss_pci.c ciss_pci
# Qlogic ISP 10x0 (PCI) family
# device declaration in sys/conf/files
attach isp at pci with isp_pci
file dev/pci/isp_pci.c isp_pci
# LSI Logic Fusion-MPT Message Passing Interface
attach mpi at pci with mpi_pci
file dev/pci/mpi_pci.c mpi_pci
# Emulex Light Pulse Fibre Channel (Service Level Interface)
attach sli at pci with sli_pci
file dev/pci/sli_pci.c sli_pci
# Silicon Image 3124/3132/3531 SATALink
attach sili at pci with sili_pci
file dev/pci/sili_pci.c sili_pci
# Ethernet driver for DC21040-based boards
device de: ether, ifnet, ifmedia
attach de at pci
file dev/pci/if_de.c de
# ENI ATM driver
device en: atm, ifnet
attach en at pci with en_pci
file dev/pci/if_en_pci.c en
file dev/ic/midway.c en
# 3Com 3c590 and 3c595 Ethernet controllers
# device declaration in sys/conf/files
attach ep at pci with ep_pci
file dev/pci/if_ep_pci.c ep_pci
# Digital DEFPA PCI FDDI Controller
device fpa: pdq, fddi, ifnet
attach fpa at pci
file dev/pci/if_fpa.c fpa
# AMD PCnet-PCI Ethernet controller family
device pcn: ether, ifnet, ifmedia, mii
attach pcn at pci
file dev/pci/if_pcn.c pcn
# common code for siop/esiop pci front end
define siop_pci_common
file dev/pci/siop_pci_common.c siop_pci_common
# Symbios 53c8xx SCSI chips
# device declaration in sys/conf/files
attach siop at pci with siop_pci: siop_pci_common
file dev/pci/siop_pci.c siop_pci
# NeoMagic 256AV and 256ZX
device neo: audio, auconv, mulaw, ac97, firmload
attach neo at pci
file dev/pci/neo.c neo
# PCI IDE controllers
device pciide {[channel = -1]}: cy82c693, wdc_base, ata, atapi
attach pciide at pci with pciide_pci
attach pciide at jmb with pciide_jmb
file dev/pci/pciide.c pciide | pciide_pci | pciide_jmb
# PCI-PCI bridge chips
device ppb: pcibus
attach ppb at pci
file dev/pci/ppb.c ppb
# Cyclades Cyclom-8/16/32
attach cy at pci with cy_pci
file dev/pci/cy_pci.c cy_pci
# Lan Media Corporation T1/HSSI/DS3 adapter
device lmc: ifnet, sppp, ifmedia
attach lmc at pci
file dev/pci/if_lmc.c lmc
file dev/pci/if_lmc_common.c lmc
file dev/pci/if_lmc_media.c lmc
file dev/pci/if_lmc_obsd.c lmc
# Myson Century MTD800/MTD803/MTD891
attach mtd at pci with mtd_pci
file dev/pci/if_mtd_pci.c mtd_pci
# RealTek 8129/8139
attach rl at pci with rl_pci
file dev/pci/if_rl_pci.c rl_pci
# Realtek 8169/8169S/8110S
attach re at pci with re_pci
file dev/pci/if_re_pci.c re_pci
# Via Rhine
device vr: ether, ifnet, mii, ifmedia
attach vr at pci
file dev/pci/if_vr.c vr
# Texas Instruments ThunderLAN
device tl: ether, ifnet, mii, ifmedia
attach tl at pci
file dev/pci/if_tl.c tl
# 3Com 3c990
device txp: ether, ifnet, ifmedia, firmload
attach txp at pci
file dev/pci/if_txp.c txp
# S3 SonicVibes (S3 617)
device sv: audio, auconv, mulaw
attach sv at pci
file dev/pci/sv.c sv
# Brooktree Bt848 video capture
device bktr: pcibus, radiobus
attach bktr at pci
file dev/pci/bktr/bktr_audio.c bktr needs-count
file dev/pci/bktr/bktr_card.c bktr
file dev/pci/bktr/bktr_core.c bktr
file dev/pci/bktr/bktr_os.c bktr
file dev/pci/bktr/bktr_tuner.c bktr
# 3C90x
attach xl at pci with xl_pci
file dev/pci/if_xl_pci.c xl_pci
# Intel EtherExpress PRO 10/100B
attach fxp at pci with fxp_pci
file dev/pci/if_fxp_pci.c fxp_pci
# Intel Pro/1000
device em: ether, ifnet, ifmedia
attach em at pci
file dev/pci/if_em.c em
file dev/pci/if_em_hw.c em
# Intel Pro/10GbE
device ixgb: ether, ifnet, ifmedia
attach ixgb at pci
file dev/pci/if_ixgb.c ixgb
file dev/pci/ixgb_ee.c ixgb
file dev/pci/ixgb_hw.c ixgb
# Neterion Xframe 10 Gigabit ethernet
device xge: ether, ifnet, ifmedia
attach xge at pci
file dev/pci/if_xge.c xge
# NetXen NX2031/NX2035 10Gb Ethernet
device nxe: ether, ifnet, ifmedia
attach nxe at pci
file dev/pci/if_nxe.c nxe
# Tehuti Networks 10Gb Ethernet
device thtc {}
attach thtc at pci
device tht: ether, ifnet, ifmedia, firmload
attach tht at thtc
file dev/pci/if_tht.c thtc | tht
# Chelsio 10Gb Ethernet
device cheg {}
attach cheg at pci
device che: ether, ifnet, ifmedia, firmload
attach che at cheg
file dev/pci/if_che.c cheg | che
# Myricom Myri-10G Ethernet
device myx: ether, ifnet, ifmedia
attach myx at pci
file dev/pci/if_myx.c myx
# DEC/Intel 21143 and "tulip" clone ethernet
attach dc at pci with dc_pci
file dev/pci/if_dc_pci.c dc_pci
# SMC EPIC/100 Fast Ethernet on PCI
attach epic at pci with epic_pci
file dev/pci/if_epic_pci.c epic_pci
# Alteon Tigon I & II
device ti: ether, ifnet, ifmedia, firmload
attach ti at pci
file dev/pci/if_ti.c ti
# NE2000-compatible PCI Ethernet cards
attach ne at pci with ne_pci: rtl80x9
file dev/pci/if_ne_pci.c ne_pci
# Sun GEM ethernet
attach gem at pci with gem_pci
file dev/pci/if_gem_pci.c gem_pci
# Sun Cassini ethernet
device cas: ether, ifnet, ifmedia, mii
attach cas at pci
file dev/pci/if_cas.c cas
# Hi/fn 6500
device lofn: crypto
attach lofn at pci
file dev/pci/lofn.c lofn
# Hi/fn 7751/7811/7951
device hifn: crypto
attach hifn at pci
file dev/pci/hifn7751.c hifn
# Hi/fn 7814/7851/7854
device nofn: crypto
attach nofn at pci
file dev/pci/nofn.c nofn
# Bluesteelnet (Broadcom) 5501/5601
device ubsec: crypto
attach ubsec at pci
file dev/pci/ubsec.c ubsec
# Netoctave NSP2000
device noct: crypto
attach noct at pci
file dev/pci/noct.c noct
# Pijnenburg PCC-ISES
device ises: crypto
attach ises at pci
file dev/pci/ises.c ises
# Safenet SafeXcel 1141
device safe: crypto
attach safe at pci
file dev/pci/safe.c safe
# Winbond W89C840F ethernet
device wb: ether, ifnet, mii, ifmedia, mii_phy
attach wb at pci
file dev/pci/if_wb.c wb
# Adaptec AIC-6915 "Starfire" ethernet
attach sf at pci with sf_pci
file dev/pci/if_sf_pci.c sf_pci
# SiS 900/7016 ethernet
device sis: ether, ifnet, mii, ifmedia
attach sis at pci
file dev/pci/if_sis.c sis
# Sundance ST201 ethernet
device ste: ether, ifnet, mii, ifmedia
attach ste at pci
file dev/pci/if_ste.c ste
# Industrial Computer Source WDT-50x
device wdt: pcibus
attach wdt at pci
file dev/pci/wdt.c wdt
# Quancom PWDOG1
device pwdog: pcibus
attach pwdog at pci
file dev/pci/pwdog.c pwdog
# Meinberg Funkuhren PCI32
device mbg: pcibus
attach mbg at pci
file dev/pci/mbg.c mbg
# UHCI USB controller
attach uhci at pci with uhci_pci
file dev/pci/uhci_pci.c uhci
# OHCI USB controller
attach ohci at pci with ohci_pci
file dev/pci/ohci_pci.c ohci
# EHCI USB controller
attach ehci at pci with ehci_pci
file dev/pci/ehci_pci.c ehci
# YENTA PCI-CardBus bridge
#device cbb: cbbus, pcmciabus
device cbb: pcmciaslot
attach cbb at pci with cbb_pci
file dev/pci/pccbb.c cbb
# SysKonnect 984x gigabit ethernet
device skc {}
attach skc at pci
device sk: ether, ifnet, mii, ifmedia
attach sk at skc
file dev/pci/if_sk.c skc | sk
# Marvell Yukon-2
device mskc {}
attach mskc at pci
device msk: ether, ifnet, mii, ifmedia
attach msk at mskc
file dev/pci/if_msk.c mskc | msk
# PCI "universal" communication device driver, for PCI com, lpt, etc. ports
# (see documentation in the driver for what, exactly, should be supported)
device puc {[port = -1]}
attach puc at pci with puc_pci
file dev/pci/puc.c puc
file dev/pci/pucdata.c puc
# WaveLAN/PrismII card behind a PLX 805x dumb bridge
# device declaration in sys/conf/files
attach wi at pci with wi_pci
file dev/pci/if_wi_pci.c wi_pci
# Aironet 4500/4800 802.11 DS WLAN
# device declaration in sys/conf/files
attach an at pci with an_pci
file dev/pci/if_an_pci.c an_pci
# Intel PRO/Wireless 2100
device ipw: ifnet, wlan, firmload
attach ipw at pci
file dev/pci/if_ipw.c ipw
# Intel PRO/Wireless 2200BG/2915ABG
device iwi: ifnet, wlan, firmload
attach iwi at pci
file dev/pci/if_iwi.c iwi
# Intel PRO/Wireless 3945ABG
device wpi: ifnet, wlan, firmload
attach wpi at pci
file dev/pci/if_wpi.c wpi
# C-Media CMI8x38 Audio Chip
device cmpci {}: audio, auconv, mulaw
attach cmpci at pci
file dev/pci/cmpci.c cmpci
attach opl at cmpci with opl_cmpci
file dev/pci/opl_cmpci.c opl_cmpci
# Initio ULTRA WIDE/ULTRA2 WIDE SCSI Controllers
attach iha at pci with iha_pci
file dev/pci/iha_pci.c iha_pci
# Tekram TRM-S1040 SCSI Cards (DC395U/UW/F,DC315/U)
attach trm at pci with trm_pci
file dev/pci/trm_pci.c trm_pci
# AMD Am53c974 PCscsi-PCI SCSI controllers
device pcscp: scsi, ncr53c9x
attach pcscp at pci
file dev/pci/pcscp.c pcscp
# Gemtek/Guillemot PCI Radio Card
device gtp: tea5757, radiobus
attach gtp at pci
file dev/pci/gtp.c gtp
# National Semiconductor DP83820/DP83821 based GigE
device nge: ether, ifnet, mii, ifmedia, mii_phy
attach nge at pci
file dev/pci/if_nge.c nge
# Cyclades-Z series of intelligent multi-port serial adapters
device cz
attach cz at pci
file dev/pci/cz.c cz needs-flag
# Level-1 LXT1001 Gigabit MAC
device lge: ether, ifnet, mii, ifmedia, mii_phy
attach lge at pci
file dev/pci/if_lge.c lge
# Broadcom BCM57xx gigabit ethernet
device bge: ether, ifnet, mii, ifmedia, mii_phy
attach bge at pci
file dev/pci/if_bge.c bge
# Broadcom BCM570[68] gigabit ethernet
device bnx: ether, ifnet, mii, ifmedia, mii_phy, firmload
attach bnx at pci
file dev/pci/if_bnx.c bnx
# VIA VT6122
device vge: ether, ifnet, mii, ifmedia, mii_phy
attach vge at pci
file dev/pci/if_vge.c vge
# Sundance Tech./Tamarack TC9021 Gigabit Ethernet
device stge: ether, ifnet, mii, ifmedia, mii_phy, mii_bitbang
attach stge at pci
file dev/pci/if_stge.c stge
# NVIDIA nForce Ethernet
device nfe: ether, ifnet, mii, ifmedia, mii_phy
attach nfe at pci
file dev/pci/if_nfe.c nfe
# AMD-76x PM and SMBus controller
device amdpm: i2cbus
attach amdpm at pci
file dev/pci/amdpm.c amdpm
# VIA VT82C686A hardware monitor
device viaenv
attach viaenv at pci
file dev/pci/viaenv.c viaenv
# Broadcom BCM4401 gigabit ethernet
device bce: ether, ifnet, mii, ifmedia, mii_phy
attach bce at pci
file dev/pci/if_bce.c bce
# Atheros AR5k (802.11a/b/g) PCI/Mini-PCI
attach ath at pci with ath_pci
file dev/pci/if_ath_pci.c ath_pci
# ADMtek ADM8211 PCI/Mini-PCI
attach atw at pci with atw_pci
file dev/pci/if_atw_pci.c atw_pci
# Realtek RTL8180 PCI/Mini-PCI
attach rtw at pci with rtw_pci
file dev/pci/if_rtw_pci.c rtw_pci
# Ralink RT2500 PCI/Mini-PCI
attach ral at pci with ral_pci
file dev/pci/if_ral_pci.c ral_pci
#
# Texas Instruments ACX
#
attach acx at pci with acx_pci
file dev/pci/if_acx_pci.c acx_pci
#
# Conexant PrismGT
#
attach pgt at pci with pgt_pci
file dev/pci/if_pgt_pci.c pgt_pci
#
# Marvel Libertas Open
#
attach malo at pci with malo_pci
file dev/pci/if_malo_pci.c malo_pci
# Sangoma PCI card
device san: ifnet, ifmedia, sppp
attach san at pci
file dev/pci/if_sandrv.c san
file dev/pci/if_san_common.c san
file dev/pci/if_san_obsd.c san
file dev/pci/if_san_te1.c san
file dev/pci/if_san_xilinx.c san
# PIIX4 power management controller
device piixpm: i2cbus
attach piixpm at pci
file dev/pci/piixpm.c piixpm
# Intel 6300ESB ICH watchdog timer
device ichwdt {}
attach ichwdt at pci
file dev/pci/ichwdt.c ichwdt
# Mindspeed/Conexant MUSYCC HDLC controller
device musycc {} : ifnet
attach musycc at pci
file dev/pci/musycc.c musycc
file dev/pci/musycc_obsd.c musycc
# Accoom Artery PCI card
device art: musycc, ifnet, ifmedia, sppp
attach art at musycc
file dev/pci/if_art.c art
file dev/pci/bt8370.c art
# VMware Virtual NIC
device vic: ether, ifnet, ifmedia
attach vic at pci
file dev/pci/if_vic.c vic
# Intel ICH SMBus controller
device ichiic: i2cbus
attach ichiic at pci
file dev/pci/ichiic.c ichiic
# Acer Labs M7101 power management controller
device alipm: i2cbus
attach alipm at pci
file dev/pci/alipm.c alipm
# VIA VT8237 bus control and power management controller
device viapm: i2cbus
attach viapm at pci
file dev/pci/viapm.c viapm
# AMD-8111 SMBus controller
device amdiic: i2cbus
attach amdiic at pci
file dev/pci/amdiic.c amdiic
# NVIDIA nForce2/3/4 SMBus controller
device nviic: i2cbus
attach nviic at pci
file dev/pci/nviic.c nviic
# SD Host Controller
attach sdhc at pci with sdhc_pci
file dev/pci/sdhc_pci.c sdhc