Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/cortex Set dv_private, use a9tmr_private.



details:   https://anonhg.NetBSD.org/src/rev/15fa9f63b2a6
branches:  trunk
changeset: 781547:15fa9f63b2a6
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 14 03:52:19 2012 +0000

description:
Set dv_private, use a9tmr_private.

diffstat:

 sys/arch/arm/cortex/a9tmr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 26e5c4f5c310 -r 15fa9f63b2a6 sys/arch/arm/cortex/a9tmr.c
--- a/sys/arch/arm/cortex/a9tmr.c       Fri Sep 14 03:51:01 2012 +0000
+++ b/sys/arch/arm/cortex/a9tmr.c       Fri Sep 14 03:52:19 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: a9tmr.c,v 1.1 2012/09/01 00:03:14 matt Exp $   */
+/*     $NetBSD: a9tmr.c,v 1.2 2012/09/14 03:52:19 matt Exp $   */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: a9tmr.c,v 1.1 2012/09/01 00:03:14 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: a9tmr.c,v 1.2 2012/09/14 03:52:19 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -129,6 +129,7 @@
        aprint_naive("\n");
        aprint_normal(": A9 Global 64-bit Timer (%s)\n", freqbuf);
 
+       self->dv_private = sc;
        sc->sc_dev = self;
        sc->sc_memt = mpcaa->mpcaa_memt;
        sc->sc_memh = mpcaa->mpcaa_memh;
@@ -320,5 +321,5 @@
 {
        struct a9tmr_softc * const sc = tc->tc_priv;
 
-       return bus_space_read_4(sc->sc_memt, sc->sc_global_memh, TMR_GBL_CTR_L);
+       return (u_int) (a9tmr_gettime(sc));
 }



Home | Main Index | Thread Index | Old Index