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/types.h>
#include <linux/kd.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/kernel_stat.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/traps.h>
#include <asm/sun3x.h>
#include <asm/sun3ints.h>
#include <asm/rtc.h>
#include "time.h"

Go to the source code of this file.

Macros

#define M_CONTROL   0xf8
 
#define M_SEC   0xf9
 
#define M_MIN   0xfa
 
#define M_HOUR   0xfb
 
#define M_DAY   0xfc
 
#define M_DATE   0xfd
 
#define M_MONTH   0xfe
 
#define M_YEAR   0xff
 
#define C_WRITE   0x80
 
#define C_READ   0x40
 
#define C_SIGN   0x20
 
#define C_CALIB   0x1f
 

Functions

int sun3x_hwclk (int set, struct rtc_time *t)
 
unsigned long sun3x_gettimeoffset (void)
 
void __init sun3x_sched_init (irq_handler_t vector)
 

Macro Definition Documentation

#define C_CALIB   0x1f

Definition at line 37 of file time.c.

#define C_READ   0x40

Definition at line 35 of file time.c.

#define C_SIGN   0x20

Definition at line 36 of file time.c.

#define C_WRITE   0x80

Definition at line 34 of file time.c.

#define M_CONTROL   0xf8

Definition at line 25 of file time.c.

#define M_DATE   0xfd

Definition at line 30 of file time.c.

#define M_DAY   0xfc

Definition at line 29 of file time.c.

#define M_HOUR   0xfb

Definition at line 28 of file time.c.

#define M_MIN   0xfa

Definition at line 27 of file time.c.

#define M_MONTH   0xfe

Definition at line 31 of file time.c.

#define M_SEC   0xf9

Definition at line 26 of file time.c.

#define M_YEAR   0xff

Definition at line 32 of file time.c.

Function Documentation

unsigned long sun3x_gettimeoffset ( void  )

Definition at line 74 of file time.c.

int sun3x_hwclk ( int  set,
struct rtc_time t 
)

Definition at line 39 of file time.c.

void __init sun3x_sched_init ( irq_handler_t  vector)

Definition at line 92 of file time.c.