Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/powerpc/ibm4xx/dev/plb.c
RevisionDateAuthorComments
 1.25  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.24  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.23  24-Apr-2021  thorpej branches: 1.23.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.22  06-Jul-2020  rin branches: 1.22.4;
Style and cosmetic changes. No binary changes intended.
 1.21  21-Nov-2013  kiyohara Support Synopsys DesigneWave OTG on PowerPC 405EX.
 1.20  18-Jun-2011  matt branches: 1.20.2; 1.20.12; 1.20.16;
Use <sys/foo.h> instead of <machine/foo.h> if such a file exists.
Don't assume <sys/cpu.h> includes <powerpc/subarch/cpu*.h>. Include it
explicitly.
 1.19  06-Jun-2011  matt More device_t, cfdata, CFATTACH_DECL_NEW cleanup.
 1.18  13-Dec-2010  kiyohara branches: 1.18.6;
Fix PR#43911.
 1.17  09-Nov-2010  uebayasi Whitespace.
 1.16  06-Nov-2010  uebayasi Add IBM405GPr "External Bus" driver.
 1.15  18-Mar-2010  kiyohara Support PowerPC 405EX/EXr.
1. Add some new source and header files.
(MAL(split) and RGMII(new) relations for EMAC)
2. Create dcr4xx.h. Its moved from dcr405gp.h. Also remove dcr405xx.h.
3. intr.c supports MULTIUIC with virtual-irq. likes to oea.
support 32-virq/128-hwirq.
4. multiple emac support.
5. WALNUT and VIRTEX_* includes arch/powerpc/conf/files.ibm4xx.
6. WALNUT pci uses arch/powerpc/ibm4xx/pci/.
 1.14  11-Dec-2005  christos branches: 1.14.78; 1.14.98; 1.14.100;
merge ktrace-lwp.
 1.13  28-Jun-2005  drochner convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.12  13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.11  25-Jul-2003  scw Fix the default bus dma tag.
 1.10  25-Jul-2003  scw Switch ibm4xx over to using the more flexible powerpc bus_space/bus_dma code.
 1.9  15-Jul-2003  lukem __KERNEL_RCSID()
 1.8  01-Jan-2003  thorpej branches: 1.8.2;
Use aprint_normal() for cfprint routines.
 1.7  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.6  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4  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.3  23-Aug-2002  scw branches: 1.3.2; 1.3.4;
Add "ecc at plb" device.
Add an "irq" locator to the plb device.
This gets rid of the original hack where ecc support was wedged into
the cpu driver.
 1.2  13-Aug-2002  simonb Use "ibm4xx" instead of "galaxy"; galaxy was an early code name for the
405GP.
 1.1  12-Aug-2002  simonb branches: 1.1.2;
Reorganise the IBM 4xx bus layout, using terminology from the IBM
documentation:
- Remove "mainbus" altogether.
- The new root is "plb" - the Processor Local Bus.
- Attached to this is the "opb" - the On-chip Peripheral Bus, to which
all the on-chip devices are attached (except the cpu and pci host
bridge).
- Port-specific code can pass an array of 'struct plb_dev' to
config_rootfound() to attach extra devices to the plb. The walnut
port attaches a "pbus" (Peripheral Bus) in here for the RTC and
pc keyboard controller to attach to.
There is still much 405GP specific code; the next round of changes will
generalise this to enable easier support for other 4xx CPUs.
 1.1.2.5  03-Jan-2003  thorpej Sync with HEAD.
 1.1.2.4  18-Oct-2002  nathanw Catch up to -current.
 1.1.2.3  27-Aug-2002  nathanw Catch up to -current.
 1.1.2.2  13-Aug-2002  nathanw Catch up to -current.
 1.1.2.1  12-Aug-2002  nathanw file plb.c was added on branch nathanw_sa on 2002-08-13 02:18:44 +0000
 1.3.4.3  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.3.4.2  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.4.1  23-Aug-2002  jdolecek file plb.c was added on branch kqueue on 2002-09-06 08:39:10 +0000
 1.3.2.2  31-Aug-2002  gehenna catch up with -current.
 1.3.2.1  23-Aug-2002  gehenna file plb.c was added on branch gehenna-devsw on 2002-08-31 13:45:45 +0000
 1.8.2.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1  03-Aug-2004  skrll Sync with HEAD
 1.14.100.3  12-Jun-2011  rmind sync with head
 1.14.100.2  05-Mar-2011  rmind sync with head
 1.14.100.1  30-May-2010  rmind sync with head
 1.14.98.4  09-Nov-2010  uebayasi Sync with HEAD.
 1.14.98.3  09-Nov-2010  uebayasi Sync with HEAD.
 1.14.98.2  11-Aug-2010  uebayasi Implement 405GPr's "External Bus" as exb(4).
 1.14.98.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.14.78.1  11-Aug-2010  yamt sync with head.
 1.18.6.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.20.16.1  18-May-2014  rmind sync with head
 1.20.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.20.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.22.4.1  23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.23.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed