Home | History | Annotate | Download | only in adb
History log of /src/sys/dev/adb/adb_bus.c
RevisionDateAuthorComments
 1.14  16-Jun-2025  macallan tsleep/wakeup -> cv_timedwait/cv_signal
while there remove a bunch of unnecessary includes
 1.13  11-Jun-2025  macallan make this actually self-contined
- don't include machine/adbsys.h - we only needed it for a couple #defines,
none of which are arch-specific
- move all the ADB definitions to adbvar.h
 1.12  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11  24-Apr-2021  thorpej branches: 1.11.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.10  08-Nov-2014  macallan branches: 1.10.36;
aprint_*-ize
 1.9  12-May-2009  cegger branches: 1.9.22;
KNF
 1.8  29-Apr-2008  martin branches: 1.8.14;
Convert to new 2 clause license
 1.7  26-Mar-2008  matt branches: 1.7.2; 1.7.4;
split softc/device_t
 1.6  19-Oct-2007  ad branches: 1.6.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.5  16-Apr-2007  macallan branches: 1.5.6; 1.5.8; 1.5.12;
cleanup autoconfig output
 1.4  10-Feb-2007  tsutsui branches: 1.4.2; 1.4.4; 1.4.8; 1.4.10;
Fix botch on newlock2 merge.
 1.3  09-Feb-2007  ad Merge newlock2 to head.
 1.2  09-Feb-2007  macallan do a bus reset before looking for devices
 1.1  17-Jan-2007  macallan branches: 1.1.2;
new, simplified ADB drivers
 1.1.2.2  06-Feb-2007  ad Fix CVS screwup.
 1.1.2.1  17-Jan-2007  ad file adb_bus.c was added on branch newlock2 on 2007-02-06 17:10:30 +0000
 1.4.10.1  11-Jul-2007  mjf Sync with head.
 1.4.8.2  23-Oct-2007  ad Sync with head.
 1.4.8.1  27-May-2007  ad Sync with head.
 1.4.4.4  27-Oct-2007  yamt sync with head.
 1.4.4.3  03-Sep-2007  yamt sync with head.
 1.4.4.2  26-Feb-2007  yamt sync with head.
 1.4.4.1  10-Feb-2007  yamt file adb_bus.c was added on branch yamt-lazymbuf on 2007-02-26 09:09:57 +0000
 1.4.2.1  07-May-2007  yamt sync with head.
 1.5.12.1  25-Oct-2007  bouyer Sync with HEAD.
 1.5.8.1  06-Nov-2007  matt sync with HEAD
 1.5.6.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.6.16.2  02-Jun-2008  mjf Sync with HEAD.
 1.6.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.7.4.2  16-May-2009  yamt sync with head
 1.7.4.1  16-May-2008  yamt sync with head.
 1.7.2.1  18-May-2008  yamt sync with head.
 1.8.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.9.22.1  03-Dec-2017  jdolecek update from HEAD
 1.10.36.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.11.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed