Home | History | Annotate | only in /src/sys/arch/evbarm/tsarm
History log of /src/sys/arch/evbarm/tsarm
RevisionDateAuthorComments
 1.9 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.8 12-Nov-2012  skrll C99 types
 1.7 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.6 12-Feb-2012  matt branches: 1.6.6;
Change old-style function defintions to C89 prototypes.

Approved by releng.
 1.5 01-Jul-2011  dyoung branches: 1.5.2; 1.5.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.4 21-Oct-2009  rmind Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
 1.3 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.2 11-Dec-2005  christos branches: 1.2.78; 1.2.86; 1.2.92;
merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4;
TS-7200 SBC epcom UART glue
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file epcom_ts.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.78.2 11-Mar-2010  yamt sync with head
 1.2.78.1 04-May-2009  yamt sync with head.
 1.5.6.1 18-Feb-2012  mrg merge to -current.
 1.5.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.5.2.2 30-Oct-2012  yamt sync with head
 1.5.2.1 17-Apr-2012  yamt sync with head
 1.6.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3 21-Oct-2009  rmind Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
 1.2 11-Dec-2005  christos branches: 1.2.78;
merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4;
TS-7200 SBC epcom UART glue
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file epcom_tsvar.h was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.78.1 11-Mar-2010  yamt sync with head
 1.13 23-May-2020  jmcneill GC toastersensors driver
 1.12 25-Feb-2014  pooka Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.11 12-Nov-2012  skrll branches: 1.11.2;
C99 types
 1.10 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.9 01-Jul-2011  dyoung branches: 1.9.2; 1.9.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.8 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.7 28-Apr-2008  martin branches: 1.7.8; 1.7.14;
Remove clause 3 and 4 from TNF licenses
 1.6 17-Oct-2007  garbled branches: 1.6.16; 1.6.18; 1.6.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.5 09-Jul-2007  ad branches: 1.5.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.4 24-Jan-2007  hubertf branches: 1.4.6; 1.4.8; 1.4.14;
Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
 1.3 31-Aug-2006  matt branches: 1.3.2;
Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
 1.2 11-Dec-2005  christos branches: 1.2.4; 1.2.8; 1.2.18;
merge ktrace-lwp.
 1.1 14-Aug-2005  joff branches: 1.1.6;
Toaster inputs (burnlevel potentiometer, toast down sensor) and
matrix keypad/wskbd attachment glue for polling/debouncing
the 5 front-panel buttons.
 1.1.6.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.6.1 14-Aug-2005  skrll file toastersensors.c was added on branch ktrace-lwp on 2005-11-10 13:55:54 +0000
 1.2.18.5 03-Sep-2007  yamt sync with head.
 1.2.18.4 26-Feb-2007  yamt sync with head.
 1.2.18.3 30-Dec-2006  yamt sync with head.
 1.2.18.2 21-Jun-2006  yamt sync with head.
 1.2.18.1 11-Dec-2005  yamt file toastersensors.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:54 +0000
 1.2.8.1 03-Sep-2006  yamt sync with head.
 1.2.4.1 09-Sep-2006  rpaulo sync with head
 1.3.2.1 01-Feb-2007  ad Sync with head.
 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.5.10.1 06-Nov-2007  matt sync with HEAD
 1.6.20.2 04-May-2009  yamt sync with head.
 1.6.20.1 16-May-2008  yamt sync with head.
 1.6.18.1 18-May-2008  yamt sync with head.
 1.6.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.9.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.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.9.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.9.2.1 30-Oct-2012  yamt sync with head
 1.11.2.1 18-May-2014  rmind sync with head
 1.37 20-Feb-2024  andvar Fix format specifier for physmem from %d to 0x%"PRIxPSIZE" in multiple places.

Should fix VERBOSE_INIT_ARM for various evbarm kernel configs.
Also add 0x prefix in few previously fixed places to improve readability.
 1.36 02-May-2023  jmcneill TS7200: Defer event counter registration until after evcnt is initialized

Patch from Lloyd Parkes <lloyd@must-have-coffee.gen.nz> in PR# kern/57386
 1.35 20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.34 03-Jul-2022  andvar branches: 1.34.4;
s/bounaries/boundaries/ in comments.
 1.33 21-Nov-2021  skrll PR port-evbarm/40307 options KGDB doesn't work for some evbarm hosts

Apply patch from Lloyd Parkes with some KNF tweaks from me.
 1.32 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.31 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.30 18-Apr-2020  skrll Trailing whitespace
 1.29 16-Jul-2019  skrll branches: 1.29.8;
Consistently use vaddr_t as initarm and friends return type.

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

uvm_setpagesize() is now subsumed within this funciton.
 1.23 13-Sep-2014  matt branches: 1.23.2; 1.23.4;
Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.22 08-Mar-2014  skrll Hide unused variables in #ifdef FIXME
 1.21 18-Aug-2013  matt <arm/locore.h> fallout (fixes some include ordering errors)
 1.20 12-Nov-2012  skrll branches: 1.20.2;
C99 types
 1.19 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.18 16-Aug-2012  matt branches: 1.18.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.17 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.16 01-Jul-2011  dyoung branches: 1.16.2;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.15 30-Jun-2011  wiz dependant -> dependent
 1.14 26-Dec-2009  uebayasi Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.
 1.13 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.12 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.11 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.10 30-Nov-2008  martin 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 27-Apr-2008  matt branches: 1.7.6; 1.7.8;
Merge kernel changes in matt-armv6 to HEAD.
 1.6 19-Jan-2008  chris branches: 1.6.6; 1.6.8; 1.6.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.5 24-Nov-2006  wiz branches: 1.5.24; 1.5.28; 1.5.34; 1.5.42;
s/independant/independent/, from Zafer.
 1.4 17-May-2006  mrg branches: 1.4.8; 1.4.10;
in initarm(), initialise kernel_l1pt.pv_va as well as kernel_l1pt.pv_pa.
 1.3 24-Dec-2005  perry branches: 1.3.4; 1.3.6; 1.3.8; 1.3.12;
bare asm -> __asm
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4; 1.1.12;
TS-7200 machdep initialization
 1.1.12.3 21-Jan-2008  yamt sync with head
 1.1.12.2 30-Dec-2006  yamt sync with head.
 1.1.12.1 21-Jun-2006  yamt sync with head.
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file tsarm_machdep.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.3.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.8.1 24-May-2006  yamt sync with head.
 1.3.6.1 01-Jun-2006  kardel Sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.4.10.1 10-Dec-2006  yamt sync with head.
 1.4.8.1 12-Jan-2007  ad Sync with head.
 1.5.42.1 20-Jan-2008  bouyer Sync with HEAD
 1.5.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.5.28.2 23-Mar-2008  matt sync with HEAD
 1.5.28.1 09-Nov-2007  matt Make all the evbarm kernels build again. Fix lossage from rebase.
 1.5.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.6.10.4 11-Mar-2010  yamt sync with head
 1.6.10.3 19-Aug-2009  yamt sync with head.
 1.6.10.2 04-May-2009  yamt sync with head.
 1.6.10.1 16-May-2008  yamt sync with head.
 1.6.8.1 18-May-2008  yamt sync with head.
 1.6.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.6.6.1 02-Jun-2008  mjf 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.16.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.16.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.16.2.1 30-Oct-2012  yamt sync with head
 1.18.2.3 03-Dec-2017  jdolecek update from HEAD
 1.18.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.20.2.2 18-May-2014  rmind sync with head
 1.20.2.1 28-Aug-2013  rmind sync with head
 1.23.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.23.2.1 05-Feb-2017  skrll Sync with HEAD
 1.24.16.3 21-Apr-2020  martin Sync with HEAD
 1.24.16.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.24.16.1 10-Jun-2019  christos Sync with HEAD
 1.24.14.3 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.24.14.2 30-Sep-2018  pgoyette Ssync with HEAD
 1.24.14.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.29.8.1 20-Apr-2020  bouyer Sync with HEAD
 1.34.4.1 02-May-2023  martin Pull up following revision(s) (requested by jmcneill in ticket #155):

sys/arch/arm/ep93xx/ep93xx_intr.c: revision 1.28
sys/arch/arm/ep93xx/ep93xxvar.h: revision 1.7
sys/arch/evbarm/tsarm/tsarm_machdep.c: revision 1.36

TS7200: Defer event counter registration until after evcnt is initialized

Patch from Lloyd Parkes in PR kern/57386
 1.7 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.6 21-Oct-2009  rmind branches: 1.6.4; 1.6.6; 1.6.8;
Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
 1.5 14-Dec-2008  kenh Revert changes from revisions 1.3 and 1.4; they make the tsarm platform
fail to boot.
 1.4 07-Dec-2008  matt Roundup to next megabyte and subtract 0xc0000000
 1.3 07-Dec-2008  matt Map all of the kernel.
 1.2 11-Dec-2005  christos branches: 1.2.78; 1.2.84; 1.2.86;
merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4;
TS-7200 machdep initialization
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file tsarm_start.S was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.86.1 19-Jan-2009  skrll Sync with HEAD.
 1.2.84.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.2.78.1 11-Mar-2010  yamt sync with head
 1.6.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.6.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.4.1 05-Mar-2011  rmind sync with head
 1.6 23-Oct-2009  snj Switch to a 2 clause license. Approved by joff@ (copyright holder).
 1.5 11-Dec-2005  christos branches: 1.5.78;
merge ktrace-lwp.
 1.4 14-Aug-2005  joff Add magic i/o location for the MAX197 ADC
 1.3 09-Mar-2005  joff branches: 1.3.4;
Use special spaces for ISA that don't assert USER CS#
 1.2 27-Dec-2004  joff branches: 1.2.2; 1.2.4; 1.2.6;
Add support for TS-5620 daughter card RTC
 1.1 23-Dec-2004  joff TS-7200 magic numbers/structs
 1.2.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.4.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.4.3 01-Apr-2005  skrll Sync with HEAD.
 1.2.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.2.4.1 27-Dec-2004  skrll file tsarmreg.h was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.2.1 29-Apr-2005  kent sync with -current
 1.3.4.1 21-Jun-2006  yamt sync with head.
 1.5.78.1 11-Mar-2010  yamt sync with head
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4;
TS-7200 magic numbers/structs
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file tsarmvar.h was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 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 12-Nov-2012  skrll branches: 1.10.52;
C99 types
 1.9 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.8 01-Jul-2011  dyoung branches: 1.8.2; 1.8.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.7 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.6 28-Apr-2008  martin branches: 1.6.8; 1.6.14;
Remove clause 3 and 4 from TNF licenses
 1.5 24-Jan-2007  hubertf branches: 1.5.44; 1.5.46; 1.5.48;
Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
 1.4 31-Aug-2006  matt branches: 1.4.2;
Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
 1.3 11-Dec-2005  christos branches: 1.3.4; 1.3.8;
merge ktrace-lwp.
 1.2 04-Feb-2005  joff branches: 1.2.2; 1.2.4; 1.2.10; 1.2.12;
keysyms off-by-one in numbering
 1.1 31-Jan-2005  joff Add support for a 4x4 matrix keypad wskbd connected via the TS-7200 DIO header.
 1.2.12.2 26-Feb-2007  yamt sync with head.
 1.2.12.1 30-Dec-2006  yamt sync with head.
 1.2.10.2 29-Apr-2005  kent sync with -current
 1.2.10.1 04-Feb-2005  kent file tskp.c was added on branch kent-audio2 on 2005-04-29 11:28:08 +0000
 1.2.4.2 12-Feb-2005  yamt sync with head.
 1.2.4.1 04-Feb-2005  yamt file tskp.c was added on branch yamt-km on 2005-02-12 18:17:31 +0000
 1.2.2.2 04-Feb-2005  skrll Sync with HEAD.
 1.2.2.1 04-Feb-2005  skrll file tskp.c was added on branch ktrace-lwp on 2005-02-04 11:44:18 +0000
 1.3.8.1 03-Sep-2006  yamt sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.4.2.1 01-Feb-2007  ad Sync with head.
 1.5.48.2 04-May-2009  yamt sync with head.
 1.5.48.1 16-May-2008  yamt sync with head.
 1.5.46.1 18-May-2008  yamt sync with head.
 1.5.44.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.8.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.8.2.1 30-Oct-2012  yamt sync with head
 1.10.52.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.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.20 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.19 24-Apr-2021  thorpej branches: 1.19.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.18 25-Jul-2014  dholland branches: 1.18.42;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.17 16-Mar-2014  dholland branches: 1.17.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.16 12-Nov-2012  skrll branches: 1.16.2;
C99 types
 1.15 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.14 01-Jul-2011  dyoung branches: 1.14.2; 1.14.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.13 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.12 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.11 11-Jun-2008  cegger branches: 1.11.4; 1.11.10;
use device_lookup_private to get softc
 1.10 28-Apr-2008  martin branches: 1.10.2; 1.10.4;
Remove clause 3 and 4 from TNF licenses
 1.9 04-Mar-2007  christos branches: 1.9.40; 1.9.42; 1.9.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.8 24-Jan-2007  hubertf branches: 1.8.2;
Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
 1.7 31-Aug-2006  matt branches: 1.7.2;
Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
 1.6 11-Dec-2005  christos branches: 1.6.4; 1.6.8;
merge ktrace-lwp.
 1.5 14-Aug-2005  joff hd44780 porting layer for readreg/writereg now takes an extra "enable" argument.
 1.4 04-Feb-2005  joff branches: 1.4.6;
Support a wsdisplay(4) attachment on a tslcd
 1.3 11-Jan-2005  joff branches: 1.3.2; 1.3.4; 1.3.6;
Use hd44780var.h instead of hd44780_subr.h
 1.2 09-Jan-2005  joff o reversed sense of RS in writereg
o attempt HD44780 reset on open if LCD not detected at bootup
o skip everything if sc_dev_ok == 0 in writereg/readreg
 1.1 08-Jan-2005  joff Support for bit-banging HD44780 bus cycles on the generic LCD header
 1.3.6.1 12-Feb-2005  yamt sync with head.
 1.3.4.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.4.3 04-Feb-2005  skrll Sync with HEAD.
 1.3.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.3.4.1 11-Jan-2005  skrll file tslcd.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.3.2.1 29-Apr-2005  kent sync with -current
 1.4.6.4 03-Sep-2007  yamt sync with head.
 1.4.6.3 26-Feb-2007  yamt sync with head.
 1.4.6.2 30-Dec-2006  yamt sync with head.
 1.4.6.1 21-Jun-2006  yamt sync with head.
 1.6.8.1 03-Sep-2006  yamt sync with head.
 1.6.4.1 09-Sep-2006  rpaulo sync with head
 1.7.2.1 01-Feb-2007  ad Sync with head.
 1.8.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.9.44.2 04-May-2009  yamt sync with head.
 1.9.44.1 16-May-2008  yamt sync with head.
 1.9.42.2 17-Jun-2008  yamt sync with head.
 1.9.42.1 18-May-2008  yamt sync with head.
 1.9.40.2 29-Jun-2008  mjf Sync with HEAD.
 1.9.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.4.1 18-Jun-2008  simonb Sync with head.
 1.10.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.10.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.11.4.1 28-Apr-2009  skrll Sync with HEAD.
 1.14.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.14.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.14.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.14.2.1 30-Oct-2012  yamt sync with head
 1.16.2.1 18-May-2014  rmind sync with head
 1.17.2.1 10-Aug-2014  tls Rebase.
 1.18.42.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.19.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.28 19-Oct-2025  thorpej Use {,e}isabus_attach().
 1.27 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.26 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.25 24-Apr-2021  thorpej branches: 1.25.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.24 25-Feb-2014  pooka branches: 1.24.44;
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.23 12-Nov-2012  skrll branches: 1.23.2;
C99 types
 1.22 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.21 01-Jul-2011  dyoung branches: 1.21.2; 1.21.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.20 23-Oct-2009  snj Switch to a 2 clause license. Approved by joff@ (copyright holder).
 1.19 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.18 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.17 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.16 01-Jan-2009  kenh branches: 1.16.2;
If the default watchdog timer period is used, use a timer value
of 8 seconds. Otherwise wdogctl will return an error.
 1.15 10-May-2008  martin branches: 1.15.6;
Backout previous: the license sweep touched these files in error, so
restore the old license.
 1.14 28-Apr-2008  martin branches: 1.14.2;
Remove clause 3 and 4 from TNF licenses
 1.13 17-Oct-2007  garbled branches: 1.13.16; 1.13.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.12 09-Jul-2007  ad branches: 1.12.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.11 12-Nov-2005  hamajima branches: 1.11.32; 1.11.34; 1.11.40;
add #include <arm/ep93xx/epgpioreg.h>.
 1.10 26-Aug-2005  drochner s/locdesc_t/int/g
 1.9 14-Aug-2005  joff Support for the TS-7200's optional TMP124 temperature sensor via sysctl
 1.8 30-Jun-2005  drochner branches: 1.8.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.7 20-Jun-2005  atatat Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone. Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
 1.6 04-Jun-2005  he Fix -Wcast-qual warnings, unfortunately using __UNCONST() for sysctl()
function parameters.
 1.5 24-Feb-2005  joff Add sysctl tree hw.tspld.* for query of jumper states, pld revision,
board model/options, etc...
 1.4 09-Jan-2005  joff branches: 1.4.2; 1.4.4; 1.4.6;
call isa_bs_mallocok() right before ISA bus attachment
 1.3 27-Dec-2004  joff Clean up autoconf stuff
 1.2 26-Dec-2004  joff support watchdog timer on TS-7200 CPLD
 1.1 23-Dec-2004  joff TS-7200 onboard CPLD driver
 1.4.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.4.4.5 11-Dec-2005  christos Sync with head.
 1.4.4.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.4.3 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.4.4.1 09-Jan-2005  skrll file tspld.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.4.2.1 29-Apr-2005  kent sync with -current
 1.8.2.2 03-Sep-2007  yamt sync with head.
 1.8.2.1 21-Jun-2006  yamt sync with head.
 1.11.40.1 03-Oct-2007  garbled Sync with HEAD
 1.11.34.1 11-Jul-2007  mjf Sync with head.
 1.11.32.1 15-Jul-2007  ad Sync with head.
 1.12.10.1 06-Nov-2007  matt sync with HEAD
 1.13.20.2 11-Mar-2010  yamt sync with head
 1.13.20.1 04-May-2009  yamt sync with head.
 1.13.16.1 17-Jan-2009  mjf Sync with HEAD.
 1.14.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.15.6.2 28-Apr-2009  skrll Sync with HEAD.
 1.15.6.1 19-Jan-2009  skrll Sync with HEAD.
 1.16.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.21.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 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 16-Jan-2013  yamt sync with (a bit old) head
 1.21.2.1 30-Oct-2012  yamt sync with head
 1.23.2.1 18-May-2014  rmind sync with head
 1.24.44.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.24.44.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.24.44.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.24.44.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.24.44.2 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.24.44.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.25.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4;
TS-7200 onboard CPLD driver
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file tspldvar.h was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.8 20-Nov-2014  christos use the inline bcdtobin and bintobcd directly instead through a macro.
 1.7 01-Jul-2011  dyoung branches: 1.7.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.6 04-Apr-2008  tsutsui Fix botches in the previous.
 1.5 29-Mar-2008  tsutsui Don't forget to initialize sc_dev.
 1.4 28-Mar-2008  tsutsui Split device_t and softc for MI mc146818 clock,
and other related misc cosmetics.
 1.3 10-Jan-2008  tsutsui branches: 1.3.6;
Move todr_attach(9) calls from each MD attachment to MI mc146818_attach().
 1.2 11-Dec-2005  christos branches: 1.2.46; 1.2.50; 1.2.56; 1.2.64;
merge ktrace-lwp.
 1.1 27-Dec-2004  joff branches: 1.1.4; 1.1.12;
Add support for TS-5620 daughter card RTC
 1.1.12.1 21-Jan-2008  yamt sync with head
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 27-Dec-2004  skrll file tsrtc.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.64.1 10-Jan-2008  bouyer Sync with HEAD
 1.2.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.50.1 23-Mar-2008  matt sync with HEAD
 1.2.46.1 28-Feb-2008  rjs Sync with HEAD.
 1.3.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.3.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.7.12.1 03-Dec-2017  jdolecek update from HEAD
 1.12 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.11 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.10 07-Oct-2017  jdolecek adapt the rest of wdc attachments for NCQ branch merge
 1.9 31-Jul-2012  bouyer branches: 1.9.2;
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.8 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.7 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.6 01-Jul-2011  dyoung branches: 1.6.2;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 18-Mar-2008  cube branches: 1.4.2; 1.4.4;
Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.3 16-Jan-2006  bouyer branches: 1.3.48; 1.3.68; 1.3.72;
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.2 11-Dec-2005  christos branches: 1.2.2;
merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4; 1.1.12;
CompactFlash IDE controller glue
 1.1.12.2 24-Mar-2008  yamt sync with head.
 1.1.12.1 21-Jun-2006  yamt sync with head.
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file wdc_ts.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.2.1 01-Feb-2006  yamt sync with head.
 1.3.72.2 02-Jun-2008  mjf Sync with HEAD.
 1.3.72.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.68.1 24-Mar-2008  keiichi sync with head.
 1.3.48.1 23-Mar-2008  matt sync with HEAD
 1.4.4.1 16-May-2008  yamt sync with head.
 1.4.2.1 18-May-2008  yamt sync with head.
 1.6.2.1 30-Oct-2012  yamt sync with head
 1.9.2.1 03-Dec-2017  jdolecek update from HEAD
 1.13 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.12 16-Mar-2018  ryo use designated initializer to make adaptability and flexibility for changing struct bus_space.
no functional change.
 1.11 13-Sep-2014  matt branches: 1.11.18;
Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.10 12-Feb-2012  matt branches: 1.10.6;
Change old-style function defintions to C89 prototypes.

Approved by releng.
 1.9 27-Jan-2012  para converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
 1.8 01-Jul-2011  dyoung branches: 1.8.2; 1.8.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.7 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 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 04-Mar-2007  christos branches: 1.5.44; 1.5.52; 1.5.58;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 11-Dec-2005  christos branches: 1.4.26;
merge ktrace-lwp.
 1.3 24-Jan-2005  joff branches: 1.3.8;
Fix mem/io extents usage. Previously had been mis-using the bs_cookie for a bs_tag.
 1.2 09-Jan-2005  joff branches: 1.2.2; 1.2.4;
Implement extent(9) based management of ISA io/mem so pcic(9) has
a chance of working.
 1.1 23-Dec-2004  joff PC/104 aka ISA bus support on TS-7200
 1.2.4.3 24-Jan-2005  skrll Sync with HEAD.
 1.2.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.2.4.1 09-Jan-2005  skrll file isa_io.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.2.2.1 29-Apr-2005  kent sync with -current
 1.3.8.1 03-Sep-2007  yamt sync with head.
 1.4.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.44.1 04-May-2009  yamt sync with head.
 1.8.6.1 18-Feb-2012  mrg merge to -current.
 1.8.2.1 17-Apr-2012  yamt sync with head
 1.10.6.1 03-Dec-2017  jdolecek update from HEAD
 1.11.18.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 11-Dec-2005  christos branches: 1.2.74; 1.2.76; 1.2.78;
merge ktrace-lwp.
 1.1 23-Dec-2004  joff branches: 1.1.4;
PC/104 aka ISA bus support on TS-7200
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file isa_io_asm.S was added on branch ktrace-lwp on 2005-01-17 19:29:23 +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.14 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.13 08-Mar-2014  skrll Fix a bug found by gcc 4.8
 1.12 27-Oct-2012  chs branches: 1.12.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.11 01-Jul-2011  dyoung branches: 1.11.2; 1.11.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.10 19-Aug-2009  dyoung isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t.
 1.9 18-Aug-2009  dyoung These are stragglers from my last commit ("Let us safely detach
the ISA bus and devices attaching to the ISA bus"). Define
isa_detach_hook() in MD ISA implementations. Define isa_dmadestroy().
 1.8 16-Mar-2009  dsl ANSIfy functions with function-pointer arguments
 1.7 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 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 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.4 28-Apr-2008  martin branches: 1.4.8; 1.4.14;
Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.74; 1.3.76; 1.3.78;
merge ktrace-lwp.
 1.2 24-Jan-2005  joff whoops, had intr mask inverted
 1.1 23-Dec-2004  joff branches: 1.1.2; 1.1.4;
PC/104 aka ISA bus support on TS-7200
 1.1.4.3 24-Jan-2005  skrll Sync with HEAD.
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 23-Dec-2004  skrll file isa_machdep.c was added on branch ktrace-lwp on 2005-01-17 19:29:23 +0000
 1.1.2.1 29-Apr-2005  kent sync with -current
 1.3.78.3 19-Aug-2009  yamt sync with head.
 1.3.78.2 04-May-2009  yamt sync with head.
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.11.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.11.2.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.11.2.1 30-Oct-2012  yamt sync with head
 1.12.2.1 18-May-2014  rmind sync with head

RSS XML Feed