Home | History | Annotate | Download | only in alchemy
History log of /src/sys/arch/evbmips/alchemy/obio.c
RevisionDateAuthorComments
 1.6  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.5  24-Apr-2021  thorpej branches: 1.5.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.4  01-Jul-2011  dyoung branches: 1.4.68;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.3  20-Feb-2011  matt Merge forward from matt-nb5-mips64.
 1.2  16-Dec-2009  matt branches: 1.2.4; 1.2.6; 1.2.8;
Fix printf format problems and latent bugs made visible by new bus_*_t types.
 1.1  08-Feb-2006  gdamore branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22; 1.1.80; 1.1.98;
Improved alchemy board support, including board differentiation required for
PCI idsel and irq routing (later).
Various cleanup/rototilling to remove hardcoded pb1000 references.
Reviewed by simonb@, and derived from changes reviewed by matt@ and tsutsui@
 1.1.98.2  14-Jan-2010  matt More fixes for the CFATTAL_DECL_NEW changes and rmixl cpucore/cpu changes.
 1.1.98.1  10-Jan-2010  matt Add generic support for DMA bounce buffers and real version of
bus_dmatag_subregion. MALTA uses it for ISADMA. Make RMIXL use
for creating 32bit and 29bit subregions.
 1.1.80.1  11-Mar-2010  yamt sync with head
 1.1.22.2  09-Sep-2006  rpaulo sync with head
 1.1.22.1  08-Feb-2006  rpaulo file obio.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:38:55 +0000
 1.1.16.2  21-Jun-2006  yamt sync with head.
 1.1.16.1  08-Feb-2006  yamt file obio.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:55 +0000
 1.1.10.2  22-Apr-2006  simonb Sync with head.
 1.1.10.1  08-Feb-2006  simonb file obio.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.1.2.2  18-Feb-2006  yamt sync with head.
 1.1.2.1  08-Feb-2006  yamt file obio.c was added on branch yamt-uio_vmspace on 2006-02-18 15:38:32 +0000
 1.2.8.1  05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1  05-Mar-2011  rmind sync with head
 1.4.68.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.4.68.1  22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.5.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed