Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
time.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/adb.h>
#include <linux/cuda.h>
#include <linux/pmu.h>
#include <linux/interrupt.h>
#include <linux/hardirq.h>
#include <linux/rtc.h>
#include <asm/sections.h>
#include <asm/prom.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/machdep.h>
#include <asm/time.h>
#include <asm/nvram.h>
#include <asm/smu.h>

Go to the source code of this file.

Macros

#define DBG(x...)
 
#define RTC_OFFSET   2082844800
 
#define VIA_TIMER_FREQ_6   4700000 /* time 1 frequency * 6 */
 
#define RS   0x200 /* skip between registers */
 
#define T1CL   (4*RS) /* Timer 1 ctr/latch (low 8 bits) */
 
#define T1CH   (5*RS) /* Timer 1 counter (high 8 bits) */
 
#define T1LL   (6*RS) /* Timer 1 latch (low 8 bits) */
 
#define T1LH   (7*RS) /* Timer 1 latch (high 8 bits) */
 
#define ACR   (11*RS) /* Auxiliary control register */
 
#define IFR   (13*RS) /* Interrupt flag register */
 
#define T1MODE   0xc0 /* Timer 1 mode */
 
#define T1MODE_CONT   0x40 /* continuous interrupts */
 
#define T1_INT   0x40 /* Timer 1 interrupt */
 
#define cuda_get_time()   0
 
#define cuda_get_rtc_time(tm)
 
#define cuda_set_rtc_time(tm)   0
 
#define pmu_get_time()   0
 
#define pmu_get_rtc_time(tm)
 
#define pmu_set_rtc_time(tm)   0
 
#define smu_get_time()   0
 
#define smu_get_rtc_time(tm, spin)
 
#define smu_set_rtc_time(tm, spin)   0
 

Functions

long __init pmac_time_init (void)
 
unsigned long pmac_get_boot_time (void)
 
void pmac_get_rtc_time (struct rtc_time *tm)
 
int pmac_set_rtc_time (struct rtc_time *tm)
 
void __init pmac_calibrate_decr (void)
 

Macro Definition Documentation

#define ACR   (11*RS) /* Auxiliary control register */

Definition at line 58 of file time.c.

#define cuda_get_rtc_time (   tm)

Definition at line 144 of file time.c.

#define cuda_get_time ( )    0

Definition at line 143 of file time.c.

#define cuda_set_rtc_time (   tm)    0

Definition at line 145 of file time.c.

#define DBG (   x...)

Definition at line 41 of file time.c.

#define IFR   (13*RS) /* Interrupt flag register */

Definition at line 59 of file time.c.

#define pmu_get_rtc_time (   tm)

Definition at line 185 of file time.c.

#define pmu_get_time ( )    0

Definition at line 184 of file time.c.

#define pmu_set_rtc_time (   tm)    0

Definition at line 186 of file time.c.

#define RS   0x200 /* skip between registers */

Definition at line 53 of file time.c.

#define RTC_OFFSET   2082844800

Definition at line 45 of file time.c.

#define smu_get_rtc_time (   tm,
  spin 
)

Definition at line 201 of file time.c.

#define smu_get_time ( )    0

Definition at line 200 of file time.c.

#define smu_set_rtc_time (   tm,
  spin 
)    0

Definition at line 202 of file time.c.

#define T1_INT   0x40 /* Timer 1 interrupt */

Definition at line 66 of file time.c.

#define T1CH   (5*RS) /* Timer 1 counter (high 8 bits) */

Definition at line 55 of file time.c.

#define T1CL   (4*RS) /* Timer 1 ctr/latch (low 8 bits) */

Definition at line 54 of file time.c.

#define T1LH   (7*RS) /* Timer 1 latch (high 8 bits) */

Definition at line 57 of file time.c.

#define T1LL   (6*RS) /* Timer 1 latch (low 8 bits) */

Definition at line 56 of file time.c.

#define T1MODE   0xc0 /* Timer 1 mode */

Definition at line 62 of file time.c.

#define T1MODE_CONT   0x40 /* continuous interrupts */

Definition at line 63 of file time.c.

#define VIA_TIMER_FREQ_6   4700000 /* time 1 frequency * 6 */

Definition at line 50 of file time.c.

Function Documentation

void __init pmac_calibrate_decr ( void  )

Definition at line 310 of file time.c.

unsigned long pmac_get_boot_time ( void  )

Definition at line 206 of file time.c.

void pmac_get_rtc_time ( struct rtc_time tm)

Definition at line 221 of file time.c.

int pmac_set_rtc_time ( struct rtc_time tm)

Definition at line 239 of file time.c.

long __init pmac_time_init ( void  )

Definition at line 68 of file time.c.