NetBSD/sys/dev/pcmcia/files.pcmcia
mycroft 2d5fe6edb4 Split "xi" into a "xirc" frontend (similar to mhzc; it attaches two child
devices) and a "xi" backend.

My CE2 and CEM2 cards are now probed correctly.  However, there are still
some problems with one model of the CE2, and the CEM2 doesn't seem to get
any modem interrupts.

While I'm at it, fix several bugs:

* The tuple scan for the MAC address was broken in multiple ways.
* xi_intr() did not deal well with a shared interrupt.
* We were setting the wrong page number to look at the receive status.  (How
  did this work???)
* Remove the xi_full_reset() from xi_reset().  Move the parts of
  xi_full_reset() needed to undo the effect of xi_stop() into xi_init().  This
  allows a stop/init pair to DTRT, and much quicker, as used by various
  ioctl()s.
* Set the TRS register before reading the TSO register, as the Linux driver
  does.  While I'm at it, fix the name.
* Fix numerous problems with xi_set_address().  "Where do I begin?"  There's a
  chance that multicast works now, but I haven't tested it.
* Explicitly clear the MSR register, and also force SELECT_MII to 0 if we
  didn't find any PHYs.
* Clean up some cruft that appears to be bogus.

Probably needs more work, but it's a start.
2004-08-08 05:56:08 +00:00

144 lines
4.2 KiB
Plaintext

# $NetBSD: files.pcmcia,v 1.46 2004/08/08 05:56:08 mycroft Exp $
#
# Config.new file and device description for machine-independent PCMCIA code.
# Included by ports that need it.
defflag PCMCIAVERBOSE
device pcmcia {[function = -1], [irq = -1]}
file dev/pcmcia/pcmcia.c pcmcia
file dev/pcmcia/pcmcia_cis.c pcmcia
file dev/pcmcia/pcmcia_cis_quirks.c pcmcia
# device declaration in sys/conf/files
attach pcmcia at pcmciabus
# 3Com 3c589 Ethernet, 3c562 multifunction Ethernet, and 3CXEM556
# multifunction Ethernet controllers
# device declaration in sys/conf/files
attach ep at pcmcia with ep_pcmcia
file dev/pcmcia/if_ep_pcmcia.c ep_pcmcia
# National Semiconductor DS8390/WD83C690-based boards
# (NE[12]000, and clones)
attach ne at pcmcia with ne_pcmcia: rtl80x9, dl10019, ax88190, mii_bitbang
file dev/pcmcia/if_ne_pcmcia.c ne_pcmcia
# Adaptec APA-1460 SCSI Host Adapter
attach aic at pcmcia with aic_pcmcia
file dev/pcmcia/aic_pcmcia.c aic_pcmcia
# NCR 53c80-based cards
attach nca at pcmcia with nca_pcmcia
file dev/pcmcia/nca_pcmcia.c nca_pcmcia
# NCR 53c406-based cards
attach esp at pcmcia with esp_pcmcia
file dev/pcmcia/esp_pcmcia.c esp_pcmcia
# Fujitsu MB87030-based cards
attach spc at pcmcia with spc_pcmcia
file dev/pcmcia/spc_pcmcia.c spc_pcmcia
attach com at pcmcia with com_pcmcia
file dev/pcmcia/com_pcmcia.c com_pcmcia
# Digital RoamAbout / Lucent WaveLAN PCMCIA card
attach wl at pcmcia with wl_pcmcia
file dev/pcmcia/if_wl_pcmcia.c wl_pcmcia
defflag opt_wl_pcmcia.h WL_TIMER WLP_CC_DEBUG WL_DEBUG MMC_STATUS
WL_IFCNTRS WL_TIMING
# PCMCIA IDE controller
attach wdc at pcmcia with wdc_pcmcia
file dev/pcmcia/wdc_pcmcia.c wdc_pcmcia
# SMC91Cxx Ethernet Controllers (i.e. Megahertz X-Jack)
attach sm at pcmcia with sm_pcmcia
file dev/pcmcia/if_sm_pcmcia.c sm_pcmcia
# MB8696x Ethernet Controllers (i.e. TDK LAK CD021BX)
attach mbe at pcmcia with mbe_pcmcia
file dev/pcmcia/if_mbe_pcmcia.c mbe_pcmcia
# PCMCIA Floppy controller
#attach fdc at pcmcia with fdc_pcmcia
#file dev/pcmcia/fdc_pcmcia.c fdc_pcmcia
# PCMCIA multi-port serial cards
device pcmcom {[slave = -1]}
attach pcmcom at pcmcia
attach com at pcmcom with com_pcmcom
file dev/pcmcia/pcmcom.c pcmcom | com_pcmcom needs-flag
# Xircom Netwave
device cnw: arp, ether, ifnet
attach cnw at pcmcia
file dev/pcmcia/if_cnw.c cnw
# Megaherz combo cards
device mhzc { }
attach mhzc at pcmcia
attach com at mhzc with com_mhzc
attach sm at mhzc with sm_mhzc
file dev/pcmcia/mhzc.c mhzc | com_mhzc | sm_mhzc
needs-flag
# Raylink/WebGear WLAN IEEE 802.11 FH
device ray: arp, ether, ifnet
attach ray at pcmcia
file dev/pcmcia/if_ray.c ray
# AMD 79c930-based 802.11 cards (including BayStack 650 FH card).
attach awi at pcmcia with awi_pcmcia
file dev/pcmcia/if_awi_pcmcia.c awi_pcmcia
# Lucent & Intersil WaveLan IEEE (802.11)
attach wi at pcmcia with wi_pcmcia
file dev/pcmcia/if_wi_pcmcia.c wi_pcmcia
# Xircom Ethernet and Ethernet+Modem cards
device xirc { }
device xi: arp, ether, ifnet, mii
attach xirc at pcmcia
attach com at xirc with com_xirc
attach xi at xirc with xi_xirc
file dev/pcmcia/xirc.c xirc | com_xirc | xi_xirc
needs-flag
file dev/pcmcia/if_xi.c xi
# IBM Tropic-based Token Ring cards
attach tr at pcmcia with tr_pcmcia
file dev/pcmcia/if_tr_pcmcia.c tr_pcmcia
# Crystal Semiconductor CS8920 based cards
attach cs at pcmcia with cs_pcmcia
file dev/pcmcia/if_cs_pcmcia.c cs_pcmcia
# Aironet PC4500/PC4800
attach an at pcmcia with an_pcmcia
file dev/pcmcia/if_an_pcmcia.c an_pcmcia
# ISDN devices
attach isic at pcmcia with isic_pcmcia
file dev/pcmcia/isic_pcmcia.c isic_pcmcia
defflag opt_isicpcmcia.h ISICPCMCIA_AVM_A1 ISICPCMCIA_ELSA_ISDNMC
ISICPCMCIA_ELSA_MCALL ISICPCMCIA_SBSPEEDSTAR2
file dev/pcmcia/isic_pcmcia_avm_fritz.c isic_pcmcia
file dev/pcmcia/isic_pcmcia_elsa_isdnmc.c isic_pcmcia
file dev/pcmcia/isic_pcmcia_elsa_mcall.c isic_pcmcia
file dev/pcmcia/isic_pcmcia_sbspeedstar2.c isic_pcmcia
# Audio devices
# Eiger Labs with ESS 1688
device esl { }: audiobus, midibus, auconv, mulaw
attach esl at pcmcia with esl_pcmcia
file dev/pcmcia/esl_pcmcia.c esl_pcmcia
file dev/pcmcia/esl.c esl
attach opl at esl with opl_esl
file dev/pcmcia/opl_esl.c opl_esl