Home | History | Annotate | only in /src/sys/arch/acorn32/eb7500atx
History log of /src/sys/arch/acorn32/eb7500atx
RevisionDateAuthorComments
 1.37 15-May-2022  andvar s/wich/which in comments.
 1.36 16-Sep-2021  andvar fix various typos, mainly in comments.
 1.35 17-Aug-2021  andvar 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 29-Mar-2020  skrll branches: 1.32.2;
KNF
 1.31 16-Jul-2019  skrll Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.30 28-Oct-2018  skrll Fix a commit
 1.29 22-Dec-2016  cherry branches: 1.29.14; 1.29.16;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.28 25-Oct-2014  skrll branches: 1.28.2; 1.28.4;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.27 13-Sep-2014  matt vm_size_t -> vsize_t
 1.26 18-Aug-2013  matt Fix more <arm/locore.h> lossage
 1.25 22-Sep-2012  matt branches: 1.25.2;
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.24 16-Aug-2012  matt branches: 1.24.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.23 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.22 10-May-2012  skrll _int*_t -> uint*_t

Same code before and after.
 1.21 19-Jul-2011  dyoung branches: 1.21.2; 1.21.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.20 30-Jun-2011  wiz dependant -> dependent
 1.19 28-Dec-2009  uebayasi More setttb() -> cpu_setttb() for readability & consistency. Missing instances
pointed out by tsutsui@ & nonaka@, thanks.
 1.18 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.17 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.16 22-Sep-2009  tsutsui Explicitly include <sys/exec_aout.h> for ZMAGIC etc.
 1.15 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.14 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.13 30-Nov-2008  martin branches: 1.13.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.12 23-Nov-2008  chris Fix EB7500ATX kernel to build again, mainly catching up on 6+ months of
changes elsewhere in the kernel:
* kernel_l1pt is now a global in pmap
* wdc no longer has dma/udma caps without the relevant options, however,
rside doesn't support dma/udma so don't set the options.
* also fix a device_t/softc split issue.

Perhaps I should add the kernel to the default build list for acorn32, to
avoid any other breakage. Although as the only person probably even
running NetBSD on an EB7500ATX system I'm not sure it's worthwhile.
 1.11 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.10 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.9 19-Jan-2008  chris branches: 1.9.6; 1.9.10; 1.9.16; 1.9.18;
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.8 17-Oct-2007  garbled branches: 1.8.2; 1.8.8;
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.7 13-Aug-2007  tsutsui branches: 1.7.2; 1.7.4;
Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
 1.6 24-Oct-2006  bjh21 branches: 1.6.8; 1.6.16; 1.6.22; 1.6.24; 1.6.26;
parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
 1.5 31-Aug-2006  matt branches: 1.5.2; 1.5.4;
Make this console now that vconsole is done and with GCC4.
 1.4 16-Aug-2006  bjh21 Clean out some cruft left behind by the old console code.
 1.3 11-Dec-2005  christos branches: 1.3.4; 1.3.8;
merge ktrace-lwp.
 1.2 12-Dec-2004  abs branches: 1.2.10;
Fix comments slighly
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.5 18-Dec-2004  skrll Sync with HEAD.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file eb7500atx_machdep.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.2.10.3 21-Jan-2008  yamt sync with head
 1.2.10.2 03-Sep-2007  yamt sync with head.
 1.2.10.1 30-Dec-2006  yamt sync with head.
 1.3.8.1 03-Sep-2006  yamt sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.5.4.1 10-Dec-2006  yamt sync with head.
 1.5.2.1 18-Nov-2006  ad Sync with head.
 1.6.26.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.6.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.6.22.1 15-Aug-2007  skrll Sync with HEAD.
 1.6.16.1 03-Oct-2007  garbled Sync with HEAD
 1.6.8.1 20-Aug-2007  ad Sync with HEAD.
 1.7.4.2 23-Mar-2008  matt sync with HEAD
 1.7.4.1 06-Nov-2007  matt sync with HEAD
 1.7.2.3 20-Jan-2008  chris Sync to HEAD.
 1.7.2.2 01-Jan-2008  chris Sync with HEAD.
 1.7.2.1 13-Aug-2007  chris file eb7500atx_machdep.c was added on branch chris-arm-intr-rework on 2008-01-01 15:39:51 +0000
 1.8.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.8.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.9.18.2 03-Mar-2009  skrll Sync with HEAD.
 1.9.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.9.10.3 11-Mar-2010  yamt sync with head
 1.9.10.2 19-Aug-2009  yamt sync with head.
 1.9.10.1 04-May-2009  yamt sync with head.
 1.9.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.13.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.21.6.1 02-Jun-2012  mrg sync to latest -current.
 1.21.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.21.2.2 30-Oct-2012  yamt sync with head
 1.21.2.1 23-May-2012  yamt sync with head.
 1.24.2.3 03-Dec-2017  jdolecek update from HEAD
 1.24.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.25.2.1 28-Aug-2013  rmind sync with head
 1.28.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.28.2.1 05-Feb-2017  skrll Sync with HEAD
 1.29.16.4 21-Apr-2020  martin Sync with HEAD
 1.29.16.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.29.16.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.29.16.1 10-Jun-2019  christos Sync with HEAD
 1.29.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.32.2.1 20-Apr-2020  bouyer Sync with HEAD
 1.13 29-May-2022  andvar fix various typos in comments and log messages.
 1.12 25-Apr-2019  msaitoh KNF. No functional change.
 1.11 25-Apr-2019  msaitoh No functional change:
- Use __arraycount().
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
 1.10 13-Apr-2015  riastradh branches: 1.10.18;
MD rnd.h cleanups. Please let me know if I broke anything!
 1.9 10-May-2012  skrll branches: 1.9.2; 1.9.16;
_int*_t -> uint*_t

Same code before and after.
 1.8 02-Feb-2012  tls Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
 1.7 19-Jul-2011  dyoung branches: 1.7.2; 1.7.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.6 22-Sep-2009  tsutsui Split device_t/softc. Tested only on cs at ofisa on shark.
 1.5 12-May-2009  cegger use device_xname()
 1.4 11-Dec-2005  christos branches: 1.4.80; 1.4.94;
merge ktrace-lwp.
 1.3 04-Jul-2004  chris branches: 1.3.2;
Use a define, rather than hard coded number, for the interrupt to claim.

Make use of the ability to parse the cs's eeprom for values, rather than
ignoring the eeprom.
 1.2 03-Jan-2004  chris Tidy up the code, add a copyright block for myself. Sprinkle a few
comments, de-_P things.
 1.1 03-Jan-2004  chris First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.3.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.2 03-Aug-2004  skrll Sync with HEAD
 1.3.2.1 04-Jul-2004  skrll file if_cs.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.4.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.80.2 11-Mar-2010  yamt sync with head
 1.4.80.1 16-May-2009  yamt sync with head
 1.7.6.2 02-Jun-2012  mrg sync to latest -current.
 1.7.6.1 18-Feb-2012  mrg merge to -current.
 1.7.2.2 23-May-2012  yamt sync with head.
 1.7.2.1 17-Apr-2012  yamt sync with head
 1.9.16.1 06-Jun-2015  skrll Sync with HEAD
 1.9.2.1 03-Dec-2017  jdolecek update from HEAD
 1.10.18.1 10-Jun-2019  christos Sync with HEAD
 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 27-Oct-2012  chs branches: 1.10.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.9 19-Jul-2011  dyoung branches: 1.9.2; 1.9.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.8 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.7 21-Oct-2009  rmind branches: 1.7.4; 1.7.6; 1.7.10;
Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).

(this single file was missed in previous commit)
 1.6 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.5 26-Mar-2007  hubertf branches: 1.5.40; 1.5.48; 1.5.54;
Remove duplicate #include <sys/param.h>, and instead
#include <sys/cdefs.h> for __KERNEL_RCSID()

From: Slava Semushin <php-coder@altlinux.ru>
 1.4 11-Dec-2005  christos branches: 1.4.26; 1.4.30; 1.4.32; 1.4.34;
merge ktrace-lwp.
 1.3 26-Aug-2005  drochner s/locdesc_t/int/g
 1.2 30-Jun-2005  drochner branches: 1.2.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.2.2.2 03-Sep-2007  yamt sync with head.
 1.2.2.1 21-Jun-2006  yamt sync with head.
 1.4.34.1 29-Mar-2007  reinoud Pullup to -current
 1.4.32.1 11-Jul-2007  mjf Sync with head.
 1.4.30.1 10-Apr-2007  ad Sync with head.
 1.4.26.1 15-Apr-2007  yamt sync with head.
 1.5.54.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.48.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.40.2 11-Mar-2010  yamt sync with head
 1.5.40.1 04-May-2009  yamt sync with head.
 1.7.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.4.1 12-Jun-2011  rmind sync with head
 1.9.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.2.1 30-Oct-2012  yamt sync with head
 1.10.52.6 05-Apr-2021  thorpej Treat config_probe() as if it were a boolean function; don't compare
return value > 0... except for the odd balls, which are now really easy
to spot.
 1.10.52.5 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.10.52.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.10.52.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.10.52.2 21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.10.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.11.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.4 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.3 19-Jul-2011  dyoung branches: 1.3.2; 1.3.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus.h was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.3.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.2.1 30-Oct-2012  yamt sync with head
 1.5 16-Mar-2018  ryo use designated initializer to make adaptability and flexibility for changing struct bus_space.
no functional change.
 1.4 10-May-2012  skrll branches: 1.4.38;
_int*_t -> uint*_t

Same code before and after.
 1.3 19-Jul-2011  dyoung branches: 1.3.2; 1.3.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus_io.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.3.6.1 02-Jun-2012  mrg sync to latest -current.
 1.3.2.1 23-May-2012  yamt sync with head.
 1.4.38.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus_io_asm.S was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.17 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.16 20-Oct-2017  jdolecek move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.15 07-Oct-2017  jdolecek Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
 1.14 31-Jul-2012  bouyer branches: 1.14.2; 1.14.28;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.13 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.12 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.11 19-Jul-2011  dyoung branches: 1.11.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.10 23-Nov-2008  chris Fix EB7500ATX kernel to build again, mainly catching up on 6+ months of
changes elsewhere in the kernel:
* kernel_l1pt is now a global in pmap
* wdc no longer has dma/udma caps without the relevant options, however,
rside doesn't support dma/udma so don't set the options.
* also fix a device_t/softc split issue.

Perhaps I should add the kernel to the default build list for acorn32, to
avoid any other breakage. Although as the only person probably even
running NetBSD on an EB7500ATX system I'm not sure it's worthwhile.
 1.9 18-Mar-2008  cube branches: 1.9.4; 1.9.10; 1.9.12;
Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.8 16-Jan-2006  bouyer branches: 1.8.48; 1.8.50; 1.8.70; 1.8.74;
properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
 1.7 11-Dec-2005  christos branches: 1.7.2;
merge ktrace-lwp.
 1.6 11-Mar-2005  matt branches: 1.6.4;
Constify a structure.
 1.5 20-Aug-2004  thorpej branches: 1.5.4; 1.5.6;
Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
 1.4 14-Aug-2004  thorpej - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
ata_channel. Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
maximum number of drives that can be present on the channel. For now,
this is always 2. Add an ATA_MAXDRIVES constant that places an upper
limit on this value, also currently 2.
 1.3 25-May-2004  thorpej branches: 1.3.2;
Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
 1.2 04-Jan-2004  chris Tidy up a few things:
Get rid of the static bus tag, instead move it into the softc.
Update to ThorpeJ's recent variable renaming for ATA things.
De-__P and KNF prototypes, also make attach and probe static.
Add RCSID.
Add a copyright for myself.
 1.1 03-Jan-2004  chris First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.3.2.6 01-Apr-2005  skrll Sync with HEAD.
 1.3.2.5 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.4 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.3 25-Aug-2004  skrll Sync with HEAD.
 1.3.2.2 03-Aug-2004  skrll Sync with HEAD
 1.3.2.1 25-May-2004  skrll file rside.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.5.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5.4.1 29-Apr-2005  kent sync with -current
 1.6.4.2 24-Mar-2008  yamt sync with head.
 1.6.4.1 21-Jun-2006  yamt sync with head.
 1.7.2.1 01-Feb-2006  yamt sync with head.
 1.8.74.2 17-Jan-2009  mjf Sync with HEAD.
 1.8.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.70.1 24-Mar-2008  keiichi sync with head.
 1.8.50.1 23-Mar-2008  matt sync with HEAD
 1.8.48.1 21-Mar-2008  chris Sync with head.
 1.9.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.9.4.1 04-May-2009  yamt sync with head.
 1.11.2.1 30-Oct-2012  yamt sync with head
 1.14.28.2 27-Sep-2017  jdolecek change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()
 1.14.28.1 24-Apr-2017  jdolecek use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
 1.14.2.1 03-Dec-2017  jdolecek update from HEAD
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsidereg.h was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000

RSS XML Feed