Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/sunscpal.c
RevisionDateAuthorComments
 1.30  10-Oct-2025  christos Fix reversed arguments and bump buffer size (thanks rillig@)
 1.29  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.28  24-Apr-2021  thorpej branches: 1.28.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.27  11-Jan-2017  skrll branches: 1.27.32;
adatper -> adapter
 1.26  25-Mar-2014  christos branches: 1.26.6; 1.26.10;
kill sprintf
 1.25  23-Nov-2009  rmind branches: 1.25.12; 1.25.22; 1.25.26;
Remove some unecessary includes sys/user.h header.
 1.24  16-Dec-2008  christos replace bitmask_snprintf(9) with snprintb(3)
 1.23  06-Jul-2008  tsutsui branches: 1.23.4;
Split device_t/softc with misc cosmetic changes.
 1.22  08-Apr-2008  cegger branches: 1.22.4; 1.22.6; 1.22.8;
use aprint_*_dev and device_xname
 1.21  24-Nov-2006  christos branches: 1.21.48;
fix spelling of accommodate; from Zapher.
 1.20  24-Dec-2005  perry branches: 1.20.20; 1.20.22;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.19  11-Dec-2005  christos merge ktrace-lwp.
 1.18  03-Jun-2005  tsutsui branches: 1.18.2;
Constify.
 1.17  27-Feb-2005  perry nuke trailing whitespace
 1.16  04-Feb-2005  perry de-__P
 1.15  18-Sep-2004  mycroft branches: 1.15.4; 1.15.6;
If we need to poll, set SCSIPI_ADAPT_POLL_ONLY rather than a homegrown flag.
 1.14  03-May-2003  wiz branches: 1.14.2;
DMA, not dma nor Dma.
 1.13  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.12  05-Apr-2002  bouyer Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
 1.11  22-Mar-2002  fredette Fixed a possible overflow bug in the timeout calculation.
 1.10  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.9  13-Nov-2001  lukem add/cleanup RCSID
 1.8  04-Nov-2001  tsutsui Use common macro to check message length.
 1.7  17-Aug-2001  fredette branches: 1.7.4;
When asked to set the transfer mode, just call back
immediately, because we don't support that.
 1.6  15-Jul-2001  fredette When reporting an ICR value, use bitmask_snprintf to
give a human-readable description of the value.
 1.5  08-Jul-2001  wiz branches: 1.5.2;
Correct various misspellings of 'transfer' and inflected forms.
 1.4  07-Jul-2001  thorpej bzero -> memset
 1.3  18-May-2001  fredette branches: 1.3.2;
Fixed some typos, removed unused asm() labels. Removed
the DMA map creation, now the bus glue does this.
 1.2  25-Apr-2001  bouyer 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.1  20-Apr-2001  fredette branches: 1.1.2;
Added support for the chipset used on the Sun2 "sc" SCSI adapters.
A little rough around the edges, but definitely a starting point.
 1.1.2.3  23-Apr-2001  bouyer Port to thorpej_scsipi.
XXX SUNSCPAL_OPENINGS can certainly be lowered to 8, as we won't queue more
than one command per device.
 1.1.2.2  23-Apr-2001  bouyer Sync with HEAD.
 1.1.2.1  20-Apr-2001  bouyer file sunscpal.c was added on branch thorpej_scsipi on 2001-04-23 09:42:20 +0000
 1.3.2.8  18-Oct-2002  nathanw Catch up to -current.
 1.3.2.7  17-Apr-2002  nathanw Catch up to -current.
 1.3.2.6  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.2.5  08-Jan-2002  nathanw Catch up to -current.
 1.3.2.4  14-Nov-2001  nathanw Catch up to -current.
 1.3.2.3  24-Aug-2001  nathanw Catch up with -current.
 1.3.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.3.2.1  18-May-2001  nathanw file sunscpal.c was added on branch nathanw_sa on 2001-06-21 20:03:22 +0000
 1.5.2.5  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.5.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.2.3  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.2.2  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.5.2.1  03-Aug-2001  lukem update to -current
 1.7.4.1  12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.14.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.2.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.2.3  04-Feb-2005  skrll Sync with HEAD.
 1.14.2.2  21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.1  18-Sep-2004  skrll Sync with HEAD.
 1.15.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.15.6.1  12-Feb-2005  yamt sync with head.
 1.15.4.1  29-Apr-2005  kent sync with -current
 1.18.2.2  30-Dec-2006  yamt sync with head.
 1.18.2.1  21-Jun-2006  yamt sync with head.
 1.20.22.1  10-Dec-2006  yamt sync with head.
 1.20.20.1  12-Jan-2007  ad Sync with head.
 1.21.48.3  17-Jan-2009  mjf Sync with HEAD.
 1.21.48.2  28-Sep-2008  mjf Sync with HEAD.
 1.21.48.1  02-Jun-2008  mjf Sync with HEAD.
 1.22.8.1  18-Jul-2008  simonb Sync with head.
 1.22.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.22.4.2  11-Mar-2010  yamt sync with head
 1.22.4.1  04-May-2009  yamt sync with head.
 1.23.4.1  19-Jan-2009  skrll Sync with HEAD.
 1.25.26.1  18-May-2014  rmind sync with head
 1.25.22.2  03-Dec-2017  jdolecek update from HEAD
 1.25.22.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.12.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.26.10.1  20-Mar-2017  pgoyette Sync with HEAD
 1.26.6.1  05-Feb-2017  skrll Sync with HEAD
 1.27.32.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.28.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed