Home | History | Annotate | Download | only in bi
History log of /src/sys/dev/bi/kdb.c
RevisionDateAuthorComments
 1.49  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.48  24-Apr-2021  thorpej branches: 1.48.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.47  16-Jan-2010  dyoung branches: 1.47.80;
Delete some dead (#ifdef notyet) code.
 1.46  23-Nov-2009  rmind Remove some unecessary includes sys/user.h header.
 1.45  12-May-2009  cegger KNF
 1.44  09-Jul-2008  joerg branches: 1.44.8;
Fix device/softc split.
 1.43  12-Jun-2008  cegger branches: 1.43.2;
use device_lookup_private to get softc
 1.42  11-Mar-2008  matt branches: 1.42.2; 1.42.4; 1.42.6; 1.42.8;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.41  19-Oct-2007  ad branches: 1.41.12; 1.41.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.40  04-Mar-2007  christos branches: 1.40.2; 1.40.14; 1.40.16; 1.40.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.39  16-Feb-2007  ad branches: 1.39.2;
More vax changes.
 1.38  11-Dec-2005  christos merge ktrace-lwp.
 1.37  27-Feb-2005  perry branches: 1.37.4;
nuke trailing whitespace
 1.36  04-Feb-2005  perry de-__P
 1.35  31-Oct-2004  he branches: 1.35.4; 1.35.6;
Include the <sys/bufq.h> header to allow these to compile again.
 1.34  04-Nov-2003  he Make this compile, at least.
 1.33  04-Nov-2003  christos Try to make this work. Havard will test it.
 1.32  01-Apr-2003  thorpej branches: 1.32.2;
Use PAGE_SIZE rather than NBPG.
 1.31  19-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.30  01-Jan-2003  thorpej Use aprint_normal() in cfprint routines.
 1.29  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.28  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.27  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.26  13-Nov-2001  lukem add RCSID
 1.25  18-Jul-2001  thorpej bzero -> memset
 1.24  04-Jun-2001  ragge branches: 1.24.2;
Lock the kernel lock at interrupt enter.
 1.23  28-Jun-2000  mrg branches: 1.23.2;
remove include of <vm/vm.h>
 1.22  26-Jun-2000  mrg remove/move more mach vm header files:

<vm/pglist.h> -> <uvm/uvm_pglist.h>
<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
<vm/vm_object.h> -> nothing
<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
 1.21  05-Jun-2000  matt Adjust to new evcnt stuff.
 1.20  04-Jun-2000  matt More event counter stuff. Plus a little cruft cleanup while doing it.
 1.19  04-Jun-2000  matt Start counting interrupts.
 1.18  19-May-2000  thorpej branches: 1.18.2;
A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well. This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
 1.17  26-Mar-2000  ragge Bus_dma'ify the KDB50 driver, and make it work.
 1.16  12-Jul-1999  ragge branches: 1.16.2;
Copied from ../../arch/vax/bi/kdb.c,v
 1.15  24-Mar-1999  mrg completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
 1.14  01-Jan-1999  ragge Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
 1.13  29-Nov-1998  ragge the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
 1.12  02-Mar-1998  ragge Support for UVM on VAXen.
 1.11  24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.10  18-Jan-1998  ragge Make kernel compile & run again after latest config changes.
 1.9  12-Jan-1998  thorpej Update for changes to config.
 1.8  03-Jan-1998  thorpej Grab the PCB directly from the u-area, not by indirecting through VM
structures.
 1.7  17-Jul-1997  jtk use locator defines in "locators.h" to index cf_loc[]
 1.6  06-Jul-1997  ragge Remove __VM_PMAP_HACK.
 1.5  11-Jan-1997  ragge Update due to changes to uba/mscp functions.
 1.4  13-Oct-1996  christos backout previous kprintf change
 1.3  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2  27-Aug-1996  cgd change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
 1.1  19-Jul-1996  ragge Support for the VAXBI bus, and KDB50 device driver (MSCP disk).
Parts of this written by Chris Torek at the beginning of time.
 1.16.2.1  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.18.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.23.2.6  03-Jan-2003  thorpej Sync with HEAD.
 1.23.2.5  18-Oct-2002  nathanw Catch up to -current.
 1.23.2.4  28-Mar-2002  ragge Extract user pte's in another way.
 1.23.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.23.2.2  24-Aug-2001  nathanw Catch up with -current.
 1.23.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.24.2.3  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.24.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.24.2.1  03-Aug-2001  lukem update to -current
 1.32.2.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.32.2.5  04-Feb-2005  skrll Sync with HEAD.
 1.32.2.4  02-Nov-2004  skrll Sync with HEAD.
 1.32.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.32.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.32.2.1  03-Aug-2004  skrll Sync with HEAD
 1.35.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.35.6.1  12-Feb-2005  yamt sync with head.
 1.35.4.1  29-Apr-2005  kent sync with -current
 1.37.4.4  17-Mar-2008  yamt sync with head.
 1.37.4.3  27-Oct-2007  yamt sync with head.
 1.37.4.2  03-Sep-2007  yamt sync with head.
 1.37.4.1  26-Feb-2007  yamt sync with head.
 1.39.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.40.20.1  25-Oct-2007  bouyer Sync with HEAD.
 1.40.16.2  23-Mar-2008  matt sync with HEAD
 1.40.16.1  06-Nov-2007  matt sync with HEAD
 1.40.14.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.40.2.1  23-Oct-2007  ad Sync with head.
 1.41.16.3  28-Sep-2008  mjf Sync with HEAD.
 1.41.16.2  29-Jun-2008  mjf Sync with HEAD.
 1.41.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.41.12.1  24-Mar-2008  keiichi sync with head.
 1.42.8.2  18-Jul-2008  simonb Sync with head.
 1.42.8.1  18-Jun-2008  simonb Sync with head.
 1.42.6.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.42.6.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.42.4.3  11-Mar-2010  yamt sync with head
 1.42.4.2  16-May-2009  yamt sync with head
 1.42.4.1  04-May-2009  yamt sync with head.
 1.42.2.1  17-Jun-2008  yamt sync with head.
 1.43.2.1  19-Oct-2008  haad Sync with HEAD.
 1.44.8.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.47.80.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.48.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed