Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sparc/dev/ts102.c
RevisionDateAuthorComments
 1.22  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.21  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.20  11-Jun-2021  jdc branches: 1.20.2;
During slot enable and disable, make sure that the card Access and VCC
controls are enabled and disabled at the same time.
Also remove the software reset during slot enable (we are already in
reset because of the earlier Access and VCC changes).
While here, convert DELAY() to delay() and tsleep(), like nell(4).
 1.19  24-Apr-2021  thorpej branches: 1.19.2;
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.18  19-Oct-2013  mrg branches: 1.18.44;
- remove unused but set variables.
- use __USE() where necessary.
- remove useless 'volatile' markers

kd.c:consinit() might be wrong for old proms, but i've not
changed it really.
 1.17  27-Oct-2012  chs branches: 1.17.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.16  26-Jul-2011  dyoung branches: 1.16.2; 1.16.12;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.15  01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.14  17-Sep-2009  tsutsui Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
 1.13  04-Aug-2008  macallan fix another botched device_t-ification
 1.12  17-May-2008  macallan branches: 1.12.4;
struct device * -> device_t
 1.11  17-May-2008  macallan cosmetics:
- finally add my copyright, almost 3 year after the fact
- remove a comment that never applied to the NetBSD port of this driver,
only the OpenBSD version
 1.10  03-Dec-2007  ad branches: 1.10.14; 1.10.16; 1.10.18; 1.10.20;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.9  17-Oct-2007  garbled branches: 1.9.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.8  09-Jul-2007  ad branches: 1.8.8; 1.8.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.7  06-Mar-2006  macallan branches: 1.7.10; 1.7.24; 1.7.26; 1.7.32;
- use a lock to serialize tadpole_request()
- add a callback to signal monitor detection on the external VGA port
- don't call tadpole-request() in interrupt context
- use a kernel thread for various not time-critical work like device
monitoring, LCD status updates, external event handling and so on
(the monitoring stuff is preliminary and to be replaced by a more generic API)
 1.6  04-Mar-2006  uwe branches: 1.6.2;
s/u_intN_t/uintN_t/
 1.5  16-Nov-2005  macallan branches: 1.5.4; 1.5.6;
- ansify
- pick some KNF nits
- remove trailing whitespaces
- remove some useless commented out code
 1.4  14-Nov-2005  uwe Make this compile with DEBUG.
 1.3  13-Jul-2005  macallan branches: 1.3.6; 1.3.8;
fixed a glitch that would trigger a warning when compiled without tctrl.
Doesn't make much sense since tctrl is on the same chip but anyway.
 1.2  06-Jul-2005  macallan forgot the $NetBSD header
 1.1  06-Jul-2005  macallan Add support for the TS102 PCMCIA controller found in SPARCbooks
 1.3.8.1  22-Nov-2005  yamt sync with head.
 1.3.6.3  11-Dec-2005  christos Sync with head.
 1.3.6.2  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.6.1  13-Jul-2005  skrll file ts102.c was added on branch ktrace-lwp on 2005-11-10 13:58:55 +0000
 1.5.6.1  22-Apr-2006  simonb Sync with head.
 1.5.4.1  09-Sep-2006  rpaulo sync with head
 1.6.2.1  13-Mar-2006  yamt sync with head.
 1.7.32.1  03-Oct-2007  garbled Sync with HEAD
 1.7.26.1  11-Jul-2007  mjf Sync with head.
 1.7.24.2  03-Dec-2007  ad Sync with HEAD.
 1.7.24.1  15-Jul-2007  ad Sync with head.
 1.7.10.4  07-Dec-2007  yamt sync with head
 1.7.10.3  03-Sep-2007  yamt sync with head.
 1.7.10.2  21-Jun-2006  yamt sync with head.
 1.7.10.1  06-Mar-2006  yamt file ts102.c was added on branch yamt-lazymbuf on 2006-06-21 14:55:54 +0000
 1.8.10.2  09-Jan-2008  matt sync with HEAD
 1.8.10.1  06-Nov-2007  matt sync with HEAD
 1.8.8.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.9.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.10.20.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10.20.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.18.2  11-Mar-2010  yamt sync with head
 1.10.18.1  04-May-2009  yamt sync with head.
 1.10.16.1  18-May-2008  yamt sync with head.
 1.10.14.2  28-Sep-2008  mjf Sync with HEAD.
 1.10.14.1  02-Jun-2008  mjf Sync with HEAD.
 1.12.4.1  19-Oct-2008  haad Sync with HEAD.
 1.16.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.16.2.2  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.16.2.1  30-Oct-2012  yamt sync with head
 1.17.2.1  18-May-2014  rmind sync with head
 1.18.44.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.19.2.1  17-Jun-2021  thorpej Sync w/ HEAD.
 1.20.2.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed