Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smp_twd.h File Reference
#include <linux/ioport.h>

Go to the source code of this file.

Data Structures

struct  twd_local_timer
 

Macros

#define TWD_TIMER_LOAD   0x00
 
#define TWD_TIMER_COUNTER   0x04
 
#define TWD_TIMER_CONTROL   0x08
 
#define TWD_TIMER_INTSTAT   0x0C
 
#define TWD_WDOG_LOAD   0x20
 
#define TWD_WDOG_COUNTER   0x24
 
#define TWD_WDOG_CONTROL   0x28
 
#define TWD_WDOG_INTSTAT   0x2C
 
#define TWD_WDOG_RESETSTAT   0x30
 
#define TWD_WDOG_DISABLE   0x34
 
#define TWD_TIMER_CONTROL_ENABLE   (1 << 0)
 
#define TWD_TIMER_CONTROL_ONESHOT   (0 << 1)
 
#define TWD_TIMER_CONTROL_PERIODIC   (1 << 1)
 
#define TWD_TIMER_CONTROL_IT_ENABLE   (1 << 2)
 
#define DEFINE_TWD_LOCAL_TIMER(name, base, irq)
 

Functions

int twd_local_timer_register (struct twd_local_timer *)
 

Macro Definition Documentation

#define DEFINE_TWD_LOCAL_TIMER (   name,
  base,
  irq 
)
Value:
.res = { \
DEFINE_RES_MEM(base, 0x10), \
DEFINE_RES_IRQ(irq), \
}, \
};

Definition at line 27 of file smp_twd.h.

#define TWD_TIMER_CONTROL   0x08

Definition at line 6 of file smp_twd.h.

#define TWD_TIMER_CONTROL_ENABLE   (1 << 0)

Definition at line 16 of file smp_twd.h.

#define TWD_TIMER_CONTROL_IT_ENABLE   (1 << 2)

Definition at line 19 of file smp_twd.h.

#define TWD_TIMER_CONTROL_ONESHOT   (0 << 1)

Definition at line 17 of file smp_twd.h.

#define TWD_TIMER_CONTROL_PERIODIC   (1 << 1)

Definition at line 18 of file smp_twd.h.

#define TWD_TIMER_COUNTER   0x04

Definition at line 5 of file smp_twd.h.

#define TWD_TIMER_INTSTAT   0x0C

Definition at line 7 of file smp_twd.h.

#define TWD_TIMER_LOAD   0x00

Definition at line 4 of file smp_twd.h.

#define TWD_WDOG_CONTROL   0x28

Definition at line 11 of file smp_twd.h.

#define TWD_WDOG_COUNTER   0x24

Definition at line 10 of file smp_twd.h.

#define TWD_WDOG_DISABLE   0x34

Definition at line 14 of file smp_twd.h.

#define TWD_WDOG_INTSTAT   0x2C

Definition at line 12 of file smp_twd.h.

#define TWD_WDOG_LOAD   0x20

Definition at line 9 of file smp_twd.h.

#define TWD_WDOG_RESETSTAT   0x30

Definition at line 13 of file smp_twd.h.

Function Documentation

int twd_local_timer_register ( struct twd_local_timer )

Definition at line 341 of file smp_twd.c.