Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
time.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/io.h>
#include <linux/clockchips.h>
#include <asm/mach/time.h>
#include <asm/system_misc.h>
#include <mach/regs-irq.h>
#include "generic.h"

Go to the source code of this file.

Macros

#define KS8695_TMR_OFFSET   (0xF0000 + 0xE400)
 
#define KS8695_TMR_VA   (KS8695_IO_VA + KS8695_TMR_OFFSET)
 
#define KS8695_TMR_PA   (KS8695_IO_PA + KS8695_TMR_OFFSET)
 
#define KS8695_TMCON   (0x00) /* Timer Control Register */
 
#define KS8695_T1TC   (0x04) /* Timer 1 Timeout Count Register */
 
#define KS8695_T0TC   (0x08) /* Timer 0 Timeout Count Register */
 
#define KS8695_T1PD   (0x0C) /* Timer 1 Pulse Count Register */
 
#define KS8695_T0PD   (0x10) /* Timer 0 Pulse Count Register */
 
#define TMCON_T1EN   (1 << 1) /* Timer 1 Enable */
 
#define TMCON_T0EN   (1 << 0) /* Timer 0 Enable */
 
#define T0TC_WATCHDOG   (0xff) /* Enable watchdog mode */
 

Functions

void ks8695_restart (char mode, const char *cmd)
 

Variables

struct sys_timer ks8695_timer
 

Macro Definition Documentation

#define KS8695_T0PD   (0x10) /* Timer 0 Pulse Count Register */

Definition at line 48 of file time.c.

#define KS8695_T0TC   (0x08) /* Timer 0 Timeout Count Register */

Definition at line 46 of file time.c.

#define KS8695_T1PD   (0x0C) /* Timer 1 Pulse Count Register */

Definition at line 47 of file time.c.

#define KS8695_T1TC   (0x04) /* Timer 1 Timeout Count Register */

Definition at line 45 of file time.c.

#define KS8695_TMCON   (0x00) /* Timer Control Register */

Definition at line 44 of file time.c.

#define KS8695_TMR_OFFSET   (0xF0000 + 0xE400)

Definition at line 37 of file time.c.

#define KS8695_TMR_PA   (KS8695_IO_PA + KS8695_TMR_OFFSET)

Definition at line 39 of file time.c.

#define KS8695_TMR_VA   (KS8695_IO_VA + KS8695_TMR_OFFSET)

Definition at line 38 of file time.c.

#define T0TC_WATCHDOG   (0xff) /* Enable watchdog mode */

Definition at line 55 of file time.c.

#define TMCON_T0EN   (1 << 0) /* Timer 0 Enable */

Definition at line 52 of file time.c.

#define TMCON_T1EN   (1 << 1) /* Timer 1 Enable */

Definition at line 51 of file time.c.

Function Documentation

void ks8695_restart ( char  mode,
const char cmd 
)

Definition at line 161 of file time.c.

Variable Documentation

struct sys_timer ks8695_timer
Initial value:
= {
.init = ks8695_timer_init,
}

Definition at line 157 of file time.c.