Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sun3/dev/sebuf.c
RevisionDateAuthorComments
 1.21  20-Dec-2024  tsutsui Remove trailing whitespace.
 1.20  20-Dec-2023  thorpej branches: 1.20.2;
Remove unnecessary <sys/malloc.h>.
 1.19  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.18  24-Apr-2021  thorpej branches: 1.18.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.17  28-Jun-2008  tsutsui branches: 1.17.98;
Split softc/device_t, with misc cosmetic changes.
 1.16  28-Apr-2008  martin branches: 1.16.2; 1.16.4;
Remove clause 3 and 4 from TNF licenses
 1.15  04-Mar-2007  christos branches: 1.15.40; 1.15.42; 1.15.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.14  11-Dec-2005  christos branches: 1.14.26;
merge ktrace-lwp.
 1.13  22-Jan-2005  chs branches: 1.13.8;
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.12  15-Jul-2003  lukem branches: 1.12.8;
__KERNEL_RCSID()
 1.11  01-Jan-2003  thorpej branches: 1.11.2;
Use aprint_normal() for cfprint routines.
 1.10  26-Oct-2002  jdolecek g/c local offsetof(), it's defined in libkern.h
 1.9  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.8  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.7  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6  29-Jun-2000  mrg branches: 1.6.4; 1.6.8;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.5  09-Apr-1999  gwr branches: 1.5.2; 1.5.8;
Better implementation of driver "match" function,
and warning/error cleanup.
 1.4  12-Jan-1998  thorpej Update for changes to config.
 1.3  08-Dec-1997  gwr Fix missing newline in attach
 1.2  25-Oct-1997  gwr I had the memory map wrong for the SCSI/Ethernet board.
Fixes from Michael Thompson.
 1.1  17-Oct-1997  gwr branches: 1.1.2;
Add support for the Sun3/E "se" (Ethernet/SCSI) board.
Compiles, but NOT YET TESTED.
 1.1.2.2  09-Dec-1997  thorpej Sync w/ trunk: Sun3/E SCSI/Ethernet now works. (gwr)
 1.1.2.1  26-Oct-1997  mellon Pull rev 1.2 up from trunk (gwr)
 1.5.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.5.2.2  09-Apr-1999  gwr Better implementation of driver "match" function,
and warning/error cleanup.
 1.5.2.1  09-Apr-1999  gwr file sebuf.c was added on branch netbsd-1-4 on 1999-04-09 04:26:28 +0000
 1.6.8.3  03-Jan-2003  thorpej Sync with HEAD.
 1.6.8.2  11-Nov-2002  nathanw Catch up to -current
 1.6.8.1  18-Oct-2002  nathanw Catch up to -current.
 1.6.4.1  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.11.2.4  24-Jan-2005  skrll Sync with HEAD.
 1.11.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1  03-Aug-2004  skrll Sync with HEAD
 1.12.8.1  29-Apr-2005  kent sync with -current
 1.13.8.1  03-Sep-2007  yamt sync with head.
 1.14.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.15.44.2  04-May-2009  yamt sync with head.
 1.15.44.1  16-May-2008  yamt sync with head.
 1.15.42.1  18-May-2008  yamt sync with head.
 1.15.40.2  29-Jun-2008  mjf Sync with HEAD.
 1.15.40.1  02-Jun-2008  mjf Sync with HEAD.
 1.16.4.1  03-Jul-2008  simonb Sync with head.
 1.16.2.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.17.98.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.18.8.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.20.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed