1/* $NetBSD: ixp425_timer.c,v 1.11 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/ixp425_timer.c 186352 2008-12-20 03:26:09Z sam $"); |
38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> 42#include <sys/module.h> 43#include <sys/time.h> 44#include <sys/bus.h> 45#include <sys/resource.h> --- 35 unchanged lines hidden (view full) --- 81#define GET_TS_VALUE(sc) (*(volatile u_int32_t *) \ 82 (IXP425_TIMER_VBASE + IXP425_OST_TS)) 83 84static struct timecounter ixp425_timer_timecounter = { 85 ixp425_timer_get_timecount, /* get_timecount */ 86 NULL, /* no poll_pps */ 87 ~0u, /* counter_mask */ 88 COUNTS_PER_SEC, /* frequency */ |
89 "IXP4XX Timer", /* name */ |
90 1000, /* quality */ 91}; 92 93static int 94ixpclk_probe(device_t dev) 95{ |
96 device_set_desc(dev, "IXP4XX Timer"); |
97 return (0); 98} 99 100static int 101ixpclk_attach(device_t dev) 102{ 103 struct ixpclk_softc *sc = device_get_softc(dev); 104 struct ixp425_softc *sa = device_get_softc(device_get_parent(dev)); --- 164 unchanged lines hidden --- |