Home | History | Annotate | Download | only in hd64461
History log of /src/sys/arch/hpcsh/dev/hd64461/hd64461.c
RevisionDateAuthorComments
 1.26  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.25  24-Apr-2021  thorpej branches: 1.25.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.24  19-Jul-2011  dyoung branches: 1.24.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.23  13-May-2010  kiyohara Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
 1.22  05-Apr-2009  uwe branches: 1.22.2; 1.22.4;
Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
 1.21  22-Mar-2009  uwe Don't bother trying to attach GPIO, AFE and FIR modules for which we
have no drivers.

Standby TIMER that we don't use. One of the timers is always out of
standby on my Jornada on boot (WinCE uses it), so save some power.

Standby AFE and FIR for which we have no drivers (I don't know if any
hpcsh hardware actually uses them, so they are likely to be in standby
already anyway).
 1.20  21-Mar-2009  uwe Minor cosmetic.
 1.19  28-Apr-2008  martin branches: 1.19.8; 1.19.14;
Remove clause 3 and 4 from TNF licenses
 1.18  27-Mar-2008  uwe branches: 1.18.2; 1.18.4;
Convert to use CFATTACH_DECL_NEW (no softc).
 1.17  17-Feb-2008  uwe branches: 1.17.6;
hd64461_info: Print correct full name for STBCR (s/system/standby/).
 1.16  18-Dec-2005  uwe branches: 1.16.50; 1.16.56;
Don't include sys/boot_flag.h only to get sys/reboot.h pulled in,
include the latter directly instead. Include hd64461*reg.h only under
DEBUG, where they are used. In hd64461_match use fallthrough.
 1.15  18-Dec-2005  uwe Use ANSI unitN_t types. Use "void" when defining functions with no args.
Propagate "static" to function definitions.
 1.14  11-Dec-2005  christos merge ktrace-lwp.
 1.13  15-Jul-2003  lukem branches: 1.13.16;
__KERNEL_RCSID()
 1.12  01-Jan-2003  thorpej branches: 1.12.2;
Use aprint_normal() for cfprint routines.
 1.11  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.10  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.9  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8  27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.7  28-Mar-2002  uch branches: 1.7.6;
rework HD64461, HD64465 interrupt handling.
 1.6  24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.5  17-Feb-2002  uch SH3/SH4 common kernel support.
 1.4  29-Jan-2002  uch clean up debug print and configuration.
 1.3  27-Jan-2002  uch clean up debug print and configuration.
 1.2  13-Jul-2001  uch cosmetic changes.
 1.1  21-Feb-2001  uch branches: 1.1.4; 1.1.6;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.6.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.1.6.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3  16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.1.6.1  03-Aug-2001  lukem update to -current
 1.1.4.2  12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1  21-Feb-2001  bouyer file hd64461.c was added on branch thorpej_scsipi on 2001-03-12 13:28:51 +0000
 1.7.6.3  03-Jan-2003  thorpej Sync with HEAD.
 1.7.6.2  18-Oct-2002  nathanw Catch up to -current.
 1.7.6.1  28-Mar-2002  nathanw file hd64461.c was added on branch nathanw_sa on 2002-10-18 02:37:22 +0000
 1.12.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1  03-Aug-2004  skrll Sync with HEAD
 1.13.16.2  27-Feb-2008  yamt sync with head.
 1.13.16.1  21-Jun-2006  yamt sync with head.
 1.16.56.1  18-Feb-2008  mjf Sync with HEAD.
 1.16.50.1  23-Mar-2008  matt sync with HEAD
 1.17.6.2  02-Jun-2008  mjf Sync with HEAD.
 1.17.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.18.4.3  11-Aug-2010  yamt sync with head.
 1.18.4.2  04-May-2009  yamt sync with head.
 1.18.4.1  16-May-2008  yamt sync with head.
 1.18.2.1  18-May-2008  yamt sync with head.
 1.19.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.19.8.1  28-Apr-2009  skrll Sync with HEAD.
 1.22.4.1  30-May-2010  rmind sync with head
 1.22.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.24.68.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.25.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed