Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hpcmips/dev/it8368.c
RevisionDateAuthorComments
 1.28  08-Dec-2023  andvar fix triple t typos in comment and debug message.
 1.27  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.26  25-Apr-2021  thorpej branches: 1.26.6;
it8368_attach_socket(): Pass the device_t to config_found(), not the
softc. This was missed due to a (void *) cast when the device_t / softc
split changes occurred.
 1.25  24-Apr-2021  thorpej branches: 1.25.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.24  27-Oct-2012  chs branches: 1.24.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.23  26-Jul-2011  dyoung branches: 1.23.2; 1.23.12;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.22  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.21  24-Dec-2005  perry branches: 1.21.74; 1.21.76; 1.21.78;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.20  11-Dec-2005  christos merge ktrace-lwp.
 1.19  28-Jun-2005  drochner branches: 1.19.2;
convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.18  15-Jul-2003  lukem __KERNEL_RCSID()
 1.17  01-Jan-2003  thorpej branches: 1.17.2;
Use aprint_normal() for cfprint routines.
 1.16  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.15  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.14  27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.13  03-May-2002  takemura Fixed debug print.
 1.12  29-Jan-2002  uch clean up debug print and configuration.
 1.11  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.10  15-Sep-2001  uch branches: 1.10.4;
ANSIfy, KNF, change my copyright.
 1.9  08-May-2001  uch branches: 1.9.2; 1.9.4;
set allocatable PCMCIA I/O space size.
 1.8  12-Mar-2000  uch branches: 1.8.6; 1.8.8;
add WINCE_DEFAULT_SETTING and IT8368E_DESTRUCTIVE_CHECK for debug.
 1.7  03-Mar-2000  uch cosmetic change
 1.6  06-Jan-2000  uch implement IT8368 legacy attr mode. Mobilon requires it.
 1.5  03-Jan-2000  uch clean up boot message.
 1.4  30-Dec-1999  uch Before attach card, check card is detected.
 1.3  27-Dec-1999  uch Implement PCMCIA controller power up/reset.
 1.2  29-Nov-1999  uch branches: 1.2.2;
commet out non-working code.
 1.1  21-Nov-1999  uch ITE IT8368E PCMCIA controller
 1.2.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.8.1  21-Jun-2001  nathanw Catch up to -current.
 1.8.6.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.6.1  12-Mar-2000  bouyer file it8368.c was added on branch thorpej_scsipi on 2000-11-20 20:45:56 +0000
 1.9.4.1  01-Oct-2001  fvdl Catch up with -current.
 1.9.2.4  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.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.9.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.4.6  03-Jan-2003  thorpej Sync with HEAD.
 1.10.4.5  18-Oct-2002  nathanw Catch up to -current.
 1.10.4.4  20-Jun-2002  nathanw Catch up to -current.
 1.10.4.3  28-Feb-2002  nathanw Catch up to -current.
 1.10.4.2  08-Jan-2002  nathanw Catch up to -current.
 1.10.4.1  15-Sep-2001  nathanw file it8368.c was added on branch nathanw_sa on 2002-01-08 00:24:59 +0000
 1.17.2.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1  03-Aug-2004  skrll Sync with HEAD
 1.19.2.1  21-Jun-2006  yamt sync with head.
 1.21.78.1  16-May-2008  yamt sync with head.
 1.21.76.1  18-May-2008  yamt sync with head.
 1.21.74.1  02-Jun-2008  mjf Sync with HEAD.
 1.23.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.23.2.1  30-Oct-2012  yamt sync with head
 1.24.52.1  23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.25.2.1  13-May-2021  thorpej Sync with HEAD.
 1.26.6.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed