Home | History | Annotate | Download | only in marvell
History log of /src/sys/dev/marvell/gt.c
RevisionDateAuthorComments
 1.30  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.29  24-Apr-2021  thorpej branches: 1.29.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.28  09-Oct-2016  christos branches: 1.28.32;
PR/51540: Henning Petersen: replace , with ;
 1.27  11-Jul-2015  kamil branches: 1.27.2;
Improve spelling: regsiter -> register

This change is non-functional.

Approved by <riastradh>, <pgoyette>
 1.26  20-Jul-2010  kiyohara branches: 1.26.18; 1.26.36;
Add notes for remembrance' sake. This is information obtained looking for
www.marvell.com.
 1.25  11-Jul-2010  kiyohara Add macro MVA_{UNIT,OFFSET,IRQ}_DEFAULT.
 1.24  09-Jun-2010  kiyohara Fix debug messages.
- s/DEBUG/GT_DEBUG/.
- Indent.
- The old one is 20 bits in the mask of the address register, and the
new one is 16 bits.
 1.23  28-Apr-2010  kiyohara Clean up gt and peripherals.
This change tested compile only.
 1.22  25-Feb-2010  matt branches: 1.22.2;
Adapt to <powerpc/spr.h> breakup.
 1.21  12-May-2009  cegger branches: 1.21.2;
struct device * -> device_t, no functional changes intended.
 1.20  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.19  18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.18  17-Jun-2008  he branches: 1.18.4; 1.18.10; 1.18.18;
Use a local temporary struct gt_softc* so we don't try to
de-reference void*. Restores buildability of this file.
 1.17  12-Jun-2008  cegger use device_lookup_private to get softc
 1.16  08-Apr-2008  cegger branches: 1.16.2; 1.16.4; 1.16.6; 1.16.8;
use aprint_*_dev and device_xname
 1.15  03-Dec-2007  ad branches: 1.15.14;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.14  19-Oct-2007  ad branches: 1.14.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.13  29-Jan-2007  hubertf branches: 1.13.6; 1.13.18; 1.13.20; 1.13.24;
Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
 1.12  24-Dec-2005  perry branches: 1.12.20;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.11  11-Dec-2005  christos merge ktrace-lwp.
 1.10  26-Aug-2005  drochner s/locdesc_t/int/g
 1.9  27-Feb-2005  perry branches: 1.9.4;
nuke trailing whitespace
 1.8  26-Nov-2004  jmc branches: 1.8.4; 1.8.6;
Put back a few locators.h includes that are still needed here. Now evbppc
kernels build clean once again
 1.7  13-Sep-2004  drochner a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
on "locators.h"
 1.6  20-Mar-2004  matt Add gt_dma_bus_mem_to_phys and gt_dma_phys_to_bus_mem.
 1.5  14-Jul-2003  lukem add missing __KERNEL_RCSID()
 1.4  12-Jun-2003  scw branches: 1.4.2;
Disable the watchdog during autoconf of sub-devices.
Some drivers (e.g. pciide(4)) can take long enough to probe that the
watchdog barks before they're done.
 1.3  16-Mar-2003  matt Cleanup. Move much of the code to bus_space instead of using
private mechanisms.
 1.2  06-Mar-2003  matt Relocate Discovery first thing in initppc (if not at expected address).
This implies that if PMON tells us where the GT is, we write that address
in gtbase.
 1.1  05-Mar-2003  matt Add preliminary support Marvell (Galileo) Discovery System Controllers.
This code was contributed by Allegro Networks.
 1.4.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.2.4  29-Nov-2004  skrll Sync with HEAD.
 1.4.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1  03-Aug-2004  skrll Sync with HEAD
 1.8.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.8.4.1  29-Apr-2005  kent sync with -current
 1.9.4.4  07-Dec-2007  yamt sync with head
 1.9.4.3  27-Oct-2007  yamt sync with head.
 1.9.4.2  26-Feb-2007  yamt sync with head.
 1.9.4.1  21-Jun-2006  yamt sync with head.
 1.12.20.1  01-Feb-2007  ad Sync with head.
 1.13.24.1  25-Oct-2007  bouyer Sync with HEAD.
 1.13.20.2  09-Jan-2008  matt sync with HEAD
 1.13.20.1  06-Nov-2007  matt sync with HEAD
 1.13.18.2  09-Dec-2007  jmcneill Sync with HEAD.
 1.13.18.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.13.6.1  23-Oct-2007  ad Sync with head.
 1.14.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.15.14.2  29-Jun-2008  mjf Sync with HEAD.
 1.15.14.1  02-Jun-2008  mjf Sync with HEAD.
 1.16.8.1  18-Jun-2008  simonb Sync with head.
 1.16.6.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.16.4.4  11-Aug-2010  yamt sync with head.
 1.16.4.3  11-Mar-2010  yamt sync with head
 1.16.4.2  16-May-2009  yamt sync with head
 1.16.4.1  04-May-2009  yamt sync with head.
 1.16.2.1  17-Jun-2008  yamt sync with head.
 1.18.18.1  07-Jan-2011  matt Deal with the spr.h split.
 1.18.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.18.4.1  28-Apr-2009  skrll Sync with HEAD.
 1.21.2.2  17-Aug-2010  uebayasi Sync with HEAD.
 1.21.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.22.2.3  05-Mar-2011  rmind sync with head
 1.22.2.2  03-Jul-2010  rmind sync with head
 1.22.2.1  30-May-2010  rmind sync with head
 1.26.36.2  05-Dec-2016  skrll Sync with HEAD
 1.26.36.1  22-Sep-2015  skrll Sync with HEAD
 1.26.18.1  03-Dec-2017  jdolecek update from HEAD
 1.27.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.28.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.28.32.1  22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.29.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed