Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/i82365var.h
RevisionDateAuthorComments
 1.33  14-Sep-2024  andvar s/intterupt/interrupt/ in comments.
 1.32  27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.31  17-Sep-2009  tsutsui branches: 1.31.12; 1.31.22;
Misc KNF and cosmetics, and remove unnecessary casts etc.
 1.30  14-Sep-2009  tsutsui u_intNN_t -> uintNN_t
 1.29  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.28  05-Dec-2007  ad branches: 1.28.16; 1.28.30;
lockmgr -> mutex
 1.27  09-Jul-2007  ad branches: 1.27.6; 1.27.8; 1.27.14; 1.27.16;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.26  16-Feb-2006  perry branches: 1.26.24; 1.26.26;
Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
 1.25  24-Dec-2005  perry branches: 1.25.2; 1.25.4; 1.25.6;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.24  11-Dec-2005  christos merge ktrace-lwp.
 1.23  30-May-2005  christos branches: 1.23.2;
- add missing const
- fix variable shadowing
- remove unneeded casts
 1.22  04-Feb-2005  perry de-__P
 1.21  13-Sep-2004  drochner branches: 1.21.4; 1.21.6;
use locator passing versions of xxxsubmatch() and simplify the code by
using arithmetics instead of case statements
 1.20  12-Aug-2004  mycroft Various cleanup:
* Clean up the socket state earlier in the attach process -- not relying on
the socket attachment to do it.
* Get rid of PCIC_LASTSTATE_HALF. It's pointless.
* In pcic_wait_ready(), also check for the card vanishing, like in pccbb.
* Assert #RESET before powering up the card, not after. (I think it was
actually okay because the value was left as 0 from a previous disable or
the initial socket attach, but...
* If the card fails to come ready, don't bother reinstating windows or
anything -- just power it down.
 1.19  11-Aug-2004  mycroft Rather than having a call up from the low-level driver to get the card type,
instead have a call down from the PCMCIA mid-layer to set it. Use this from
pcmcia_function_enable(). (Currently the policy is the same, but this would
allow for more flexibility in deciding which mode to use.)

Now it is safe to hold the socket enabled during attach, so do that. Only
one enable/disable cycle to attach a card now!
 1.18  05-Sep-2003  mycroft Several changes to eliminate bogus controllers and sockets from being found:

PCIC_VENDOR_NONE: New.
PCIC_VENDOR_CIRRUS_*: Collapse the 2 chips into one vendor ID.

pcic_ident_ok(): Check the ID revision field -- if it's 0, punt.

pcic_vendor(): Check the ID revision field -- if it's 0, or the ID register
is all-1s, assume there is no chip present. (Previously this would return
"Unknown controller" -- which, AFAICT, *never* resulted in a working device.)
Do the Cirrus check only after verifying that we got the Intel ID.

pcic_attach(): Use a priori knowledge of the Cirrus chips to determine the
number of sockets rather than trying (unsuccessfully) to probe. Also, just
blast all of PCIC_INTR -- we do this in pcic_deactivate_card() anyway.
 1.17  24-Nov-2002  takemura branches: 1.17.6;
3.3V support for Ricoh 5C[23]96 parts from ngc@ff.iij4u.or.jp.
Preliminary bridge identification code from imp@village.org.
 1.16  15-Dec-2001  soren To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
 1.15  23-Mar-2000  thorpej branches: 1.15.6; 1.15.8;
New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.14  26-Feb-2000  thorpej Put a lock on the pcic, to serialize access to the chip during event
handling. This is important when multiple cards are present when
the system boots, as we use tsleep now instead of delay in various
places (delay used to provide serialization by virtue of not causing
a context switch).
 1.13  22-Feb-2000  thorpej Don't use void * for chipset tags. Bad hacker, no biscuit.
 1.12  08-Feb-2000  mycroft Forgotten part of chopps\'s i82365_isasubr.c commit.
 1.11  04-Feb-2000  chopps keep track of the enabled state of a socket
 1.10  02-Feb-2000  enami Cosmetic changes.
 1.9  01-Feb-2000  chopps implement probing for available irqs on non-cirrus pcmcia controllers
including cardbus controllers running in pcic mode
 1.8  15-Oct-1999  haya branches: 1.8.2;
This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h
 1.7  21-Jan-1999  msaitoh branches: 1.7.8;
Fix about insertion/removal event problem.
 1.6  01-Jan-1999  christos PR/6669: Michael Eriksson: pcic_chip_mem_alloc() can't handle large requests
 1.5  16-Nov-1998  thorpej Implement a kernel thread per PCMCIA socket to handle card insertion and
removal events.
 1.4  23-May-1998  matt Changes so that these compile on NetBSD/alpha as well as NetBSD/i386.
 1.3  01-Feb-1998  marc move pcic_wait_ready to i82365.c
 1.2  16-Oct-1997  thorpej Pull marc-pcmcia branch down to trunk.
 1.1  28-Aug-1997  marc branches: 1.1.2;
file i82365var.h was initially added on branch marc-pcmcia.
 1.1.2.5  16-Oct-1997  thorpej Copyright/license update.
 1.1.2.4  16-Oct-1997  thorpej KNF, RCS IDs.
 1.1.2.3  14-Oct-1997  thorpej Allow the i/o address alignment to be specified in the call to
pcmcia_io_alloc(). If the caller does not care about the alignment, 0
should be passed.
 1.1.2.2  27-Sep-1997  marc add fields to pcic_handle for power management
add fields to pcic_softc for probing the io bus width
 1.1.2.1  28-Aug-1997  marc common declarations from i82365 driver bus split
 1.7.8.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.15.8.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.6.2  11-Dec-2002  thorpej Sync with HEAD.
 1.15.6.1  08-Jan-2002  nathanw Catch up to -current.
 1.17.6.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.6.6  04-Feb-2005  skrll Sync with HEAD.
 1.17.6.5  21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.6.4  18-Sep-2004  skrll Sync with HEAD.
 1.17.6.3  25-Aug-2004  skrll Sync with HEAD.
 1.17.6.2  12-Aug-2004  skrll Sync with HEAD.
 1.17.6.1  03-Aug-2004  skrll Sync with HEAD
 1.21.6.1  12-Feb-2005  yamt sync with head.
 1.21.4.1  29-Apr-2005  kent sync with -current
 1.23.2.3  07-Dec-2007  yamt sync with head
 1.23.2.2  03-Sep-2007  yamt sync with head.
 1.23.2.1  21-Jun-2006  yamt sync with head.
 1.25.6.1  22-Apr-2006  simonb Sync with head.
 1.25.4.1  09-Sep-2006  rpaulo sync with head
 1.25.2.1  18-Feb-2006  yamt sync with head.
 1.26.26.1  11-Jul-2007  mjf Sync with head.
 1.26.24.1  09-Apr-2007  ad - Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.
 1.27.16.1  08-Dec-2007  ad Sync with head.
 1.27.14.1  08-Dec-2007  mjf Sync with HEAD.
 1.27.8.1  09-Jan-2008  matt sync with HEAD
 1.27.6.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.28.30.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.28.16.3  11-Mar-2010  yamt sync with head
 1.28.16.2  16-Sep-2009  yamt sync with head
 1.28.16.1  16-May-2009  yamt sync with head
 1.31.22.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.31.12.1  30-Oct-2012  yamt sync with head

RSS XML Feed