Home | History | Annotate | Download | only in mba
History log of /src/sys/arch/vax/mba/mba.c
RevisionDateAuthorComments
 1.42  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.41  24-Apr-2021  thorpej branches: 1.41.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.40  22-May-2017  ragge branches: 1.40.24;
Update copyright notice for Ludd (remove clause 3 & 4).
 1.39  14-Dec-2010  matt branches: 1.39.18; 1.39.36;
Cleanup includes. Change <machine/XXX.h> to <sys/XXX.h> for bus, cpu, intr.
Remove unneeded includes.
 1.38  13-Jan-2009  yamt branches: 1.38.6;
g/c BUFQ_FOO() macros and use bufq_foo() directly.
 1.37  16-Oct-2008  hans branches: 1.37.2;
fix detection of unknown massbus devices, ok by matt
 1.36  11-Mar-2008  matt branches: 1.36.4; 1.36.10;
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.35  11-Dec-2005  christos branches: 1.35.50; 1.35.70; 1.35.74;
merge ktrace-lwp.
 1.34  15-Oct-2005  yamt - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
from sys/bufq.h to sys/bufq_impl.h.
(is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c. (not tested)
 1.33  31-Oct-2004  he branches: 1.33.12;
Include the <sys/bufq.h> header to allow these to compile again.
 1.32  15-Jul-2003  lukem __KERNEL_RCSID()
 1.31  03-May-2003  wiz branches: 1.31.2;
DMA, not dma nor Dma.
 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  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.27  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.26  22-Jul-2002  hannken Convert to new device buffer queue interface.

Approved by: Anders Magnusson <ragge@netbsd.org>
 1.25  10-Jul-2000  ragge branches: 1.25.4; 1.25.8; 1.25.16;
Nexus vector number is 0x14-0x17, not 14-17! Fortunately, 3 wrong did
one right. Pointed out by Kenn Humborg (kenn@linux.ie).
 1.24  29-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.23  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.22  05-Jun-2000  matt branches: 1.22.2;
Adjust to new evcnt stuff.
 1.21  04-Jun-2000  ragge Remove home-grown interrupt vector handler.
Bus_space'ify; needed to get RH11 working. Still much more to do, though.
 1.20  04-Jun-2000  matt More event counter stuff. Plus a little cruft cleanup while doing it.
 1.19  19-May-2000  thorpej branches: 1.19.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.18  24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.17  21-Jan-2000  thorpej Update for sys/buf.h/disksort_*() changes.
 1.16  17-Jan-2000  matt defopt VAX750 side effect.
 1.15  01-Jan-1999  ragge branches: 1.15.8;
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.14  21-May-1998  ragge Wall fix.
 1.13  24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.12  18-Jan-1998  ragge Make kernel compile & run again after latest config changes.
 1.11  12-Jan-1998  thorpej Update for changes to config.
 1.10  13-Oct-1996  christos backout previous kprintf change
 1.9  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.8  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.7  20-Aug-1996  ragge Use common routine to map in pages before DMA'ing.
 1.6  08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.5  17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.4  24-Feb-1996  ragge Add routine to convert phys device number to kernel unit number.
Allow to set disklabel area writable.
 1.3  11-Feb-1996  ragge Device drivers for massbus adapters and massbus disks.
Works with RP04/05/06/07 disks.
 1.2  02-Feb-1996  mycroft Fix #includes.
 1.1  13-Feb-1995  ragge Beginning ov Massbuss support.
 1.15.8.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.19.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.22.2.1  27-Jul-2000  matt mba.c: Pullup revision 1.25
scb.h: Pullup revision 1.11
Correct vector initialization to use correct values
 1.25.16.1  31-Aug-2002  gehenna catch up with -current.
 1.25.8.3  03-Jan-2003  thorpej Sync with HEAD.
 1.25.8.2  18-Oct-2002  nathanw Catch up to -current.
 1.25.8.1  01-Aug-2002  nathanw Catch up to -current.
 1.25.4.2  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.25.4.1  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.31.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.31.2.4  02-Nov-2004  skrll Sync with HEAD.
 1.31.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.31.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.31.2.1  03-Aug-2004  skrll Sync with HEAD
 1.33.12.2  17-Mar-2008  yamt sync with head.
 1.33.12.1  21-Jun-2006  yamt sync with head.
 1.35.74.2  17-Jan-2009  mjf Sync with HEAD.
 1.35.74.1  03-Apr-2008  mjf Sync with HEAD.
 1.35.70.1  24-Mar-2008  keiichi sync with head.
 1.35.50.1  23-Mar-2008  matt sync with HEAD
 1.36.10.1  19-Oct-2008  haad Sync with HEAD.
 1.36.4.1  04-May-2009  yamt sync with head.
 1.37.2.1  19-Jan-2009  skrll Sync with HEAD.
 1.38.6.1  05-Mar-2011  rmind sync with head
 1.39.36.1  28-Aug-2017  skrll Sync with HEAD
 1.39.18.1  03-Dec-2017  jdolecek update from HEAD
 1.40.24.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.41.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed