Home | History | Annotate | Download | only in qbus
History log of /src/sys/dev/qbus/uda.c
RevisionDateAuthorComments
 1.64  22-May-2022  andvar fix various small typos, mainly in comments.
 1.63  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.62  24-Apr-2021  thorpej branches: 1.62.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.61  22-May-2017  ragge branches: 1.61.26;
Update copyright notice for Ludd (remove clause 3 & 4).
 1.60  12-May-2009  cegger branches: 1.60.22; 1.60.40;
KNF
 1.59  18-Mar-2009  cegger bzero -> memset
 1.58  11-Mar-2008  matt branches: 1.58.4; 1.58.12; 1.58.18;
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.57  19-Oct-2007  ad branches: 1.57.12; 1.57.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.56  29-Mar-2006  thorpej branches: 1.56.18; 1.56.32; 1.56.34; 1.56.38;
Use device_private().
 1.55  25-Mar-2006  thorpej Use device_parent().
 1.54  27-Feb-2006  thorpej branches: 1.54.2; 1.54.4; 1.54.6;
Use device_is_a().
 1.53  11-Dec-2005  christos branches: 1.53.2; 1.53.4; 1.53.6;
merge ktrace-lwp.
 1.52  27-Jun-2005  ragge branches: 1.52.2;
Fixes due to cast-qual addition.
 1.51  26-Feb-2005  simonb White space nits.
 1.50  31-Oct-2004  he branches: 1.50.4; 1.50.6;
Include the <sys/bufq.h> header to allow these to compile again.
 1.49  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.48  01-Jan-2003  thorpej branches: 1.48.2;
Use aprint_normal() in cfprint routines.
 1.47  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.46  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.45  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.44  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.43  14-Jun-2002  ragge Must check B_PHYS, not b_proc, if it is DMA to userspace, otherwise the
machine will crash. This fixes a panic when a Unibus adapter runs out
of map registers (happens frequently), reported by Johnny Billquist.
 1.42  13-Nov-2001  lukem branches: 1.42.8; 1.42.10;
add RCSIDs
 1.41  10-Jun-2001  ragge branches: 1.41.2;
Only use b_proc if B_PHYS is set.
 1.40  29-Apr-2001  ragge Use ubmemalloc() for data structures. Remove unused vars. KNF.
 1.39  12-Apr-2001  thorpej Protect the call to uba_done() with spluba().
 1.38  10-Jun-2000  ragge branches: 1.38.4;
Must be able to compile without "mtc".
 1.37  05-Jun-2000  matt Adjust to new evcnt stuff.
 1.36  04-Jun-2000  matt More event counter stuff. Plus a little cruft cleanup while doing it.
 1.35  19-May-2000  thorpej branches: 1.35.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.34  30-Apr-2000  ragge Change to use new ubareset() functionality.
 1.33  30-Mar-2000  augustss Remove register declarations.
 1.32  24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.31  21-Jan-2000  thorpej Update for sys/buf.h/disksort_*() changes.
 1.30  06-Jun-1999  ragge branches: 1.30.2; 1.30.4;
Fix map register/DMA wait queues.
Still to do:
BDP handling. Currently missing.
Ubareset's won't work at all.
 1.29  29-May-1999  ragge Copied from ../../arch/vax/uba/uda.c,v
 1.28  24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.27  12-Jan-1998  thorpej Update for changes to config.
 1.26  02-Nov-1997  ragge #include files must be in the correct order.
 1.25  04-Jul-1997  ragge Fix bug causing all uda's to be recognized as ctlr 1 from boot.
 1.24  12-Mar-1997  ragge Fast and dirty fix to avoid panics during autoconf of KFQSA DSSI disks.
Controller errors showing up can't be handled anyway.
 1.23  13-Oct-1996  christos backout previous kprintf change
 1.22  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.21  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.20  20-Aug-1996  ragge Use the same device driver for both uda and mtc. Actually, the only
difference is vcid. The unit names must differ, so that it is possible
to distinguish them at autoconf time.
 1.19  20-Jul-1996  ragge CPU determine code. ts driver converted to new config. May work, untested.
 1.18  11-Jul-1996  ragge Automatic changing of root device after boot now works.
 1.17  01-Jul-1996  ragge Change to new config and to support new MSCP system.
 1.16  19-May-1996  ragge Fixed all (proto)type errors. Fixes PR 2377.
 1.15  17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.14  07-Mar-1996  ragge Support for VAX 8600/8650 added. Works with lots of Unibus adapters,
and will probably work with Massbus adapters as well. (Not tested,
but it's the same code as for 11/780). Ubareset's may cause crashes
on 8600 also like 11/780, but they are more uncommon. No support
for console RL02 yet, but it's likely to come.
 1.13  02-Mar-1996  ragge Fix some too long delays. Set some structs volatile that otherwise
caused hangs during autoconfig.
 1.12  11-Feb-1996  ragge register -> volatile in some places, to make it work OK with -O2.
 1.11  02-Feb-1996  mycroft Fix #includes.
 1.10  13-Dec-1995  ragge MicroVAX III support added.
Dummy match/attach routines for tmscp.
Conversion of uda.c towards new config.
 1.9  10-Nov-1995  ragge Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
 1.8  31-Aug-1995  ragge Patches from Ken Wellsch/Ken Lalonde to support some Dilog MSCP cards
(DQ256 SMD card, SQ706A and SU726A SCSI card).
 1.7  05-Jul-1995  ragge uda/tmscp read/write added.
 1.6  30-Mar-1995  ragge Bug fixes of interrupt handlers.
 1.5  23-Feb-1995  ragge Support for uVAXII, new tmscp driver added.
 1.4  13-Feb-1995  ragge Fixes for new config.
 1.3  26-Oct-1994  cgd new RCS ID format.
 1.2  08-Oct-1994  ragge Fixed bugs according to old memory system.
 1.1  02-Aug-1994  ragge Initial VAX port merging.
 1.30.4.2  21-Apr-2001  bouyer Sync with HEAD
 1.30.4.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.30.2.1  21-Jun-1999  thorpej Sync w/ -current.
 1.35.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.38.4.5  03-Jan-2003  thorpej Sync with HEAD.
 1.38.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.38.4.3  20-Jun-2002  nathanw Catch up to -current.
 1.38.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.38.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.41.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.41.2.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.41.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.42.10.1  14-Jun-2002  lukem Pull up revision 1.43 (requested by ragge in ticket #273):
Must check B_PHYS, not b_proc, if it is DMA to userspace, otherwise the
machine will crash. This fixes a panic when a Unibus adapter runs out
of map registers (happens frequently), reported by Johnny Billquist.
 1.42.8.1  20-Jun-2002  gehenna catch up with -current.
 1.48.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.48.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.48.2.4  02-Nov-2004  skrll Sync with HEAD.
 1.48.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.48.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.48.2.1  03-Aug-2004  skrll Sync with HEAD
 1.50.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.50.4.1  29-Apr-2005  kent sync with -current
 1.52.2.3  17-Mar-2008  yamt sync with head.
 1.52.2.2  27-Oct-2007  yamt sync with head.
 1.52.2.1  21-Jun-2006  yamt sync with head.
 1.53.6.1  22-Apr-2006  simonb Sync with head.
 1.53.4.1  09-Sep-2006  rpaulo sync with head
 1.53.2.1  01-Mar-2006  yamt sync with head.
 1.54.6.2  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.54.6.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.54.4.1  19-Apr-2006  elad sync with head.
 1.54.2.1  01-Apr-2006  yamt sync with head.
 1.56.38.1  25-Oct-2007  bouyer Sync with HEAD.
 1.56.34.2  23-Mar-2008  matt sync with HEAD
 1.56.34.1  06-Nov-2007  matt sync with HEAD
 1.56.32.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.56.18.1  23-Oct-2007  ad Sync with head.
 1.57.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.57.12.1  24-Mar-2008  keiichi sync with head.
 1.58.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.58.12.1  28-Apr-2009  skrll Sync with HEAD.
 1.58.4.2  16-May-2009  yamt sync with head
 1.58.4.1  04-May-2009  yamt sync with head.
 1.60.40.1  28-Aug-2017  skrll Sync with HEAD
 1.60.22.1  03-Dec-2017  jdolecek update from HEAD
 1.61.26.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.62.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed