Home | History | Annotate | only in /src/sys/arch/evbppc/virtex
History log of /src/sys/arch/evbppc/virtex
RevisionDateAuthorComments
 1.7 24-Apr-2021  thorpej 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.6 29-Mar-2021  rin Make VIRTEX_* kernels compile. Not tested.
 1.5 29-Jul-2012  mlelstv branches: 1.5.52; 1.5.54;
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
 1.4 12-Dec-2011  kiyohara branches: 1.4.2;
Fix hangs-up. Remove "wrteei 1" in board's cpu_configure(). Interrupt
is enabled in powerpc-layer.
 1.3 18-Jun-2011  matt branches: 1.3.2; 1.3.6;
split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.2 18-Mar-2010  kiyohara branches: 1.2.6;
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.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.54; 1.1.74; 1.1.76;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.76.1 30-May-2010  rmind sync with head
 1.1.74.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.54.1 11-Aug-2010  yamt sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file autoconf.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file autoconf.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file autoconf.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.2.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.6.1 18-Feb-2012  mrg merge to -current.
 1.3.2.2 30-Oct-2012  yamt sync with head
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.4.2.1 08-Aug-2012  martin Pull up following revision(s) (requested by mlelstv in ticket #466):
sys/arch/amiga/amiga/autoconf.c: revision 1.113
sys/arch/rs6000/rs6000/autoconf.c: revision 1.4
sys/arch/emips/emips/autoconf.c: revision 1.6
sys/arch/sandpoint/sandpoint/autoconf.c: revision 1.27
sys/arch/evbmips/alchemy/autoconf.c: revision 1.18
sys/arch/sgimips/sgimips/autoconf.c: revision 1.43
sys/arch/atari/atari/autoconf.c: revision 1.63
sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.17
sys/arch/mmeye/mmeye/autoconf.c: revision 1.9
distrib/sets/lists/comp/mi: revision 1.1771
sys/arch/mipsco/mipsco/autoconf.c: revision 1.25
sys/arch/iyonix/iyonix/autoconf.c: revision 1.14
sys/arch/hp300/hp300/autoconf.c: revision 1.100
sys/kern/init_main.c: revision 1.445
sys/arch/pmax/pmax/autoconf.c: revision 1.79
sys/arch/netwinder/netwinder/autoconf.c: revision 1.11
sys/arch/dreamcast/dreamcast/autoconf.c: revision 1.10
sys/arch/ibmnws/ibmnws/autoconf.c: revision 1.12
sys/arch/evbppc/ev64260/autoconf.c: revision 1.17
sys/arch/evbmips/gdium/autoconf.c: revision 1.5
sys/arch/algor/algor/autoconf.c: revision 1.21
share/man/man9/Makefile: revision 1.367
sys/arch/ews4800mips/ews4800mips/autoconf.c: revision 1.9
sys/arch/amigappc/amigappc/autoconf.c: revision 1.5
sys/arch/x86/x86/x86_autoconf.c: revision 1.65
sys/arch/acorn26/acorn26/autoconf.c: revision 1.9
sys/arch/mvmeppc/mvmeppc/autoconf.c: revision 1.13
sys/arch/vax/vax/autoconf.c: revision 1.94
sys/arch/usermode/dev/cpu.c: revision 1.72
sys/arch/evbppc/virtex/autoconf.c: revision 1.5
sys/arch/next68k/next68k/autoconf.c: revision 1.26
sys/arch/mac68k/mac68k/autoconf.c: revision 1.73
sys/arch/ia64/ia64/autoconf.c: revision 1.6
sys/arch/evbppc/obs405/obs405_autoconf.c: revision 1.6
share/man/man9/cpu_rootconf.9: revision 1.7
sys/arch/landisk/landisk/autoconf.c: revision 1.6
sys/arch/evbmips/malta/autoconf.c: revision 1.16
sys/arch/sun3/sun3/autoconf.c: revision 1.76
sys/arch/evbppc/explora/autoconf.c: revision 1.13
sys/arch/sun3/sun3/autoconf.c: revision 1.77
sys/arch/evbmips/loongson/autoconf.c: revision 1.3
sys/arch/evbmips/atheros/autoconf.c: revision 1.11
sys/arch/sparc64/sparc64/autoconf.c: revision 1.188
sys/arch/acorn32/acorn32/autoconf.c: revision 1.18
sys/arch/evbarm/evbarm/autoconf.c: revision 1.13
sys/arch/cobalt/cobalt/autoconf.c: revision 1.30
sys/arch/mvme68k/mvme68k/autoconf.c: revision 1.46
sys/arch/hp700/hp700/autoconf.c: revision 1.48
sys/arch/evbmips/adm5120/autoconf.c: revision 1.5
sys/arch/hpcmips/hpcmips/autoconf.c: revision 1.25
sys/arch/alpha/alpha/autoconf.c: revision 1.52
sys/arch/sparc/sparc/autoconf.c: revision 1.244
sys/arch/evbppc/pmppc/autoconf.c: revision 1.7
sys/arch/bebox/bebox/autoconf.c: revision 1.25
sys/arch/luna68k/luna68k/autoconf.c: revision 1.13
sys/arch/hpcarm/hpcarm/autoconf.c: revision 1.20
sys/arch/evbppc/walnut/autoconf.c: revision 1.21
sys/arch/cesfic/cesfic/autoconf.c: revision 1.26
sys/arch/cats/cats/autoconf.c: revision 1.17
sys/arch/x68k/x68k/autoconf.c: revision 1.67
sys/arch/news68k/news68k/autoconf.c: revision 1.21
sys/arch/arc/arc/autoconf.c: revision 1.34
sys/arch/evbsh3/evbsh3/autoconf.c: revision 1.11
sys/sys/conf.h: revision 1.143
sys/arch/evbmips/rasoc/autoconf.c: revision 1.3
sys/arch/hpcsh/hpcsh/autoconf.c: revision 1.26
sys/arch/sun68k/sun68k/autoconf.c: revision 1.29
sys/arch/evbmips/rmixl/autoconf.c: revision 1.6
sys/arch/zaurus/zaurus/autoconf.c: revision 1.12
sys/arch/xen/x86/autoconf.c: revision 1.15
sys/arch/evbppc/mpc85xx/autoconf.c: revision 1.6
sys/arch/shark/shark/autoconf.c: revision 1.18
sys/arch/prep/prep/autoconf.c: revision 1.25
sys/arch/newsmips/newsmips/autoconf.c: revision 1.36
sys/arch/sbmips/sbmips/autoconf.c: revision 1.8
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.
No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().
Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().
Make cpu_rootconf(9) describe the calling order.
add rootconf(9) as a link to cpu_rootconf(9)
make this compile again
 1.5.54.2 03-Apr-2021  thorpej Sync with HEAD.
 1.5.54.1 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.5.52.1 03-Apr-2021  thorpej Sync with HEAD.
 1.4 29-Mar-2021  rin Make VIRTEX_* kernels compile. Not tested.
 1.3 01-Jul-2011  dyoung branches: 1.3.66; 1.3.68;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.2 17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.20; 1.1.28; 1.1.30; 1.1.32; 1.1.34;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.34.1 25-Oct-2007  bouyer Sync with HEAD.
 1.1.32.1 18-Oct-2007  yamt sync with head.
 1.1.30.1 06-Nov-2007  matt sync with HEAD
 1.1.28.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.1.20.1 28-May-2007  freza Add KGDB support to evbppc/virtex port. From Jean-Francois Boudreault,
cosmetics by me.

While there, generalize virtex_console_tag() to virtex_bus_space_tag()
and fix one instance of yamt-idlelwp fallout (ci_need_resched renamed
to ci_want_resched).

XXX Only compile tested since my access to suitable Virtex HW is sporadic
XXX at best.
 1.1.12.1 23-Oct-2007  ad Sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file consinit.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 27-Oct-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file consinit.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file consinit.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.3.68.1 03-Apr-2021  thorpej Sync with HEAD.
 1.3.66.1 03-Apr-2021  thorpej Sync with HEAD.
 1.4 27-Feb-2025  andvar Fix various typos in comments.
 1.3 10-Mar-2022  riastradh branches: 1.3.10;
powerpc: Implement bus_space_barrier as eieio.
 1.2 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file dcr.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file dcr.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file dcr.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.3.10.1 02-Aug-2025  perseant Sync with HEAD
 1.3 10-Mar-2022  riastradh powerpc: Implement bus_space_barrier as eieio.
 1.2 21-Oct-2021  andvar fix various typos, mainly in comments, but also in man pages and log messages.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file dcr.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file dcr.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file dcr.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.8 17-Feb-2022  riastradh evbppc: fix typo from cfargs rototill.
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.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.5 21-Nov-2020  thorpej branches: 1.5.2;
malloc(9) -> kmem(9)
 1.4 10-Nov-2019  chs branches: 1.4.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.3 18-Jun-2011  matt branches: 1.3.54;
split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.2 17-Oct-2007  garbled branches: 1.2.52;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.20; 1.1.28; 1.1.30; 1.1.32; 1.1.34;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.34.1 25-Oct-2007  bouyer Sync with HEAD.
 1.1.32.1 18-Oct-2007  yamt sync with head.
 1.1.30.1 06-Nov-2007  matt sync with HEAD
 1.1.28.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.1.20.1 28-May-2007  freza Add KGDB support to evbppc/virtex port. From Jean-Francois Boudreault,
cosmetics by me.

While there, generalize virtex_console_tag() to virtex_bus_space_tag()
and fix one instance of yamt-idlelwp fallout (ci_need_resched renamed
to ci_want_resched).

XXX Only compile tested since my access to suitable Virtex HW is sporadic
XXX at best.
 1.1.12.1 23-Oct-2007  ad Sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file design_gsrd1.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 27-Oct-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file design_gsrd1.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file design_gsrd1.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.2.52.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.54.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.5.2.1 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.9 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.8 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.7 24-Apr-2021  thorpej branches: 1.7.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.6 30-Mar-2021  rin G/C misleading <evbppc/tlb.h>. Use <powerpc/ibm4xx/tlb.h> directly.
 1.5 29-Mar-2021  rin Make VIRTEX_* kernels compile. Not tested.
 1.4 18-Jun-2011  matt branches: 1.4.66; 1.4.68;
split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.3 17-Oct-2007  garbled branches: 1.3.52;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 22-Feb-2007  thorpej branches: 1.2.4; 1.2.12; 1.2.20; 1.2.22; 1.2.24; 1.2.26;
TRUE -> true, FALSE -> false
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file design_gsrd2.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.4 27-Oct-2007  yamt sync with head.
 1.1.4.3 26-Feb-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file design_gsrd2.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file design_gsrd2.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.2.26.1 25-Oct-2007  bouyer Sync with HEAD.
 1.2.24.1 18-Oct-2007  yamt sync with head.
 1.2.22.1 06-Nov-2007  matt sync with HEAD
 1.2.20.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.2.12.1 28-May-2007  freza Add KGDB support to evbppc/virtex port. From Jean-Francois Boudreault,
cosmetics by me.

While there, generalize virtex_console_tag() to virtex_bus_space_tag()
and fix one instance of yamt-idlelwp fallout (ci_need_resched renamed
to ci_want_resched).

XXX Only compile tested since my access to suitable Virtex HW is sporadic
XXX at best.
 1.2.4.1 23-Oct-2007  ad Sync with head.
 1.3.52.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.4.68.2 03-Apr-2021  thorpej Sync with HEAD.
 1.4.68.1 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.4.66.1 03-Apr-2021  thorpej Sync with HEAD.
 1.7.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file idcr.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file idcr.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file idcr.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.31 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.30 03-Aug-2021  rin Switch evbppc/ibm4xx to generic evbppc (same as oea) kernel modules.

I've confirmed that kernels similar to amd64/conf/MODULAR work fine
both on 403 and 405.

XXX
Unfortunately, we cannot immediately switch evbppc/booke to generic
kernel modules yet; it has its own intr.h implementation.
 1.29 30-Mar-2021  rin Move common global variables, i.e., phys_map, machine, and machine_arch to
evbppc/evbppc_machdep.c (bad naming; used only for 4xx boards).
 1.28 30-Mar-2021  rin Centralize cpu_reboot().
 1.27 30-Mar-2021  rin G/C bootpath.
 1.26 29-Mar-2021  rin Make VIRTEX_* kernels compile. Not tested.
 1.25 11-Jun-2020  ad branches: 1.25.2; 1.25.4;
uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched. It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.
 1.24 31-Dec-2019  ad Rename uvm_free() -> uvm_availmem().
 1.23 21-Dec-2019  ad uvmexp.free -> uvm_free()
 1.22 15-Jul-2018  maxv Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos
 1.21 27-Jul-2012  matt branches: 1.21.38; 1.21.40;
Fix some -fno-common fallout
 1.20 20-Jun-2011  matt branches: 1.20.2;
Change IBM4xx to use the common powerpc PIC framework.
Consolidate most ibm4xx initppc function into ibm4xx_init
and Make all IBM4xx use it.
Change explora to use initppc instead of bootstrap.
 1.19 20-Jun-2011  matt Cleanup includes. (<net/netisr.h> is handled by softints, not MD anymore,
so this can be nuked).
 1.18 18-Jun-2011  matt split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.17 15-Jun-2011  matt lcsplx is dead. remove last vestiges of it.
 1.16 12-Jun-2011  mrg for booke and ibm4xx evbppc systems, set module_machine to to either
"powerpc-ibm4xx" or "powerpc-booke".
 1.15 17-Jan-2011  matt branches: 1.15.4;
Add #include <machine/pcb.h>
 1.14 25-Feb-2010  matt branches: 1.14.2; 1.14.4;
Adapt to <spr.h> breakup.
 1.13 08-Feb-2010  joerg Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
 1.12 27-Nov-2009  rmind branches: 1.12.2;
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.11 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.10 13-Feb-2009  apb Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
 1.9 30-Nov-2008  martin branches: 1.9.4;
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
 1.8 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.7 11-Nov-2008  dyoung It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown(). No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown(). I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that. Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.6 02-Jul-2008  ad branches: 1.6.2; 1.6.4; 1.6.14;
Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
 1.5 17-Oct-2007  garbled branches: 1.5.16; 1.5.20; 1.5.22; 1.5.24;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 04-Mar-2007  christos branches: 1.4.2; 1.4.10; 1.4.18; 1.4.20; 1.4.22; 1.4.24;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.3 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.2 09-Feb-2007  ad branches: 1.2.2;
Merge newlock2 to head.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.3 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file machdep.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.5 27-Oct-2007  yamt sync with head.
 1.1.4.4 03-Sep-2007  yamt sync with head.
 1.1.4.3 26-Feb-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file machdep.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file machdep.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.2.2.2 12-Mar-2007  rmind Sync with HEAD.
 1.2.2.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.4.24.1 25-Oct-2007  bouyer Sync with HEAD.
 1.4.22.1 18-Oct-2007  yamt sync with head.
 1.4.20.1 06-Nov-2007  matt sync with HEAD
 1.4.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.4.10.1 28-May-2007  freza Add KGDB support to evbppc/virtex port. From Jean-Francois Boudreault,
cosmetics by me.

While there, generalize virtex_console_tag() to virtex_bus_space_tag()
and fix one instance of yamt-idlelwp fallout (ci_need_resched renamed
to ci_want_resched).

XXX Only compile tested since my access to suitable Virtex HW is sporadic
XXX at best.
 1.4.2.1 23-Oct-2007  ad Sync with head.
 1.5.24.1 03-Jul-2008  simonb Sync with head.
 1.5.22.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.5.20.2 11-Mar-2010  yamt sync with head
 1.5.20.1 04-May-2009  yamt sync with head.
 1.5.16.2 17-Jan-2009  mjf Sync with HEAD.
 1.5.16.1 02-Jul-2008  mjf Sync with HEAD.
 1.6.14.1 07-Jan-2011  matt Deal with the splitting of <spr.h>
 1.6.4.2 03-Mar-2009  skrll Sync with HEAD.
 1.6.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.6.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.9.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.14.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.14.2.1 05-Mar-2011  rmind sync with head
 1.15.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.20.2.1 30-Oct-2012  yamt sync with head
 1.21.40.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.21.40.1 10-Jun-2019  christos Sync with HEAD
 1.21.38.1 28-Jul-2018  pgoyette Sync with HEAD
 1.25.4.1 03-Apr-2021  thorpej Sync with HEAD.
 1.25.2.1 03-Apr-2021  thorpej Sync with HEAD.
 1.2 17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.20; 1.1.28; 1.1.30; 1.1.32; 1.1.34;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.34.1 25-Oct-2007  bouyer Sync with HEAD.
 1.1.32.1 18-Oct-2007  yamt sync with head.
 1.1.30.1 06-Nov-2007  matt sync with HEAD
 1.1.28.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.1.20.1 28-May-2007  freza Add KGDB support to evbppc/virtex port. From Jean-Francois Boudreault,
cosmetics by me.

While there, generalize virtex_console_tag() to virtex_bus_space_tag()
and fix one instance of yamt-idlelwp fallout (ci_need_resched renamed
to ci_want_resched).

XXX Only compile tested since my access to suitable Virtex HW is sporadic
XXX at best.
 1.1.12.1 23-Oct-2007  ad Sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file virtex.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 27-Oct-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file virtex.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file virtex.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.9 15-Jul-2018  maxv Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos
 1.8 20-Jun-2011  matt branches: 1.8.52; 1.8.54;
Don't include *pmap.h in assembly files. Get the needed definitions
from "assym.h".
 1.7 17-Jan-2011  matt branches: 1.7.4;
Kill _NOREGNAMES. Everything should be using %rX now. If it doesn't it
soon will.
 1.6 18-Mar-2010  kiyohara branches: 1.6.2;
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.5 25-Feb-2010  matt branches: 1.5.2;
Adapt to <spr.h> breakup.
 1.4 26-Nov-2009  matt branches: 1.4.2;
Kill proc0paddr. Use lwp0.l_addr instead.
 1.3 13-Feb-2009  apb Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
 1.2 13-Nov-2008  ad branches: 1.2.4;
LKM -> MODULAR
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.50; 1.1.54; 1.1.60; 1.1.62; 1.1.72;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.72.1 07-Jan-2011  matt Deal with the splitting of <spr.h>
 1.1.62.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.62.1 19-Jan-2009  skrll Sync with HEAD.
 1.1.60.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.1.54.3 11-Aug-2010  yamt sync with head.
 1.1.54.2 11-Mar-2010  yamt sync with head
 1.1.54.1 04-May-2009  yamt sync with head.
 1.1.50.1 17-Jan-2009  mjf Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file virtex_start.S was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file virtex_start.S was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file virtex_start.S was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.2.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.5.2.2 05-Mar-2011  rmind sync with head
 1.5.2.1 30-May-2010  rmind sync with head
 1.6.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.54.1 10-Jun-2019  christos Sync with HEAD
 1.8.52.1 28-Jul-2018  pgoyette Sync with HEAD
 1.2 11-Apr-2019  kamil Fix CVS Id usage
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.142;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.142.1 10-Jun-2019  christos Sync with HEAD
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file cdmacreg.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file cdmacreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file cdmacreg.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:53 +0000
 1.20 18-Sep-2022  thorpej Eliminate use of IFF_OACTIVE.
 1.19 27-Feb-2022  riastradh evbppc/temac(4): Mark unused functions as such.
 1.18 05-Dec-2021  msaitoh s/decriptor/descriptor/ in comment.
 1.17 29-Mar-2021  rin Make VIRTEX_* kernels compile. Not tested.
 1.16 04-Feb-2020  skrll branches: 1.16.6; 1.16.8;
Adopt <net/if_stats.h>
 1.15 29-May-2019  msaitoh branches: 1.15.4;
KNF. No functional change.
 1.14 29-May-2019  msaitoh Whitespace fix. No functional change.
 1.13 22-Jan-2019  msaitoh Change MII PHY read/write API from:

int (*mii_readreg_t)(device_t, int, int);
void (*mii_writereg_t)(device_t, int, int, int);
to:

int (*mii_readreg_t)(device_t, int, int, uint16_t *);
int (*mii_writereg_t)(device_t, int, int, uint16_t);

Now we can test if a read/write operation failed or not by the return value.

In 802.3 spec says that the PHY shall not respond to read/write transaction
to the unimplemented register(22.2.4.3). Detecting timeout can be used to
check whether a register is implemented or not (if the register conforms to
the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.

Note that I noticed that the following code do infinite loop in the
read/wirte function. If it accesses unimplemented PHY register, it will hang.
It should be fixed:

arm/at91/at91emac.c
arm/ep93xx/epe.c
arm/omap/omapl1x_emac.c
mips/ralink/ralink_eth.c
arch/powerpc/booke/dev/pq3etsec.c(read)
dev/cadence/if_cemac.c <- hkenken
dev/ic/lan9118.c


Tested with the following device:

axe+ukphy
axe+rgephy
axen+rgephy (tested by Andrius V)
wm+atphy
wm+ukphy
wm+igphy
wm+ihphy
wm+makphy
sk+makphy
sk+brgphy
sk+gentbi
msk+makphy
sip+icsphy
sip+ukphy
re+rgephy
bge+brgphy
bnx+brgphy
gsip+gphyter
rtk+rlphy
fxp+inphy (tested by Andrius V)
tlp+acphy
ex+exphy
epic+qsphy
vge+ciphy (tested by Andrius V)
vr+ukphy (tested by Andrius V)
vte+ukphy (tested by Andrius V)

Not tested (MAC):
arm:at91emac
arm:cemac
arm:epe
arm:geminigmac
arm:enet
arm:cpsw
arm:emac(omac)
arm:emac(sunxi)
arm:npe
evbppc:temac
macppc:bm
macppc:gm
mips:aumac
mips:ae
mips:cnmac
mips:reth
mips:sbmac
playstation2:smap
powerpc:tsec
powerpc:emac(ibm4xx)
sgimips:mec
sparc:be
sf
ne(ax88190, dl10019)
awge
ep
gem
hme
smsh
mtd
sm
age
alc
ale
bce
cas
et
jme
lii
nfe
pcn
ste
stge
tl
xi
aue
mue
smsc
udav
url

Not tested (PHY):
amhphy
bmtphy
dmphy
etphy
glxtphy
ikphy
iophy
lxtphy
nsphyter
pnaphy
rdcphy
sqphy
tlphy
tqphy
urlphy
 1.12 15-Dec-2016  ozaki-r branches: 1.12.14; 1.12.16;
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
- Where/When if_ipackets is counted up
- Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
- This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net
 1.11 10-Jun-2016  ozaki-r branches: 1.11.2;
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.10 09-Feb-2016  ozaki-r Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
 1.9 22-Jul-2012  matt branches: 1.9.2; 1.9.16;
Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
 1.8 18-Jun-2011  matt branches: 1.8.2;
split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.7 05-Apr-2010  joerg branches: 1.7.6;
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
 1.6 19-Jan-2010  pooka branches: 1.6.2; 1.6.4;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.5 31-Dec-2009  freza Remove unused variable, makes VIRTEX_* kernels compile again.
 1.4 12-Feb-2008  dyoung branches: 1.4.10; 1.4.32;
Use device_is_active().
 1.3 19-Jan-2008  dyoung Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange(). Check for
a non-ENXIO error return from mii_mediachg(). (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines. There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run. I have compiled macppc, sparc64, i386. I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
 1.2 04-Mar-2007  christos branches: 1.2.20; 1.2.26; 1.2.32;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file if_temac.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.5 27-Feb-2008  yamt sync with head.
 1.1.4.4 21-Jan-2008  yamt sync with head
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file if_temac.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file if_temac.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.32.1 20-Jan-2008  bouyer Sync with HEAD
 1.2.26.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.20.1 23-Mar-2008  matt sync with HEAD
 1.4.32.1 07-Jan-2011  matt Remove unused variable.
 1.4.10.2 11-Aug-2010  yamt sync with head.
 1.4.10.1 11-Mar-2010  yamt sync with head
 1.6.4.1 30-May-2010  rmind sync with head
 1.6.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.7.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.2.1 30-Oct-2012  yamt sync with head
 1.9.16.3 05-Feb-2017  skrll Sync with HEAD
 1.9.16.2 09-Jul-2016  skrll Sync with HEAD
 1.9.16.1 19-Mar-2016  skrll Sync with HEAD
 1.9.2.1 03-Dec-2017  jdolecek update from HEAD
 1.11.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.12.16.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.12.16.1 10-Jun-2019  christos Sync with HEAD
 1.12.14.1 26-Jan-2019  pgoyette Sync with HEAD
 1.15.4.1 29-Feb-2020  ad Sync with head.
 1.16.8.1 03-Apr-2021  thorpej Sync with HEAD.
 1.16.6.1 03-Apr-2021  thorpej Sync with HEAD.
 1.5 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.4 01-Jul-2011  dyoung branches: 1.4.2; 1.4.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.3 18-Jun-2011  matt split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.2 21-Feb-2007  thorpej branches: 1.2.78;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file pstwo.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 26-Feb-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file pstwo.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file pstwo.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.78.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.4.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4.2.1 30-Oct-2012  yamt sync with head
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file pstworeg.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file pstworeg.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file pstworeg.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file temacreg.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file temacreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file temacreg.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2 11-Apr-2019  kamil Fix CVS Id usage
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.142;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.142.1 10-Jun-2019  christos Sync with HEAD
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file temacvar.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file temacvar.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file temacvar.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.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.5 22-Jul-2012  matt branches: 1.5.54;
Silence a gcc warning.
 1.4 01-Jul-2011  dyoung branches: 1.4.2;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.3 06-Feb-2011  jmcneill - add support for using compressed images as splash images
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
 1.2 04-Mar-2007  christos branches: 1.2.66; 1.2.72; 1.2.74;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file tft.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file tft.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file tft.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.74.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.72.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.66.1 05-Mar-2011  rmind sync with head
 1.4.2.1 30-Oct-2012  yamt sync with head
 1.5.54.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.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.5 29-Mar-2021  rin Make VIRTEX_* kernels compile. Not tested.
 1.4 01-Jul-2011  dyoung branches: 1.4.66; 1.4.68;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.3 18-Jun-2011  matt split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.2 04-Mar-2007  christos branches: 1.2.76;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file tft_ll.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file tft_ll.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file tft_ll.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.76.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.4.68.1 03-Apr-2021  thorpej Sync with HEAD.
 1.4.66.1 03-Apr-2021  thorpej Sync with HEAD.
 1.5 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.4 18-Jun-2011  matt split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.3 25-Oct-2009  ahoka branches: 1.3.10;
Remove obscenity from comments.
 1.2 04-Mar-2007  christos branches: 1.2.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file tft_plb.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file tft_plb.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file tft_plb.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.44.1 11-Mar-2010  yamt sync with head
 1.3.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file tftreg.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file tftreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file tftreg.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.4 18-Jun-2011  matt split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.3 06-Feb-2011  jmcneill branches: 1.3.2;
- add support for using compressed images as splash images
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
 1.2 04-Mar-2007  christos branches: 1.2.66; 1.2.72; 1.2.74;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file tftvar.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file tftvar.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file tftvar.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.74.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.72.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.66.1 05-Mar-2011  rmind sync with head
 1.3.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.4 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.3 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.2 06-Jun-2011  matt More device_t, cfdata, CFATTACH_DECL_NEW cleanup.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.76; 1.1.86;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.86.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.76.1 12-Jun-2011  rmind sync with head
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file xcvbus.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file xcvbus.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file xcvbus.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file xcvbusvar.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file xcvbusvar.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file xcvbusvar.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file xintcreg.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file xintcreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file xintcreg.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.12 20-Aug-2021  andvar fix various typos in comments and log messages.
 1.11 25-Jul-2014  dholland Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.10 16-Mar-2014  dholland branches: 1.10.2;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
 1.9 18-Jun-2011  matt branches: 1.9.2; 1.9.12; 1.9.16;
split device/softc (CFATTACH_DECL_NEW)
struct device * -> device_t
struct cfdata * -> cfdata_t
Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists
Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
 1.8 24-Apr-2011  rmind branches: 1.8.2;
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.7 11-Jun-2008  cegger branches: 1.7.18; 1.7.24;
use device_lookup_private to get softc
 1.6 09-Jan-2008  elad branches: 1.6.6; 1.6.8; 1.6.10; 1.6.12; 1.6.14;
Kill two KAUTH_GENERIC_ISSUSER requests and replace them with something
more meaningful.
 1.5 02-Dec-2007  ad branches: 1.5.6;
Use the softint API.
 1.4 19-Nov-2007  ad - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.3 17-Oct-2007  garbled branches: 1.3.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 04-Mar-2007  christos branches: 1.2.2; 1.2.10; 1.2.18; 1.2.20; 1.2.22; 1.2.24;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file xlcom.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.6 21-Jan-2008  yamt sync with head
 1.1.4.5 07-Dec-2007  yamt sync with head
 1.1.4.4 27-Oct-2007  yamt sync with head.
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file xlcom.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file xlcom.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
 1.2.24.2 21-Nov-2007  bouyer Sync with HEAD
 1.2.24.1 25-Oct-2007  bouyer Sync with HEAD.
 1.2.22.1 18-Oct-2007  yamt sync with head.
 1.2.20.3 23-Mar-2008  matt sync with HEAD
 1.2.20.2 09-Jan-2008  matt sync with HEAD
 1.2.20.1 06-Nov-2007  matt sync with HEAD
 1.2.18.4 03-Dec-2007  joerg Sync with HEAD.
 1.2.18.3 21-Nov-2007  joerg Sync with HEAD.
 1.2.18.2 28-Oct-2007  joerg Reduce diff to HEAD.
 1.2.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.2.10.1 28-May-2007  freza Add KGDB support to evbppc/virtex port. From Jean-Francois Boudreault,
cosmetics by me.

While there, generalize virtex_console_tag() to virtex_bus_space_tag()
and fix one instance of yamt-idlelwp fallout (ci_need_resched renamed
to ci_want_resched).

XXX Only compile tested since my access to suitable Virtex HW is sporadic
XXX at best.
 1.2.2.2 03-Dec-2007  ad Sync with HEAD.
 1.2.2.1 23-Oct-2007  ad Sync with head.
 1.3.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.3.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.5.6.1 10-Jan-2008  bouyer Sync with HEAD
 1.6.14.1 18-Jun-2008  simonb Sync with head.
 1.6.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.6.10.1 04-May-2009  yamt sync with head.
 1.6.8.1 17-Jun-2008  yamt sync with head.
 1.6.6.1 29-Jun-2008  mjf Sync with HEAD.
 1.7.24.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.18.1 31-May-2011  rmind sync with head
 1.8.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.16.1 18-May-2014  rmind sync with head
 1.9.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.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.10.2.1 10-Aug-2014  tls Rebase.
 1.1 02-Dec-2006  freza branches: 1.1.2; 1.1.4; 1.1.6;
Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 02-Dec-2006  ad file xlcomreg.h was added on branch newlock2 on 2007-01-12 01:00:47 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 02-Dec-2006  yamt file xlcomreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 02-Dec-2006  yamt file xlcomreg.h was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000

RSS XML Feed