1*df7f595eScegger /* $NetBSD: clock.c,v 1.4 2009/03/18 10:22:34 cegger Exp $ */
2feb0773eSgmcgarry
3feb0773eSgmcgarry /* Copyright (c) 1999 The NetBSD Foundation, Inc.
4feb0773eSgmcgarry * All rights reserved.
5feb0773eSgmcgarry *
6feb0773eSgmcgarry * This code is derived from software contributed to The NetBSD Foundation
7feb0773eSgmcgarry * by Gregory McGarry.
8feb0773eSgmcgarry *
9feb0773eSgmcgarry * Redistribution and use in source and binary forms, with or without
10feb0773eSgmcgarry * modification, are permitted provided that the following conditions
11feb0773eSgmcgarry * are met:
12feb0773eSgmcgarry * 1. Redistributions of source code must retain the above copyright
13feb0773eSgmcgarry * notice, this list of conditions and the following disclaimer.
14feb0773eSgmcgarry * 2. Redistributions in binary form must reproduce the above copyright
15feb0773eSgmcgarry * notice, this list of conditions and the following disclaimer in the
16feb0773eSgmcgarry * documentation and/or other materials provided with the distribution.
17feb0773eSgmcgarry *
18feb0773eSgmcgarry * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19feb0773eSgmcgarry * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20feb0773eSgmcgarry * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21feb0773eSgmcgarry * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22feb0773eSgmcgarry * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23feb0773eSgmcgarry * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24feb0773eSgmcgarry * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25feb0773eSgmcgarry * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26feb0773eSgmcgarry * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27feb0773eSgmcgarry * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28feb0773eSgmcgarry * POSSIBILITY OF SUCH DAMAGE.
29feb0773eSgmcgarry */
30feb0773eSgmcgarry
31feb0773eSgmcgarry #include <sys/types.h>
32feb0773eSgmcgarry
33feb0773eSgmcgarry #include <machine/dec_prom.h>
34feb0773eSgmcgarry #include <stand/common/common.h>
3569cf32a7Stsutsui #include <lib/libsa/net.h>
36feb0773eSgmcgarry
3769cf32a7Stsutsui satime_t
getsecs(void)38*df7f595eScegger getsecs(void)
39feb0773eSgmcgarry {
40feb0773eSgmcgarry long ticks;
41feb0773eSgmcgarry ticks = (*callv->_time)((long *)0);
42feb0773eSgmcgarry return (ticks);
43feb0773eSgmcgarry }
44