Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mmtimer.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/ioctl.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/mmtimer.h>
#include <linux/miscdevice.h>
#include <linux/posix-timers.h>
#include <linux/interrupt.h>
#include <linux/time.h>
#include <linux/math64.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <asm/sn/addrs.h>
#include <asm/sn/intr.h>
#include <asm/sn/shub_mmr.h>
#include <asm/sn/nodepda.h>
#include <asm/sn/shubio.h>

Go to the source code of this file.

Data Structures

struct  mmtimer
 
struct  mmtimer_node
 

Macros

#define MMTIMER_NAME   "mmtimer"
 
#define MMTIMER_DESC   "SGI Altix RTC Timer"
 
#define MMTIMER_VERSION   "2.1"
 
#define RTC_BITS   55 /* 55 bits for this implementation */
 
#define RTC_COUNTER_ADDR   ((long *)LOCAL_MMR_ADDR(SH_RTC))
 
#define rtc_time()   (*RTC_COUNTER_ADDR)
 
#define COMPARATOR   1 /* The comparator to use */
 
#define TIMER_OFF   0xbadcabLL /* Timer is not setup */
 
#define TIMER_SET   0 /* Comparator is set for this timer */
 
#define MMTIMER_INTERVAL_RETRY_INCREMENT_DEFAULT   40
 

Functions

 MODULE_AUTHOR ("Jesse Barnes <[email protected]>")
 
 MODULE_DESCRIPTION ("SGI Altix RTC Timer")
 
 MODULE_LICENSE ("GPL")
 
 module_param (mmtimer_interval_retry_increment, uint, 0644)
 
 MODULE_PARM_DESC (mmtimer_interval_retry_increment,"RTC ticks to add to expiration on interval retry (default 40)")
 
 module_init (mmtimer_init)
 

Variables

unsigned long sn_rtc_cycles_per_second
 

Macro Definition Documentation

#define COMPARATOR   1 /* The comparator to use */

Definition at line 228 of file mmtimer.c.

#define MMTIMER_DESC   "SGI Altix RTC Timer"

Definition at line 51 of file mmtimer.c.

#define MMTIMER_INTERVAL_RETRY_INCREMENT_DEFAULT   40

Definition at line 233 of file mmtimer.c.

#define MMTIMER_NAME   "mmtimer"

Definition at line 50 of file mmtimer.c.

#define MMTIMER_VERSION   "2.1"

Definition at line 52 of file mmtimer.c.

#define RTC_BITS   55 /* 55 bits for this implementation */

Definition at line 54 of file mmtimer.c.

#define RTC_COUNTER_ADDR   ((long *)LOCAL_MMR_ADDR(SH_RTC))

Definition at line 60 of file mmtimer.c.

#define rtc_time ( )    (*RTC_COUNTER_ADDR)

Definition at line 62 of file mmtimer.c.

#define TIMER_OFF   0xbadcabLL /* Timer is not setup */

Definition at line 230 of file mmtimer.c.

#define TIMER_SET   0 /* Comparator is set for this timer */

Definition at line 231 of file mmtimer.c.

Function Documentation

MODULE_AUTHOR ( "Jesse Barnes <[email protected]>"  )
MODULE_DESCRIPTION ( "SGI Altix RTC Timer )
module_init ( mmtimer_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mmtimer_interval_retry_increment  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( mmtimer_interval_retry_increment  ,
"RTC ticks to add to expiration on interval retry (default 40)"   
)

Variable Documentation

unsigned long sn_rtc_cycles_per_second

Definition at line 68 of file setup.c.