Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/amiga/dev/gvpbus.c
RevisionDateAuthorComments
 1.28  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.27  24-Apr-2021  thorpej branches: 1.27.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.26  27-Oct-2012  chs branches: 1.26.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.25  03-Jun-2011  matt branches: 1.25.2; 1.25.12;
CFATTACH_DECL_NEW, device_t, cfdata_t
 1.24  26-Oct-2009  cegger branches: 1.24.4; 1.24.6; 1.24.10;
kill extra whitespaces
reviewed by tsutsui@
 1.23  18-Mar-2009  cegger bcopy -> memcpy
 1.22  01-Jan-2003  thorpej branches: 1.22.108; 1.22.116; 1.22.122;
Use aprint_normal() for cfprint routines.
 1.21  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.20  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.19  28-Jan-2002  aymeric add __KERNEL_RCSID as suggested by Luke Mewburn
 1.18  27-Jan-2002  is Attach multifunction GVP boards.
 1.17  26-Jan-2002  aymeric - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.16  12-Jan-1998  thorpej branches: 1.16.28; 1.16.32;
Adjust for changes to config.
 1.15  23-Dec-1996  veego Get rid of __BROKEN_INDIRECT_CONFIG.
 1.14  13-Oct-1996  christos backout previous kprintf change
 1.13  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.12  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.11  21-Apr-1996  veego - Cleanup for -Wall and -Wstrict-prototypes
- Added support for multiple floppy drives
- CyberVision64:
- has now a real console mode
- another bugfix for boards with the new S3 chip
- Ariadne:
- fixed crashes with aeput (mbuf failure)
 1.10  17-Mar-1996  thorpej New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.
 1.9  18-Aug-1995  chopps SCSI disconnects: siop from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
and sbic from "Eduardo E. Horvath eeh@btr.com" <eeh@btr.btr.com>

Other cleanup (remove cpu040) and enabling IVS A500 support
from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.8  05-Mar-1995  chopps add recognition of GVP 530 and change magnum scsi interrupt level to 6
from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.7  12-Feb-1995  chopps Many changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
Now use amiga HW for soft interrupts, non-contig options (2 or many chunks),
interrupt handler lists, 4066 ethernet, 1291 scsi, option to defer level 6
interrupts to level 4 (deal with icky built-in serial port)
 1.6  28-Dec-1994  chopps consolidate the zbusses. le support for multiple tx buffs and full use of 32k
RAM. AGA dbl PAL mode added for console. Many changes to siop--most not
yet done. All from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.5  01-Dec-1994  chopps bring up to current. change sun to sunos. handle changes in device
open params and autoconf match function params.
 1.4  26-Oct-1994  cgd new RCS ID format.
 1.3  21-Jun-1994  chopps no gvp series I yet. and if_le.c from Rob Healey (rhealey@aggregate.com)
 1.2  25-May-1994  chopps add beginning of support for series I controllers doesn't work yet.
 1.1  08-May-1994  chopps resistance is futile, you will be assimilated.
amiga goes: config.new *and* /sys/scsi.
clock code coerced into a single .c file adding an accurate usec delay().
disklabel.c updated to DTRT, code to write RDB's to be added soon.
sbic (old scsi) converted over to new scsi and config this covers about
90% of users. Other drivers soon.
 1.16.32.3  03-Jan-2003  thorpej Sync with HEAD.
 1.16.32.2  18-Oct-2002  nathanw Catch up to -current.
 1.16.32.1  28-Feb-2002  nathanw Catch up to -current.
 1.16.28.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.16.28.1  11-Feb-2002  jdolecek Sync w/ -current.
 1.22.122.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.22.116.1  28-Apr-2009  skrll Sync with HEAD.
 1.22.108.2  11-Mar-2010  yamt sync with head
 1.22.108.1  04-May-2009  yamt sync with head.
 1.24.10.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.24.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.24.4.1  12-Jun-2011  rmind sync with head
 1.25.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.25.2.1  30-Oct-2012  yamt sync with head
 1.26.52.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.27.8.1  03-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed