Home | History | Annotate | only in /src/sys/arch/evbarm/nslu2
History log of /src/sys/arch/evbarm/nslu2
RevisionDateAuthorComments
 1.7 22-Nov-2009  mbalmer more s/the the/the/
 1.6 17-Jan-2007  imp branches: 1.6.48;
Sam's npe support was ported from FreeBSD and is enabled in the NSLU2
kernel, so update the README to reflect a more current status of the
ethernet under NetBSD.
 1.5 18-May-2006  imp branches: 1.5.6; 1.5.10; 1.5.12;
The Intel sight has changed slightly, so tweak wording on how to get the
intel documentation necessary for the ethernet driver.
 1.4 08-Mar-2006  lukem branches: 1.4.2; 1.4.4;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.3 04-Mar-2006  scw branches: 1.3.2; 1.3.4;
Document the Flash layout, and how RedBoot invokes the kernel bootloader.
 1.2 04-Mar-2006  scw The Slug's clock no longer runs slow. The default value of COUNTS_PER_SEC
was incorrect.
 1.1 28-Feb-2006  scw branches: 1.1.2;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file README was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.3.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.3.2.2 24-May-2006  yamt sync with head.
 1.3.2.1 13-Mar-2006  yamt sync with head.
 1.4.4.3 01-Jun-2006  kardel Sync with head.
 1.4.4.2 22-Apr-2006  simonb Sync with head.
 1.4.4.1 08-Mar-2006  simonb file README was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.4.2.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.5.12.2 09-Sep-2006  rpaulo sync with head
 1.5.12.1 18-May-2006  rpaulo file README was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:38:55 +0000
 1.5.10.1 01-Feb-2007  ad Sync with head.
 1.5.6.3 26-Feb-2007  yamt sync with head.
 1.5.6.2 21-Jun-2006  yamt sync with head.
 1.5.6.1 18-May-2006  yamt file README was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.6.48.1 11-Mar-2010  yamt sync with head
 1.4 14-Oct-2012  msaitoh struct device * -> device_t for IXP4xx (and nslu2).
Tested with my NSLU2.
 1.3 28-Apr-2008  martin branches: 1.3.34; 1.3.44;
Remove clause 3 and 4 from TNF licenses
 1.2 01-Mar-2006  scw branches: 1.2.8; 1.2.14; 1.2.20; 1.2.74; 1.2.76; 1.2.78;
Simpify GPIO bits for power/reset buttons, and squash a (mostly harmless)
bug in the GPIO pin direction code.
 1.1 28-Feb-2006  scw branches: 1.1.2;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_buttons.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 01-Mar-2006  rpaulo file nslu2_buttons.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:38:55 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 01-Mar-2006  yamt file nslu2_buttons.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.2.8.2 22-Apr-2006  simonb Sync with head.
 1.2.8.1 01-Mar-2006  simonb file nslu2_buttons.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.3.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.34.1 30-Oct-2012  yamt sync with head
 1.13 15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.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.10 22-Dec-2019  thorpej branches: 1.10.10;
Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().
 1.9 14-Feb-2016  chs branches: 1.9.18;
zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
 1.8 14-Oct-2012  msaitoh branches: 1.8.14;
struct device * -> device_t for IXP4xx (and nslu2).
Tested with my NSLU2.
 1.7 28-Jun-2008  tsutsui branches: 1.7.30; 1.7.40;
Fix inverted logic of IXP425_GPIO_GPOER register bits in the previous.
Pointed out by Piotr Durlej on port-arm@.
 1.6 09-Jun-2008  tsutsui branches: 1.6.2;
Emulate open collector output more properly to make it work with
reorganized MI i2c_bitbang.c:
- set GPOER register in set_dir function too according to GPOUTR value
- in set_bits function, don't set SDA_BIT implicitly in input mode and
check current direction to handle GPOER register
- no need to check direction in read_check function because reading SCL
is valid even if SDA is output

Tested by Donald T Hayford on port-arm.
 1.5 28-Apr-2008  martin branches: 1.5.2;
Remove clause 3 and 4 from TNF licenses
 1.4 19-Apr-2008  scw branches: 1.4.2;
Adapt to the recent i2c_bitbang changes, which provide more hints as to
the SDA/SCL pin direction, by treating the direction as just that; a hint.

Instead, configure the SDA/SCL pins as outputs only when they are to
be driven low (zero). Otherwise configure them as inputs and allow the
pull-up resistors to do their jobs.

Check the SDA direction hint only if DIAGNOSTIC.

Fixes a problem reported by Donald T Hayford on port-arm@ whereby the
kernel failed to read/write the RTC's registers.
 1.3 06-Dec-2007  ad branches: 1.3.12; 1.3.14;
lockmgr -> mutex
 1.2 26-Jun-2006  drochner branches: 1.2.6; 1.2.20; 1.2.32; 1.2.34; 1.2.36; 1.2.42; 1.2.46;
use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.4; 1.1.10; 1.1.14; 1.1.16;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.16.4 07-Dec-2007  yamt sync with head
 1.1.16.3 30-Dec-2006  yamt sync with head.
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 28-Feb-2006  yamt file nslu2_iic.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.1.14.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 28-Feb-2006  simonb file nslu2_iic.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.1.4.1 11-Aug-2006  yamt sync with head
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_iic.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.2.46.1 08-Dec-2007  ad Sync with head.
 1.2.42.1 08-Dec-2007  mjf Sync with HEAD.
 1.2.36.1 09-Jan-2008  matt sync with HEAD
 1.2.34.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.2.32.1 26-Dec-2007  rjs Sync with HEAD.
 1.2.20.1 09-Dec-2007  reinoud Pullup to HEAD
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 26-Jun-2006  rpaulo file nslu2_iic.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:38:55 +0000
 1.3.14.2 17-Jun-2008  yamt sync with head.
 1.3.14.1 18-May-2008  yamt sync with head.
 1.3.12.2 29-Jun-2008  mjf Sync with HEAD.
 1.3.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.2.2 04-May-2009  yamt sync with head.
 1.4.2.1 16-May-2008  yamt sync with head.
 1.5.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.5.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.6.2.1 03-Jul-2008  simonb Sync with head.
 1.7.40.2 03-Dec-2017  jdolecek update from HEAD
 1.7.40.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.30.1 30-Oct-2012  yamt sync with head
 1.8.14.1 19-Mar-2016  skrll Sync with HEAD
 1.9.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.10.10.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.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.10 19-Aug-2013  matt Fix <arm/locore.h> lossage
 1.9 14-Oct-2012  msaitoh branches: 1.9.2;
struct device * -> device_t for IXP4xx (and nslu2).
Tested with my NSLU2.
 1.8 28-Apr-2008  martin branches: 1.8.34; 1.8.44;
Remove clause 3 and 4 from TNF licenses
 1.7 17-Oct-2007  garbled branches: 1.7.16; 1.7.18; 1.7.20;
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.6 09-Jul-2007  ad branches: 1.6.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.5 08-Jul-2007  scw Make this build again now that sched_whichqs no longer exists.
 1.4 10-Dec-2006  scw branches: 1.4.6; 1.4.8; 1.4.14;
Ditch the messy "disk access" polling code. There was no way to
determine accurately which LED to illuminate.

Instead, hook into the PCI[ABC] interrupt chains (used solely for the
USB controller) and use the disk1/disk2 LEDS to indicate general USB
activity.

Use the "Ready/Status" LED as a CPU activity indicator by hooking the
TMR0 interrupt and illuminating the LED if the CPU is non-idle.
 1.3 22-Apr-2006  yamt branches: 1.3.2; 1.3.8; 1.3.12; 1.3.14; 1.3.16;
adapt to iostat change.
 1.2 15-Apr-2006  christos Adjust for new io_stats
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.8.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.6.2 11-May-2006  elad sync with head
 1.1.6.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 24-May-2006  yamt sync with head.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_leds.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.3.16.1 18-Dec-2006  yamt sync with head.
 1.3.14.2 09-Sep-2006  rpaulo sync with head
 1.3.14.1 22-Apr-2006  rpaulo file nslu2_leds.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:38:55 +0000
 1.3.12.1 12-Jan-2007  ad Sync with head.
 1.3.8.4 03-Sep-2007  yamt sync with head.
 1.3.8.3 30-Dec-2006  yamt sync with head.
 1.3.8.2 21-Jun-2006  yamt sync with head.
 1.3.8.1 22-Apr-2006  yamt file nslu2_leds.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.3.2.3 01-Jun-2006  kardel Sync with head.
 1.3.2.2 22-Apr-2006  simonb Sync with head.
 1.3.2.1 22-Apr-2006  simonb file nslu2_leds.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.4.14.1 03-Oct-2007  garbled Sync with HEAD
 1.4.8.1 11-Jul-2007  mjf Sync with head.
 1.4.6.1 15-Jul-2007  ad Sync with head.
 1.6.10.1 06-Nov-2007  matt sync with HEAD
 1.7.20.1 16-May-2008  yamt sync with head.
 1.7.18.1 18-May-2008  yamt sync with head.
 1.7.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.44.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.34.2 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.8.34.1 30-Oct-2012  yamt sync with head
 1.9.2.1 28-Aug-2013  rmind sync with head
 1.41 12-Oct-2023  skrll Fix non-DIAGNOSTIC builds
 1.40 17-Jun-2023  rin Panic if kernel image is not fit within its VA range,
rather than silently freeze later.
 1.39 17-Jun-2023  rin Missing #endif for the previous...
 1.38 17-Jun-2023  rin Catch up with new pmap_devmap implementation.

Now, hardcoded VA's should be aligned to L1 section (1M) boundaries.
Rather, just disable ones if there's no need for statically mapping.
 1.37 14-Jun-2023  rin Make this compile again with VERBOSE_INIT_ARM.
 1.36 20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.35 17-Aug-2021  andvar branches: 1.35.4;
fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.34 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.33 18-Apr-2020  skrll Trailing whitespace
 1.32 16-Jul-2019  skrll branches: 1.32.8;
Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.31 16-Jul-2019  skrll KNF
 1.30 28-Oct-2018  skrll Fix a commit
 1.29 21-Sep-2018  skrll Centralise defparam CONSADDR, CONSPEED, CONMODE and CONADDR into
opt_console.h and adjust.
 1.28 31-Jul-2018  skrll Sprinkle #include "opt_arm_debug.h" where VERBOSE_INIT_ARM is used
 1.27 22-Dec-2016  cherry branches: 1.27.14; 1.27.16;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.26 05-Mar-2015  skrll branches: 1.26.2;
Spellos
 1.25 13-Sep-2014  matt branches: 1.25.2;
Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.24 19-Aug-2013  matt Fix <arm/locore.h> lossage
 1.23 12-Nov-2012  skrll branches: 1.23.2;
C99 types
 1.22 22-Sep-2012  matt Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed. Default cortex to pmap_needs_fixup = 1. But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
 1.21 16-Aug-2012  matt branches: 1.21.2;
Move the standard definitions of the {UND,IRQ,FIQ,ABT}_STACK_SIZE to
<arm32/machdep.h>
Move the extern for cpu_reset_address to the same file.
Add cpu_reset_address_paddr.
Kill cpu_reset_v4_MMU_disable.
if cpu_reset_address is NULL, then the MMU will be disabled.
 1.20 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.19 01-Jul-2011  dyoung branches: 1.19.2;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.18 30-Jun-2011  wiz dependant -> dependent
 1.17 26-Dec-2009  uebayasi Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.
 1.16 26-Dec-2009  uebayasi Garbage collect an unused global, vm_offset_t pagetables_start.
 1.15 27-Nov-2009  rmind - 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.14 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.13 21-Oct-2009  rmind Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
 1.12 11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.11 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.10 30-Nov-2008  martin branches: 1.10.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.9 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.8 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.7 28-Apr-2008  martin branches: 1.7.6; 1.7.8;
Remove clause 3 and 4 from TNF licenses
 1.6 27-Apr-2008  matt Merge kernel changes in matt-armv6 to HEAD.
 1.5 19-Jan-2008  chris branches: 1.5.6; 1.5.8; 1.5.10;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.4 10-Dec-2006  scw branches: 1.4.20; 1.4.24; 1.4.30; 1.4.36;
Adjust watchdog reset register base.
 1.3 17-May-2006  mrg branches: 1.3.6; 1.3.10; 1.3.12; 1.3.14;
in initarm(), initialise kernel_l1pt.pv_va as well as kernel_l1pt.pv_pa.
 1.2 11-Mar-2006  scw branches: 1.2.2; 1.2.4;
RB_POWERDOWN trumps RB_HALT.
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.4; 1.1.6;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.6.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.2 24-May-2006  yamt sync with head.
 1.1.4.1 13-Mar-2006  yamt sync with head.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_machdep.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.2.4.3 01-Jun-2006  kardel Sync with head.
 1.2.4.2 22-Apr-2006  simonb Sync with head.
 1.2.4.1 11-Mar-2006  simonb file nslu2_machdep.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.2.2.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.14.1 18-Dec-2006  yamt sync with head.
 1.3.12.2 09-Sep-2006  rpaulo sync with head
 1.3.12.1 17-May-2006  rpaulo file nslu2_machdep.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:38:55 +0000
 1.3.10.1 12-Jan-2007  ad Sync with head.
 1.3.6.4 21-Jan-2008  yamt sync with head
 1.3.6.3 30-Dec-2006  yamt sync with head.
 1.3.6.2 21-Jun-2006  yamt sync with head.
 1.3.6.1 17-May-2006  yamt file nslu2_machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.4.36.1 20-Jan-2008  bouyer Sync with HEAD
 1.4.30.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.24.2 23-Mar-2008  matt sync with HEAD
 1.4.24.1 28-Jan-2008  matt Adapt to new pmap_bootstrap signature.
 1.4.20.1 28-Feb-2008  rjs Sync with HEAD.
 1.5.10.4 11-Mar-2010  yamt sync with head
 1.5.10.3 19-Aug-2009  yamt sync with head.
 1.5.10.2 04-May-2009  yamt sync with head.
 1.5.10.1 16-May-2008  yamt sync with head.
 1.5.8.1 18-May-2008  yamt sync with head.
 1.5.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.5.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.7.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.7.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.10.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.19.2.3 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.19.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.19.2.1 30-Oct-2012  yamt sync with head
 1.21.2.3 03-Dec-2017  jdolecek update from HEAD
 1.21.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.23.2.1 28-Aug-2013  rmind sync with head
 1.25.2.2 05-Feb-2017  skrll Sync with HEAD
 1.25.2.1 06-Apr-2015  skrll Sync with HEAD
 1.26.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.27.16.3 21-Apr-2020  martin Sync with HEAD
 1.27.16.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.27.16.1 10-Jun-2019  christos Sync with HEAD
 1.27.14.3 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.27.14.2 30-Sep-2018  pgoyette Ssync with HEAD
 1.27.14.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.32.8.1 20-Apr-2020  bouyer Sync with HEAD
 1.35.4.1 14-Oct-2023  martin Pull up following revision(s) (requested by skrll in ticket #411):

sys/arch/evbarm/nslu2/nslu2_machdep.c: revision 1.41
sys/arch/evbarm/gumstix/gumstix_machdep.c: revision 1.75
sys/arch/evbarm/iq80321/iq80321_machdep.c: revision 1.66
sys/arch/iyonix/iyonix/iyonix_machdep.c: revision 1.34
sys/arch/zaurus/zaurus/machdep.c: revision 1.52
sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c: revision 1.41
sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c: revision 1.33
sys/arch/evbarm/iq80310/iq80310_machdep.c: revision 1.96
sys/arch/evbarm/adi_brh/brh_machdep.c: revision 1.53
sys/arch/arm/include/arm32/pmap.h: revision 1.177
sys/arch/evbarm/viper/viper_machdep.c: revision 1.34
sys/arch/evbarm/iyonix/iyonix_machdep.c: revision 1.5
sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c: revision 1.30
sys/arch/evbarm/hdl_g/hdlg_machdep.c: revision 1.35
sys/arch/arm/arm32/pmap.c: revision 1.440
sys/arch/evbarm/lubbock/lubbock_machdep.c: revision 1.45
sys/arch/evbarm/ixdp425/ixdp425_machdep.c: revision 1.47

Fix non-DIAGNOSTIC builds
 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 14-Oct-2012  msaitoh struct device * -> device_t for IXP4xx (and nslu2).
Tested with my NSLU2.
 1.3 28-Sep-2012  ryo Defer attaching interrupt evcnts in the same way as i80321.c by matt@
 1.2 28-Apr-2008  martin branches: 1.2.34; 1.2.40; 1.2.44;
Remove clause 3 and 4 from TNF licenses
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22; 1.1.76; 1.1.78; 1.1.80;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 28-Feb-2006  rpaulo file nslu2_mainbus.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 28-Feb-2006  yamt file nslu2_mainbus.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 28-Feb-2006  simonb file nslu2_mainbus.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_mainbus.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.2.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.2.40.1 17-Oct-2012  riz Pull up following revision(s) (requested by tsutsui in ticket #600):
sys/arch/arm/xscale/ixp425_intr.c: revision 1.24
sys/arch/evbarm/ixdp425/ixdp425_mainbus.c: revision 1.8
sys/arch/evbarm/nslu2/nslu2_mainbus.c: revision 1.3
sys/arch/arm/xscale/ixp425var.h: revision 1.14
Defer attaching interrupt evcnts in the same way as i80321.c by matt@
 1.2.34.1 30-Oct-2012  yamt sync with head
 1.8 18-Nov-2018  jmcneill Add xname argument to pc_intr_establish implementation
 1.7 31-Mar-2014  ozaki-r branches: 1.7.28; 1.7.30;
Get rid of redundant return
 1.6 29-Mar-2014  christos make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.5 12-Nov-2012  skrll branches: 1.5.2;
C99 types
 1.4 04-Apr-2011  dyoung branches: 1.4.4; 1.4.14;
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args. Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
pci_intr_map() was a leftover from Xen 2. Probably a bug. I
stopped writing it. I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
Probably a bug. I use a temporary variable. I have not tested this
change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
Probably a bug. Use a local pci_attach_args. I have not tested
this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
caller's pci_attach_args. Probably a bug. Make a local copy of the
caller's pci_attach_args and modify the copy. I have not tested
this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
 1.3 21-Oct-2009  rmind branches: 1.3.4; 1.3.6;
Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22; 1.1.76; 1.1.78; 1.1.80;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.80.2 11-Mar-2010  yamt sync with head
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 28-Feb-2006  rpaulo file nslu2_pci.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 28-Feb-2006  yamt file nslu2_pci.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 28-Feb-2006  simonb file nslu2_pci.c was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_pci.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 21-Apr-2011  rmind sync with head
 1.4.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4.4.2 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.4.4.1 16-Jan-2013  yamt sync with (a bit old) head
 1.5.2.1 18-May-2014  rmind sync with head
 1.7.30.1 10-Jun-2019  christos Sync with HEAD
 1.7.28.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.3 31-Jan-2011  matt Add RCSID when needed.
Don't include pmap.h or pte.h, include "assym.h" instead.
Use assym.h provided values.
 1.2 28-Apr-2008  martin branches: 1.2.22; 1.2.28; 1.2.30;
Remove clause 3 and 4 from TNF licenses
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22; 1.1.76; 1.1.78; 1.1.80;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 28-Feb-2006  rpaulo file nslu2_start.S 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 28-Feb-2006  yamt file nslu2_start.S was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 28-Feb-2006  simonb file nslu2_start.S was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2_start.S was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000
 1.2.30.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.22.1 05-Mar-2011  rmind sync with head
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 28-Feb-2006  scw branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22; 1.1.76; 1.1.78; 1.1.80;
A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").

The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 28-Feb-2006  rpaulo file nslu2reg.h 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 28-Feb-2006  yamt file nslu2reg.h was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 28-Feb-2006  simonb file nslu2reg.h was added on branch simonb-timecounters on 2006-04-22 11:37:24 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 28-Feb-2006  yamt file nslu2reg.h was added on branch yamt-uio_vmspace on 2006-03-01 09:27:46 +0000

RSS XML Feed