Home | History | Annotate | Download | only in ibus
History log of /src/sys/arch/pmax/ibus/ibus.c
RevisionDateAuthorComments
 1.23  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.22  24-Apr-2021  thorpej branches: 1.22.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.21  09-Jun-2015  matt branches: 1.21.32;
#include either <sys/cpu.h> or <mips/cpuregs.h> as needed
 1.20  09-Jul-2011  matt branches: 1.20.12; 1.20.30;
Cleanu <machine/*> includes
 1.19  20-Feb-2011  matt Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.18  16-Mar-2009  dsl branches: 1.18.4; 1.18.6; 1.18.8;
ANSIfy functions with function-pointer arguments
 1.17  14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.16  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.15  14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.14  04-Mar-2007  christos branches: 1.14.44; 1.14.52; 1.14.58; 1.14.62;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.13  11-Dec-2005  christos branches: 1.13.26;
merge ktrace-lwp.
 1.12  26-Aug-2005  drochner kill some more simple submatch() functions, use config_stdsubmatch()
 1.11  25-Aug-2005  drochner replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
 1.10  13-Sep-2004  drochner branches: 1.10.12;
autoconf cleanup: turn xxxsubmatch() functions into the locator
passing variants
 1.9  01-Jan-2003  thorpej branches: 1.9.2;
Use aprint_normal() for cfprint routines.
 1.8  27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.7  29-Feb-2000  nisimura branches: 1.7.8; 1.7.12;
- Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
 1.6  14-Jan-2000  ad Make consistant with the new order.
 1.5  09-Jan-2000  simonb The clean-up continues:
- Make local-only function and variables static.
- Move function prototypes and extern variable declarations to
header files.
- Delete unused variables.
There's still a handful of extern declaraions that should be fixed up.
 1.4  24-Nov-1999  thorpej Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
 1.3  23-Nov-1999  thorpej Add an `addr' locator to the `ibus' bus. This allows you to wire down
unti numbers on systems which have e.g. multiple `dc' devices on the
internal bus (like the 5100).
 1.2  15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.1  19-Apr-1998  jonathan branches: 1.1.4; 1.1.16; 1.1.22;
Support shared Decstation 3100 and Decsystem 5100 baseboard devices
using a virtual "ibus" for baseboard devices.
 1.1.22.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.16.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.1.4.2  14-Mar-2000  nisimura Synchronize with the efforts made lately in main trunk, filling gaps.
 1.1.4.1  15-Oct-1998  nisimura - Reflect new internals.
 1.7.12.2  03-Jan-2003  thorpej Sync with HEAD.
 1.7.12.1  18-Oct-2002  nathanw Catch up to -current.
 1.7.8.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.9.2.3  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.2.2  21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.1  18-Sep-2004  skrll Sync with HEAD.
 1.10.12.2  03-Sep-2007  yamt sync with head.
 1.10.12.1  21-Jun-2006  yamt sync with head.
 1.13.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.14.62.1  29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.14.58.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.52.1  28-Apr-2009  skrll Sync with HEAD.
 1.14.44.1  04-May-2009  yamt sync with head.
 1.18.8.1  05-Mar-2011  bouyer Sync with HEAD
 1.18.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.18.4.1  05-Mar-2011  rmind sync with head
 1.20.30.1  22-Sep-2015  skrll Sync with HEAD
 1.20.12.1  03-Dec-2017  jdolecek update from HEAD
 1.21.32.2  22-Mar-2021  thorpej Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
 1.21.32.1  22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.22.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed