Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jul 2001 16:41:44 -0700 (PDT)
From:      Warner Losh <imp@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/pccard pcic_pci.c pcicvar.h
Message-ID:  <200107012341.f61NfiI21340@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2001/07/01 16:41:44 PDT

  Modified files:
    sys/pccard           pcic_pci.c pcicvar.h 
  Log:
  Some interrelated interrupt changes.
  
  Frist, for pci slots, make the setup intr save the requested interrupt
  vector and arg and return rather than passing it up to our parent.  On
  interrupts, we call this vector iff there's a card in the slot.  This
  should eliminate some of the hangs or "weird" messages that people see
  when ejecting cards and also help close the race window somewhat.
  Reading the pci bus one more time for this information is judged to be
  an acceptible tradeoff since it is very very fast.
  
  Cleanup a little how we detect unsupported cards.  Only detect
  unsupported cards (eg cardbus cards) on card insertion (or more
  pedantically when a card is actually present).  This should allow us
  to change the message in the future to "cardbus card not supported
  with OLDCARD" :-).
  
  Note:
  	We may also consider this for the ISA bus case, but there the
  	reads are much more expensive and the location of the CD pin
  	status lines appears to be less standardized.  Also, the ISA
  	management interrupt isn't shared with the card's interrupt.
  	The mutliplex the CSC and function interrupts bit also appears
  	to be non-standard (or at least not imlemented on all
  	bridges).
  
  Revision  Changes    Path
  1.53      +47 -15    src/sys/pccard/pcic_pci.c
  1.15      +4 -2      src/sys/pccard/pcicvar.h


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107012341.f61NfiI21340>