OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [arch-nexuspci/] [time.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * linux/include/asm-arm/arch-nexuspci/time.h
3
 *
4
 * Copyright (c) 1997 Phil Blundell.
5
 *
6
 * Nexus PCI card has no real-time clock.
7
 *
8
 */
9
 
10
extern __inline__ unsigned long gettimeoffset (void)
11
{
12
        return 0;
13
}
14
 
15
extern __inline__ int reset_timer (void)
16
{
17
        return 0;
18
}
19
 
20
extern __inline__ unsigned long setup_timer (void)
21
{
22
        reset_timer ();
23
        /*
24
         * Default the date to 1 Jan 1970 0:0:0
25
         * You will have to run a time daemon to set the
26
         * clock correctly at bootup
27
         */
28
        return mktime(1970, 1, 1, 0, 0, 0);
29
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.