Home | History | Annotate | Download | only in pcmcia
History log of /src/sys/dev/pcmcia/esp_pcmcia.c
RevisionDateAuthorComments
 1.39  07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.38  12-May-2009  cegger branches: 1.38.22; 1.38.40;
struct device * -> device_t, no functional changes intended.
 1.37  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.36  28-Apr-2008  martin branches: 1.36.8; 1.36.14;
Remove clause 3 and 4 from TNF licenses
 1.35  13-Apr-2008  tsutsui branches: 1.35.2; 1.35.4;
Split device_t/softc for MI ncr53c9x and some related devices,
with various cleanup.
 1.34  05-Apr-2008  cegger use aprint_*_dev and device_xname
 1.33  19-Oct-2007  ad branches: 1.33.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.32  09-Jul-2007  ad branches: 1.32.6; 1.32.8; 1.32.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.31  04-Mar-2007  christos branches: 1.31.2; 1.31.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.30  28-Dec-2006  itohy branches: 1.30.2;
Don't use esp_pcmcia_enable() before attaching chip driver (ncr53c9x),
since it touches storage allocated by the chip attach function.
The chip driver properly calls scsipi_adapter_addref() /
scsipi_adapter_delref(), and just deleting the esp_pcmcia_enable() call
and the relevant code should be OK.

Fix panic descibed in PR kern/26909.
 1.29  16-Nov-2006  christos branches: 1.29.2; 1.29.4;
__unused removal on arguments; approved by core.
 1.28  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.27  11-Dec-2005  christos branches: 1.27.20; 1.27.22;
merge ktrace-lwp.
 1.26  27-Feb-2005  perry branches: 1.26.4;
nuke trailing whitespace
 1.25  04-Feb-2005  perry de-__P
 1.24  10-Aug-2004  mycroft branches: 1.24.4; 1.24.6;
Rather than the silly state machine, set whatever higher-level reference
count there is (for SCSI, adapt_refcnt) to 1 and call the appropriate
"delref" function afterwards to disable the controller. This is a bit
simpler.

In a couple of cases, just remove the state machine, because it wasn't
really necessary.
 1.23  10-Aug-2004  mycroft Constify.
 1.22  10-Aug-2004  mycroft Now that all the silly string printing is gone, move the location where we
print a newline so it doesn't have to be done in every driver.
 1.21  10-Aug-2004  mycroft Enhance pcmcia_product_lookup():
* Remove the "expected function" value. This was just causing problems with
multifunction cards. Differentiating the functions is better done by
checking the function type (which we now do in ep and sm).
* Add support for matching CIS strings. This necessitated changing the calling
pattern a little too.

Use this enhanced version rather than driver-specific versions that do the
same thing.

Also, remove the last vestiges of PCMCIA_STR_*.
 1.20  10-Aug-2004  mycroft More careful about cleaning up pointers.
 1.19  10-Aug-2004  mycroft Print diagnostics in only one place if intr_establish() or function_enable()
fails.

Also, be a little more careful about passing up error values, and consistently
clear our interrupt handler pointer.
 1.18  10-Aug-2004  mycroft Update to the new world order.

XXX Note: This eliminates some register writes that were done in the "init"
routine during attach. If these are necessary, they need to do done somewhere
else, quite possibly the enable routine.
 1.17  08-Aug-2004  mycroft Remove the "offset" and "size" arguments to pcmcia_io_map(). In the singular
case (ne@pcmcia) where we were using these to create a subregion, it is better
handled by calling bus_space_subregion().

Now there is a 1:1 mapping between I/O spaces in the config table and windows
mapped in the function. Rework the multifunction mapping code to take
advantage of this by using both I/O base addresses if necessary.
 1.16  28-Dec-2003  itohy Add support for RATOC REX-9530.
Not fully tested, though.
 1.15  12-Jan-2003  jdolecek branches: 1.15.2;
fix mistake in the attachment, which caused the device interrupt handler
to not be properly setup
fix provided in PR kern/13621 by ITOH Hideki
 1.14  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.13  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.12  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11  01-Jun-2002  lukem SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.10  13-Nov-2001  lukem branches: 1.10.8;
add RCSIDs
 1.9  25-Apr-2001  bouyer branches: 1.9.2;
Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
(no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
 1.8  05-Jun-2000  tsutsui branches: 1.8.4; 1.8.6;
Well, this is esp_pcmcia, not esp_pci.
 1.7  05-Jun-2000  tsutsui Oops, struct scsipi_adapter was changed recently.
 1.6  05-Jun-2000  tsutsui Adapt MI ncr53c9x changes.
 1.5  23-Mar-2000  thorpej branches: 1.5.2;
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.4  20-Mar-2000  mycroft Oops; fix a slight biff in the PIO input routine.
 1.3  20-Mar-2000  tsutsui Cosmetics. ( 0x80 -> NCRSTAT_INT )
 1.2  20-Mar-2000  mycroft Interrupts work now. Woohoo.
 1.1  19-Mar-2000  mycroft Add esp_pcmcia. For the moment it's polled, since interrupts don't seem to be
working.
 1.5.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.8.6.5  15-Jan-2003  thorpej Sync with HEAD.
 1.8.6.4  18-Oct-2002  nathanw Catch up to -current.
 1.8.6.3  20-Jun-2002  nathanw Catch up to -current.
 1.8.6.2  14-Nov-2001  nathanw Catch up to -current.
 1.8.6.1  21-Jun-2001  nathanw Catch up to -current.
 1.8.4.3  22-Jan-2001  bouyer fill in adapt_minphys and adapt_request
 1.8.4.2  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.8.4.1  05-Jun-2000  bouyer file esp_pcmcia.c was added on branch thorpej_scsipi on 2000-11-20 11:42:42 +0000
 1.9.2.3  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.9.2.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.8.1  20-Jun-2002  gehenna catch up with -current.
 1.15.2.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.15.2.5  04-Feb-2005  skrll Sync with HEAD.
 1.15.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.15.2.2  12-Aug-2004  skrll Sync with HEAD.
 1.15.2.1  03-Aug-2004  skrll Sync with HEAD
 1.24.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.24.6.1  12-Feb-2005  yamt sync with head.
 1.24.4.1  29-Apr-2005  kent sync with -current
 1.26.4.3  27-Oct-2007  yamt sync with head.
 1.26.4.2  03-Sep-2007  yamt sync with head.
 1.26.4.1  30-Dec-2006  yamt sync with head.
 1.27.22.2  10-Dec-2006  yamt sync with head.
 1.27.22.1  22-Oct-2006  yamt sync with head
 1.27.20.2  12-Jan-2007  ad Sync with head.
 1.27.20.1  18-Nov-2006  ad Sync with head.
 1.29.4.1  03-Jun-2008  skrll Sync with netbsd-4.
 1.29.2.1  19-Apr-2008  bouyer Pull up following revision(s) (requested by itohy in ticket #1130):
sys/dev/pcmcia/esp_pcmcia.c: revision 1.30
Fix kernel panics on attach. Fix kern/34537 (and part of kern/26909).
 1.30.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.31.4.1  11-Jul-2007  mjf Sync with head.
 1.31.2.2  23-Oct-2007  ad Sync with head.
 1.31.2.1  01-Jul-2007  ad Adapt to callout API change.
 1.32.12.1  25-Oct-2007  bouyer Sync with HEAD.
 1.32.8.1  06-Nov-2007  matt sync with HEAD
 1.32.6.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.33.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.35.4.3  16-May-2009  yamt sync with head
 1.35.4.2  04-May-2009  yamt sync with head.
 1.35.4.1  16-May-2008  yamt sync with head.
 1.35.2.1  18-May-2008  yamt sync with head.
 1.36.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.36.8.1  28-Apr-2009  skrll Sync with HEAD.
 1.38.40.1  09-Jul-2016  skrll Sync with HEAD
 1.38.22.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed