Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pps_gen_parport.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/hrtimer.h>
#include <linux/parport.h>

Go to the source code of this file.

Data Structures

struct  pps_generator_pp
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRVDESC   "parallel port PPS signal generator"
 
#define SIGNAL   0
 
#define NO_SIGNAL   PARPORT_CONTROL_STROBE
 
#define SEND_DELAY_MAX   100000
 
#define SAFETY_INTERVAL   3000 /* set the hrtimer earlier for safety (ns) */
 
#define PORT_NTESTS_SHIFT   5
 

Functions

 MODULE_PARM_DESC (delay,"Delay between setting and dropping the signal (ns)")
 
 module_param_named (delay, send_delay, uint, 0)
 
 module_init (pps_gen_parport_init)
 
 module_exit (pps_gen_parport_exit)
 
 MODULE_AUTHOR ("Alexander Gordeev <lasaine@lvk.cs.msu.su>")
 
 MODULE_DESCRIPTION (DRVDESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRVDESC   "parallel port PPS signal generator"

Definition at line 37 of file pps_gen_parport.c.

#define NO_SIGNAL   PARPORT_CONTROL_STROBE

Definition at line 40 of file pps_gen_parport.c.

#define PORT_NTESTS_SHIFT   5

Definition at line 156 of file pps_gen_parport.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 28 of file pps_gen_parport.c.

#define SAFETY_INTERVAL   3000 /* set the hrtimer earlier for safety (ns) */

Definition at line 52 of file pps_gen_parport.c.

#define SEND_DELAY_MAX   100000

Definition at line 44 of file pps_gen_parport.c.

#define SIGNAL   0

Definition at line 39 of file pps_gen_parport.c.

Function Documentation

MODULE_AUTHOR ( "Alexander Gordeev <lasaine@lvk.cs.msu.su>"  )
MODULE_DESCRIPTION ( DRVDESC  )
module_exit ( pps_gen_parport_exit  )
module_init ( pps_gen_parport_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( delay  ,
send_delay  ,
uint  ,
 
)
MODULE_PARM_DESC ( delay  ,
"Delay between setting and dropping the signal (ns)"   
)