History log of /src/sys/arch/sparc/sparc/clock.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
# 1.104 22-Nov-2020 thorpej

malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)


Revision tags: netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 nick-nhusb-base-20170204 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 nick-nhusb-base-20161204 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE nick-nhusb-base-20161004 localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 netbsd-7-0-1-RELEASE nick-nhusb-base-20160422 nick-nhusb-base-20160319 nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE rmind-smpnet-nbase netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.103 01-Jul-2011 dyoung

branches: 1.103.66;
#include <sys/bus.h> instead of <machine/bus.h>.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 haad-dm-base wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 yamt-nfs-mp-base2 wrstuden-revivesa-base yamt-nfs-mp-base yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase mjf-devfs2-base nick-net80211-sync-base keiichi-mipv6-base bouyer-xeni386-merge1 vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 bouyer-xeni386-base yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 matt-armv6-nbase jmcneill-base mjf-devfs-base bouyer-xenamd64-base2 vmlocking-nbase yamt-x86pmap-base4 bouyer-xenamd64-base matt-armv6-base jmcneill-pm-base hpcarm-cleanup-base reinoud-bufcleanup-base
# 1.102 17-Oct-2007 garbled

Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.


Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base3 yamt-x86pmap-base2 yamt-x86pmap-base nick-csl-alignment-base matt-mips64-base ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.101 17-May-2007 yamt

branches: 1.101.10;
merge yamt-idlelwp branch. asked by core@. some ports still needs work.

from doc/BRANCHES:

idle lwp, and some changes depending on it.

1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.


Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
# 1.100 04-Mar-2007 mrg

branches: 1.100.2; 1.100.4; 1.100.10;
fix fall out from caddr_t changes.


# 1.99 04-Mar-2007 christos

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base ad-audiomp-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 newlock2-base netbsd-4-base rpaulo-netinet-merge-pcb-base
# 1.98 03-Sep-2006 gdamore

branches: 1.98.8;
Convert both sparc and sparc64 to MI todr.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7 yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
# 1.97 07-Jun-2006 kardel

convert to timecounters (from branch simonb-timecounters)


Revision tags: yamt-pdpolicy-base5 yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5 simonb-timecounters-base yamt-readahead-base3 yamt-readahead-base2 ktrace-lwp-base
# 1.96 14-Nov-2005 uwe

branches: 1.96.4; 1.96.6; 1.96.8; 1.96.14;
ANSIify. Same binary code is produced for GENERIC.MP + KGDB + DDB.


Revision tags: yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
# 1.95 04-Jun-2005 he

branches: 1.95.2; 1.95.8;
Fix the various todr_gettime() and todr_settime() fallouts from
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*". Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>. This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.

Reviewed by thorpej.


# 1.94 03-Jun-2005 martin

Sprinkle some const


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.93 15-Jul-2003 lukem

__KERNEL_RCSID()


# 1.92 26-Feb-2003 pk

branches: 1.92.2;
Move all `ID prom' stuff into the prom library.


# 1.91 18-Jan-2003 thorpej

Merge the nathanw_sa branch.


Revision tags: nathanw_sa_before_merge nathanw_sa_base
# 1.90 06-Jan-2003 pk

Move schedintr() to clock.c and initialise schedhz in initclocks(), so
these are available to all timer implementations.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base kqueue-aftermerge kqueue-beforemerge netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base gehenna-devsw-base kqueue-base
# 1.89 02-May-2002 martin

Remove a local declaration shadowing the global "int statint", thus
preventing the latter to be initialized properly.

Patch from adam@lebsack.com in PR 16608.


# 1.88 28-Mar-2002 pk

Untangle clock.c:
* put various time-of-day clock, timer and eeprom drivers in separate files
* avoid unnecessary overhead in interrupt handlers
* make the MSIIEP timer attach through the regular autoconf mechanisms


Revision tags: eeh-devprop-base
# 1.87 11-Mar-2002 pk

* `bus_type_t' is gone.
* Use BUS_ADDR() where appropriate to encode I/O space and physical
address offset into a `bus_addr_t' value.
* Drop obio_bus_map() since it's now completely equivalent to bus_space_map()
* Use bus_space_map2() to map device space at a fixed virtual address.
* Remove the virtual address argument from sbus_sbus_addr()


Revision tags: newlock-base ifpoll-base
# 1.86 25-Feb-2002 kleink

Typo in comments.


# 1.85 23-Feb-2002 scw

Allow MD code to provide functions for reading/writing NVRAM/RTC
locations. If passed NULL, the old behaviour using bus_space_{read,write}_1()
is used. Otherwise, all access to the chip goes via the MD functions.

This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is not
directly addressable.


# 1.84 11-Dec-2001 uwe

tabify


# 1.83 11-Dec-2001 uwe

Add microSPARC-IIep support. Protect mostek clock code with NMK48TXX
so that this file doesn't require obio, iommu and sbus to link the kernel.
Make todr_handle and establish_hostid() non-static.


# 1.82 04-Dec-2001 darrenr

defopt "options SUN4*", put #define for each of SUN4, SUN4C, SUN4M and SUN4U
into opt_arch_sparc.h and include this wherever they are used.


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2
# 1.81 26-Sep-2001 eeh

branches: 1.81.4;
getprop* -> PROM_getprop*


Revision tags: post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.80 02-Aug-2001 matt

branches: 1.80.2;
Fix non-properly ifdef'ed SUN4 only code.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.79 09-Apr-2001 pk

branches: 1.79.2;
Account for the number of counter ticks that elapse while statintr()
processing takes place. This prevents stat clock skew by a factor
approximately proportional to stathz (not a serious problem if stathz==100;
but considerable already if stathz==1000).


# 1.78 20-Jan-2001 pk

branches: 1.78.2;
In cpu_reboot(), only reset the TOD clock if the time is known to be good
enough, e.g. it has been initialized already by inittodr() or set
explicitly before by resettodr(). This prevents the TOD clock from going
way backwards when typing `halt' at the `mount root filesystem' prompt.


# 1.77 12-Nov-2000 pk

Remove left-over turds from previous __P() cleanup.


# 1.76 11-Nov-2000 pk

Print host ID in hex.


# 1.75 11-Nov-2000 pk

De-__P() this file.


# 1.74 11-Nov-2000 pk

Switch to MI mk48xx and intersil7170 time-of-day clock drivers.


# 1.73 26-Jul-2000 pk

Pull in <dev/clock_subr.h>.


# 1.72 29-Jun-2000 mrg

remove include of <vm/vm.h> and <machine/pmap.h>. <vm/vm.h> -> <uvm/uvm_extern.h>


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.71 19-Mar-2000 pk

Nuke dead code.


Revision tags: chs-ubc2-newbase
# 1.70 05-Feb-2000 pk

Ensure uniqueness of EEPROM device without reference to cf_unit.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 wrstuden-devbsize-19991221 wrstuden-devbsize-base kame_141_19991130 comdex-fall-1999-base fvdl-softdep-base netbsd-1-4-PATCH001 kame_14_19990705 kame_14_19990628 chs-ubc2-base netbsd-1-4-RELEASE netbsd-1-4-base kenh-if-detach-base chs-ubc-base
# 1.69 14-Oct-1998 pk

branches: 1.69.12;
Turn on the counter at each CPU (we fear nothing..)


# 1.68 12-Oct-1998 pk

Take care of a MID not present when matching timer register sets.


# 1.67 09-Oct-1998 pk

Init a variable.


# 1.66 08-Oct-1998 pk

Adapt to changes to the cpus[] array.


# 1.65 22-Sep-1998 pk

Dup header.


# 1.64 16-Sep-1998 pk

Map the per-CPU counter registers into each cpu info area.


# 1.63 30-Aug-1998 pk

getpropA() => getprop()


# 1.62 21-Aug-1998 pk

Convert to [pv]addr_t & [pv]size_t.


Revision tags: eeh-paddr_t-base
# 1.61 30-Mar-1998 pk

Replace direct `sparc_bus_map()' calls with bus space map method.


# 1.60 29-Mar-1998 pk

obio_bus_probe() => bus_space_probe()


# 1.59 21-Mar-1998 pk

Account for changed bus attachment scheme.


# 1.58 12-Jan-1998 thorpej

Update for changes to config.


# 1.57 19-Dec-1997 pk

Establish the interrupt handlers on sun4 `oclocks'; pointed out
by Chuck Cranor.


# 1.56 03-Dec-1997 mjacob

handle case of no keyboard configured


# 1.55 19-Nov-1997 pk

Use intr_establish() to install the timer interrupt handlers.


Revision tags: netbsd-1-3-base marc-pcmcia-base
# 1.54 27-Sep-1997 pk

branches: 1.54.2;
Move the per-processor counter register into cpuinfo.


# 1.53 18-Sep-1997 pk

Add a function to stop sun4m counters and call it early during
auto-configuration.


Revision tags: thorpej-signal-base marc-pcmcia-bp
# 1.52 24-May-1997 pk

branches: 1.52.4;
Remove `bustype' argument from map[io]dev().


# 1.51 02-May-1997 pk

Switch to copy of file in /sys/dev/ic.


Revision tags: is-newarp-before-merge
# 1.50 10-Mar-1997 pk

Replace `cpumod' with `cpuinfo.cpu_type' equivalent.


Revision tags: is-newarp-base
# 1.49 10-Dec-1996 pk

branches: 1.49.6;
Comply with recent autoconfiguration changes. Diffs graciously
supplied by Chris Demetriou.


# 1.48 28-Oct-1996 abrown

Fix timer initialization so that we don't gain one extra microsecond per
second on Sun4m machines. Although this was in the noise of the unstable
Sun clock crystals before, the discrepancy amounted to about 100 ppm, and
thus made NTP perform poorly. NTP now works happily on my SS20...


# 1.47 13-Oct-1996 christos

backout previous kprintf change


# 1.46 11-Oct-1996 christos

printf -> kprintf, sprintf -> ksprintf


# 1.45 12-Jun-1996 pk

Remove unneeded header file.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.44 16-May-1996 abrown

Copyright police (s/Harvard University/Harvard College/).


# 1.43 13-May-1996 thorpej

Remove some comments in eeprom_uio() now that they're no longer relevant.
Add some whitespace to eeprom_take().


# 1.42 02-May-1996 pk

Various simplifications and corrections from Chuck Cranor (makes `oclock'
calibration work.. thanks!).


# 1.41 30-Apr-1996 thorpej

Fix apparent paste-o ... spurious "}"


# 1.40 29-Apr-1996 pk

Move delay() to locore, so we control code generation and can avoid
touching memory locations whose caching disposition can perturb timings.


# 1.39 23-Apr-1996 pk

Turn delay() into a calibrated loop. It's more accurate and compiles into
a `leaf' routine, avoiding unexpected large delays by overflowing the
register windows.


# 1.38 22-Apr-1996 christos

remove include of <sys/cpu.h>


# 1.37 04-Apr-1996 pk

Probe clock registers on sun4s to make sure we attach the correct device
(sun4m has clocks at obio too).


# 1.36 31-Mar-1996 pk

Include support for sun4m timers and counters: hardware register layout
has changed. There is a counter for each CPU (currently, just one supported).


# 1.35 17-Mar-1996 thorpej

New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.


# 1.34 17-Mar-1996 mrg

comment: LEAPYEAR is not entirely correct


# 1.33 14-Mar-1996 christos

Add prototypes and fix bugs:
- softclock was called with extra argument.
- missing %x formats in printf's
- kgdb_copy called with only two arguments.

Fix conf.c so that it used the _conf.h files from other places instead of
rolling its own.


# 1.32 18-Feb-1996 pk

Correct timetochip() prototype.
Cleanup microtime() a bit.


# 1.31 17-Feb-1996 pk

delay() takes an unsigned int; get the code to match.


# 1.30 17-Feb-1996 pk

Bring prototypes into scope.
Fix a few bogus `return's.


# 1.29 16-Feb-1996 pk

Account for the fact that `clockreg' might not be page-aligned.
Misc prototype goo.


# 1.28 13-Feb-1996 pk

Make sure we assign a value to variables we use.
Don't express size of NVRAM in terms of machine page size.


# 1.27 06-Feb-1996 thorpej

Protect clearing the Intersil chip's interrupt with splhigh(). If this
gets interrupted (by the higher priority zs hardware, for example),
the clock can come to a dead stop!


# 1.26 11-Dec-1995 pk

Adapt to changed mapiodev() interface.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.25 08-Oct-1995 pk

eeprom_match: account for differing physical addresses (per Jason Thorpe).


# 1.24 03-Sep-1995 pk

Update from Jason: eeprom device needs 8-bit access.


# 1.23 29-Aug-1995 pk

Export `eeprom_va' (from Jason Thorpe).


# 1.22 29-May-1995 pk

eeprom device for Sun4 from Jason Thorpe.


# 1.21 10-Apr-1995 mycroft

kernel_pmap --> pmap_kernel()


# 1.20 16-Feb-1995 pk

Working "config generic" support; from Theo.


# 1.19 01-Feb-1995 pk

Integrate changes from Chuck Cranor for the Sun 4/100.
Support for multiple register banks on SBUS devices (based on patches
from Francis Dupont).
Highlights:
romaux defines an array of register spaces.
pay attention to `vactype'.
quirks handling 4/100 idiosyncracies.


# 1.18 05-Jan-1995 pk

void microtime().


# 1.17 17-Dec-1994 deraadt

microtime botch


# 1.16 17-Dec-1994 deraadt

... but we still want the sun4c/sun4m case to work


# 1.15 16-Dec-1994 deraadt

oclock support for the 4/100 and 4/200


# 1.14 23-Nov-1994 deraadt

XXmatch change (and a few __P() as well)


# 1.13 20-Nov-1994 deraadt

copyright/Id cleanup


# 1.12 15-Oct-1994 deraadt

mapiodev takes a bustype argument now


# 1.11 02-Oct-1994 deraadt

sun4/300 support works


# 1.10 18-Sep-1994 deraadt

generalize bus support for match/attach


# 1.9 20-Aug-1994 deraadt

deal with sun4 idprom


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.8 01-Jul-1994 deraadt

add support for the Mostek MK48T08 (found in sun4m)


# 1.7 05-May-1994 deraadt

revert to dual clocks


# 1.6 01-Feb-1994 deraadt

sparc runs in current today


Revision tags: sparc-magnum
# 1.5 09-Dec-1993 pk

Really suppress clock warning message, even if celebrating.


# 1.4 08-Dec-1993 pk

Suppress `preposterous time' message if the time base equals zero, as
is the case with NFS mounted root filesystems.


# 1.3 28-Nov-1993 deraadt

fixed: hostid was incorrectly read from register


# 1.2 11-Oct-1993 deraadt

pmap.c, machdep.c, autoconf.c, cpu.c, intr.c, : net-posted patches from Torek
autoconf.c: mountroot kludges that need fixing later
clock.c: two volatile decls
conf.c: stategy()'s return void, *tty[] not tty[], __P()'d xxdump() calls,
add mem_no, *constty[] not &cons.
genassym.c, machdep.c: sys/vmmeter.h needed
intr.c: make kernel writable temporarily in intr_fasttrap()
intr.c: do not use NETISR_ARP
locore.s: icode maps at 0 so do not relocate, don't define __main here.
machdep.c: don't have sysctl.h (yet), use vm_page_free_count for freemem,
setregs() sets pc/npc/stack, note: signal delivery code needs
fixing, add various other NetBSD function stubs.
pmap.c: do kernel_pmap/kernel_pmap_store the old way, delete
vm_page_startup_initialized weirdness.
swapgeneric.c: everything about mountroot needs fixing, help.
trap.c: sunsys -> sun_sysent, etc.
vm_machdep.c: don't use cpu_coredump() for now.


# 1.1 02-Oct-1993 deraadt

Chris Torek's sparc port. Missing lots of things.