Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/mips/cavium/dev/octeon_dwctwo.c
RevisionDateAuthorComments
 1.15  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14  24-Apr-2021  thorpej branches: 1.14.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.13  23-Jun-2020  simonb branches: 1.13.4;
Make sure we only attach to CN3xxx/CN5xxx.
Cleanup - mostly removing unused code.
 1.12  23-Jun-2020  simonb Remove unused octeon*usb*var*h includes.
 1.11  19-Jun-2020  simonb Simplify interrupt definition: remove mostly unused masks and just
configure everything using interrupt numbers.
 1.10  31-May-2020  simonb Clean up Cavium Octeon device names. Rename devices from "octeon_foo"
to "octfoo" - this follows the naming conventions used by many other
MIPS CPUs.
 1.9  12-Jul-2016  matt branches: 1.9.16;
Use mips_lwu
 1.8  11-Jul-2016  matt Change MIPS to use the common pmap code.
Switch to 8KB pages on CPUs with a R4K MMU.
Simplify cache code.
Merge in most of changes from matt-mips64 branch
 1.7  26-Apr-2016  skrll Adapt to nick-nhusb merge
 1.6  30-Aug-2015  skrll Update for latest dwc2
 1.5  30-Jul-2015  skrll Use IPL_VM for dwc2_intr and mark as MP safe where possible.
 1.4  22-Jul-2015  skrll Trailing whitespace.
 1.3  07-Jun-2015  matt assembly no longer include <machine/cpu.h>. Instead MIPS_CURLWP is gotten
from regdef.h and everything else from assym.h. <mips/mips_param.h> no
longer include <machine/cpu.h>
 1.2  01-Jun-2015  matt branches: 1.2.2;
Rework cavium support in preparation for MULTIPROCESSOR support
 1.1  01-May-2015  hikaru Use dwc2 instead of octeon_usbc, and unify octeon_usbn to new octeon_dwctwo.
Internal USB memory stick of EdgeRouter Lite works now.
 1.2.2.5  05-Oct-2016  skrll Sync with HEAD
 1.2.2.4  29-May-2016  skrll Sync with HEAD
 1.2.2.3  22-Sep-2015  skrll Sync with HEAD
 1.2.2.2  06-Jun-2015  skrll Sync with HEAD
 1.2.2.1  01-Jun-2015  skrll file octeon_dwctwo.c was added on branch nick-nhusb on 2015-06-06 14:40:01 +0000
 1.9.16.2  03-Dec-2017  jdolecek update from HEAD
 1.9.16.1  12-Jul-2016  jdolecek file octeon_dwctwo.c was added on branch tls-maxphys on 2017-12-03 11:36:27 +0000
 1.13.4.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.14.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed