Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cs5535-mfgpt.c File Reference
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/cs5535.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  cs5535_mfgpt_timer
 
struct  cs5535_mfgpt_chip
 

Macros

#define DRV_NAME   "cs5535-mfgpt"
 

Functions

 module_param_named (mfgptfix, mfgpt_reset_timers, int, 0644)
 
 MODULE_PARM_DESC (mfgptfix,"Reset the MFGPT timers during init; ""required by some broken BIOSes (ie, TinyBIOS < 0.99).")
 
int cs5535_mfgpt_toggle_event (struct cs5535_mfgpt_timer *timer, int cmp, int event, int enable)
 
 EXPORT_SYMBOL_GPL (cs5535_mfgpt_toggle_event)
 
int cs5535_mfgpt_set_irq (struct cs5535_mfgpt_timer *timer, int cmp, int *irq, int enable)
 
 EXPORT_SYMBOL_GPL (cs5535_mfgpt_set_irq)
 
struct cs5535_mfgpt_timercs5535_mfgpt_alloc_timer (int timer_nr, int domain)
 
 EXPORT_SYMBOL_GPL (cs5535_mfgpt_alloc_timer)
 
void cs5535_mfgpt_free_timer (struct cs5535_mfgpt_timer *timer)
 
 EXPORT_SYMBOL_GPL (cs5535_mfgpt_free_timer)
 
uint16_t cs5535_mfgpt_read (struct cs5535_mfgpt_timer *timer, uint16_t reg)
 
 EXPORT_SYMBOL_GPL (cs5535_mfgpt_read)
 
void cs5535_mfgpt_write (struct cs5535_mfgpt_timer *timer, uint16_t reg, uint16_t value)
 
 EXPORT_SYMBOL_GPL (cs5535_mfgpt_write)
 
 module_init (cs5535_mfgpt_init)
 
 MODULE_AUTHOR ("Andres Salomon <[email protected]>")
 
 MODULE_DESCRIPTION ("CS5535/CS5536 MFGPT timer driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define DRV_NAME   "cs5535-mfgpt"

Definition at line 23 of file cs5535-mfgpt.c.

Function Documentation

struct cs5535_mfgpt_timer* cs5535_mfgpt_alloc_timer ( int  timer_nr,
int  domain 
)
read

Definition at line 145 of file cs5535-mfgpt.c.

void cs5535_mfgpt_free_timer ( struct cs5535_mfgpt_timer timer)

Definition at line 211 of file cs5535-mfgpt.c.

uint16_t cs5535_mfgpt_read ( struct cs5535_mfgpt_timer timer,
uint16_t  reg 
)

Definition at line 228 of file cs5535-mfgpt.c.

int cs5535_mfgpt_set_irq ( struct cs5535_mfgpt_timer timer,
int  cmp,
int irq,
int  enable 
)

Definition at line 96 of file cs5535-mfgpt.c.

int cs5535_mfgpt_toggle_event ( struct cs5535_mfgpt_timer timer,
int  cmp,
int  event,
int  enable 
)

Definition at line 44 of file cs5535-mfgpt.c.

void cs5535_mfgpt_write ( struct cs5535_mfgpt_timer timer,
uint16_t  reg,
uint16_t  value 
)

Definition at line 234 of file cs5535-mfgpt.c.

EXPORT_SYMBOL_GPL ( cs5535_mfgpt_toggle_event  )
EXPORT_SYMBOL_GPL ( cs5535_mfgpt_set_irq  )
EXPORT_SYMBOL_GPL ( cs5535_mfgpt_alloc_timer  )
EXPORT_SYMBOL_GPL ( cs5535_mfgpt_free_timer  )
EXPORT_SYMBOL_GPL ( cs5535_mfgpt_read  )
EXPORT_SYMBOL_GPL ( cs5535_mfgpt_write  )
MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Andres Salomon <[email protected]>"  )
MODULE_DESCRIPTION ( "CS5535/CS5536 MFGPT timer driver )
module_init ( cs5535_mfgpt_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( mfgptfix  ,
mfgpt_reset_timers  ,
int  ,
0644   
)
MODULE_PARM_DESC ( mfgptfix  ,
"Reset the MFGPT timers during init; ""required by some broken BIOSes (ie, TinyBIOS < 0.99)."   
)