Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
timer.h File Reference

Go to the source code of this file.

Macros

#define TIMER_FREQ   (CONFIG_CPU_CLOCK*10000) /* Timer input freq. */
 
#define calc_param(cnt, div, rate, limit)
 

Functions

void h8300_timer_tick (void)
 
void h8300_timer_setup (void)
 
void h8300_gettod (unsigned int *year, unsigned int *mon, unsigned int *day, unsigned int *hour, unsigned int *min, unsigned int *sec)
 

Macro Definition Documentation

#define calc_param (   cnt,
  div,
  rate,
  limit 
)
Value:
do { \
cnt = TIMER_FREQ / HZ; \
for (div = 0; div < ARRAY_SIZE(divide_rate); div++) { \
if (rate[div] == 0) \
continue; \
if ((cnt / rate[div]) > limit) \
break; \
} \
if (div == ARRAY_SIZE(divide_rate)) \
panic("Timer counter overflow"); \
cnt /= divide_rate[div]; \
} while(0)

Definition at line 11 of file timer.h.

#define TIMER_FREQ   (CONFIG_CPU_CLOCK*10000) /* Timer input freq. */

Definition at line 9 of file timer.h.

Function Documentation

void h8300_gettod ( unsigned int year,
unsigned int mon,
unsigned int day,
unsigned int hour,
unsigned int min,
unsigned int sec 
)
void h8300_timer_setup ( void  )

Definition at line 67 of file itu.c.

void h8300_timer_tick ( void  )

Definition at line 35 of file time.c.