Home | History | Annotate | Download | only in mvme68k
History log of /src/sys/arch/mvme68k/mvme68k/clock.c
RevisionDateAuthorComments
 1.27  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.26  12-Jan-2008  tsutsui branches: 1.26.44; 1.26.54;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.25  07-Jan-2008  tsutsui Add timecounter(9) support for mvme68k.

Based on a patch from Garrett D'Amore and several tweaks by me.
Compile tested only, but reviewed by joerg@ and
no objection from scw@ on port-mvme68k.
 1.24  09-Sep-2006  gdamore branches: 1.24.30; 1.24.36; 1.24.44;
Convet to MI todr. Ok steve@.
 1.23  11-Dec-2005  christos branches: 1.23.8; 1.23.20;
merge ktrace-lwp.
 1.22  04-Jun-2005  he branches: 1.22.2;
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.21  03-Jun-2005  scw Fix -Wcast-qual fallout.
 1.20  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.19  18-Jul-2003  thorpej Rename clock_rtc_config() to todr_attach().
 1.18  15-Jul-2003  lukem __KERNEL_RCSID()
 1.17  12-Feb-2002  scw branches: 1.17.16;
Separate out devices common to many Motorola mvme boards (68k, 88k and ppc)
in preparation for future mvmeppc and mvme88k ports.

This needs a bit if tidying up to make it trully shareable, which will
happen as the new mvme ports are added.
 1.16  12-Aug-2001  scw branches: 1.16.6;
Split the nvram/rtc functionality away from the clock interrupt code
and attach it as `timekeeper0 at mainbus0'.
Use the MI mk48txx nvram/rtc access functions instead of home-grown
versions.

It should now be very easy to add a character device for the benefit
of userland access to NVRAM.
 1.15  31-May-2001  scw branches: 1.15.2;
Deprecate intrcnt/intrnames in favour of the generic evcnt(9) interface.
 1.14  14-Apr-2001  scw Implement a real microtime() by reading the timer counter register.
On mvme147 this gives 6.25uS resolution, and 1uS on all other boards.
 1.13  04-Jun-2000  cgd branches: 1.13.4;
Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
 1.12  18-Mar-2000  scw branches: 1.12.2;
Merge 'scw_mvme68k_bus_space' branch with the trunk.
These changes add support for:

o The MI VMEbus framework on both MVME147 and MVME167.
o Enhancements to the existing MD bus_space(9) implementation.
o Most of the bus_dma(9) API.
 1.11  19-Jan-2000  msaitoh branches: 1.11.2;
check whether tv_usec >= 1000000
 1.10  22-Aug-1998  scw branches: 1.10.14;
vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
 1.9  12-Jan-1998  thorpej Update for changes to config.
 1.8  05-Nov-1996  thorpej Trim the name of the clock interrupt event counters. They were one byte
too long, causing a panic in DIAGNOSTIC kernels.

From Steve Woodford <steve@mctavish.demon.co.uk>, on the port-mvme68k
mailing list.
 1.7  13-Oct-1996  christos backout previous kprintf change
 1.6  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.5  12-Sep-1996  thorpej Grab the stat clock stuff from the SPARC port, and glue it to the
second timer on the PCC.
 1.4  08-May-1996  thorpej RCS id police.
 1.3  26-Apr-1996  chuck "jumbo patch":
- new autoconfig scheme+vme (autoconf.c,clock.c,clockreg.h,
clockvar.h,vm_machdep.c)
- new interrupt scheme (isr.c,isr.h,locore.s,machdep.c,vectors.s)
- switch to MI zs driver (conf.c)
- new disklabel code, from Dale Rahn <drahn@pacific.urbana.mcd.mot.com>
(disksubr.c, compatable with theo and dale's openbsd version)
- new delay() based on sun3 port, using dynamic configuration from
the sparc port (intergrated by me), calibration moved to startup
by jason. (locore.s,machdep.c)
- clean up: nuke eio space (genassym.c,locore.s,pmap.c,pmap_bootstrap.c),
nuke STACKCHECK (locore.s), prevent maxuser overflow (pmap.c),

Contributed by Jason R. Thorpe <thorpej@og.org> (thanks!)
 1.2  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.1  25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1  25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.10.14.2  21-Apr-2001  bouyer Sync with HEAD
 1.10.14.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.11.2.2  18-Mar-2000  scw MI VMEbus glue more or less complete.
Kernels now compiled with -Wall, etc. (lots of fixes needed for this)
All MD drivers now bus_spaced/bus_dma'd. The two SCSI drivers should
be replaced with bus_spaced MI versions at some point.
 1.11.2.1  11-Mar-2000  scw Checkpoint of development of the following features of mvme68k:

. Preliminary support for the MI VMEbus framework.
. Full bus_space* and "mostly-there" bus_dma* support.

At this time, MI VMEbus drivers may well work 'as is' on an MVME147 board.
Work to get the MVME167 to this stage is ongoing.

Testers will be required at some point as I have no VMEbus boards which
have existing MI drivers! (Although I am able to test things in a limited
fashion using a noddy driver and a VMEbus RAM card).

TODO:

. Expunge all remaining use of IIOV() and freinds.
. Flag the 'boot device' using bus_space_tag_t and offset.
. Add a 24bit address constraint to bus_dmamem_alloc() (for le/ie)
. VMEChip2 support on MVME167/MVME177
. Support the mvme68k boards in VMEbus slave mode.
. Anything else I can thing of, besides having another beer. ;-)
 1.12.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.13.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.15.2.2  16-Mar-2002  jdolecek Catch up with -current.
 1.15.2.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.16.6.2  28-Feb-2002  nathanw Catch up to -current.
 1.16.6.1  12-Aug-2001  nathanw file clock.c was added on branch nathanw_sa on 2002-02-28 04:10:53 +0000
 1.17.16.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.16.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.16.2  18-Sep-2004  skrll Sync with HEAD.
 1.17.16.1  03-Aug-2004  skrll Sync with HEAD
 1.22.2.2  21-Jan-2008  yamt sync with head
 1.22.2.1  30-Dec-2006  yamt sync with head.
 1.23.20.1  18-Nov-2006  ad Sync with head.
 1.23.8.1  14-Sep-2006  yamt sync with head.
 1.24.44.2  19-Jan-2008  bouyer Sync with HEAD
 1.24.44.1  08-Jan-2008  bouyer Sync with HEAD
 1.24.36.1  18-Feb-2008  mjf Sync with HEAD.
 1.24.30.2  23-Mar-2008  matt sync with HEAD
 1.24.30.1  09-Jan-2008  matt sync with HEAD
 1.26.54.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.26.44.1  30-Oct-2012  yamt sync with head

RSS XML Feed