Home | History | Annotate | Download | only in tc
History log of /src/sys/arch/pmax/tc/dtkbd.c
RevisionDateAuthorComments
 1.13  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.12  24-Apr-2021  thorpej branches: 1.12.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.11  10-Nov-2013  christos branches: 1.11.44;
fix unused variable warnings
 1.10  09-Jul-2011  matt branches: 1.10.2; 1.10.12; 1.10.16;
Cleanu <machine/*> includes
 1.9  04-Jun-2011  tsutsui - split device_t/softc
- make sure that *(dtdv_handler)() registered via dt_establish_handler()
takes softc, not device_t as other interrupt handlers

No crash during device attach on GXemul.
 1.8  28-Apr-2008  martin branches: 1.8.22; 1.8.28; 1.8.32;
Remove clause 3 and 4 from TNF licenses
 1.7  04-Mar-2007  christos branches: 1.7.40; 1.7.42; 1.7.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.6  11-Dec-2005  christos branches: 1.6.26;
merge ktrace-lwp.
 1.5  10-Jan-2005  mhitch branches: 1.5.10;
Fix Maxine keyboard and mouse ioctl routines to return EPASSTHROUGH for
unrecognized commands so they can be passed to other handlers.
 1.4  08-Jan-2005  mhitch Fix MAXINE keyboard multi-key press bug. Keyboard sends all currently
depressed keys in each message. Any keys in current message that are
also present in previous message are ignored. However, copying a byte
array into an integer array and comparing entry by entry doesn't have
the desired effect. Change the definition of the save buffer to match
the current message buffer data.
 1.3  23-Dec-2003  ad MAXINE keyboard and mouse now works, albeit with some minor issues.
 1.2  13-Dec-2003  ad Add drivers for the desktop bus, DC-7085 and pm display. Make it possible to
select between rcons or wscons at compile time. Ok'ed by simonb.
 1.1  15-Mar-2002  ad branches: 1.1.2; 1.1.12;
file dtkbd.c was initially added on branch ad_pmax_wscons.
 1.1.12.5  17-Jan-2005  skrll Sync with HEAD.
 1.1.12.4  13-Jan-2005  skrll Adapt to branch
 1.1.12.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.12.2  18-Sep-2004  skrll Sync with HEAD.
 1.1.12.1  03-Aug-2004  skrll Sync with HEAD
 1.1.2.4  15-Mar-2002  ad More sanity checks.
 1.1.2.3  15-Mar-2002  ad Bail out if dt_identify() fails.
 1.1.2.2  15-Mar-2002  ad Remove debugging crud.
 1.1.2.1  15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.5.10.2  03-Sep-2007  yamt sync with head.
 1.5.10.1  21-Jun-2006  yamt sync with head.
 1.6.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.7.44.1  16-May-2008  yamt sync with head.
 1.7.42.1  18-May-2008  yamt sync with head.
 1.7.40.1  02-Jun-2008  mjf Sync with HEAD.
 1.8.32.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.28.1  06-Jun-2011  jruoho Sync with HEAD.
 1.8.22.1  12-Jun-2011  rmind sync with head
 1.10.16.1  18-May-2014  rmind sync with head
 1.10.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.2.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.11.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.12.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed