Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ff-memless.c File Reference
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/jiffies.h>
#include <linux/fixp-arith.h>

Go to the source code of this file.

Data Structures

struct  ml_effect_state
 
struct  ml_device
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define FF_MEMLESS_EFFECTS   16
 
#define FF_ENVELOPE_INTERVAL   50
 
#define FF_EFFECT_STARTED   0
 
#define FF_EFFECT_PLAYING   1
 
#define FF_EFFECT_ABORTING   2
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Anssi Hannula <[email protected]>")
 
 MODULE_DESCRIPTION ("Force feedback support for memoryless devices")
 
int input_ff_create_memless (struct input_dev *dev, void *data, int(*play_effect)(struct input_dev *, void *, struct ff_effect *))
 
 EXPORT_SYMBOL_GPL (input_ff_create_memless)
 

Macro Definition Documentation

#define FF_EFFECT_ABORTING   2

Definition at line 48 of file ff-memless.c.

#define FF_EFFECT_PLAYING   1

Definition at line 47 of file ff-memless.c.

#define FF_EFFECT_STARTED   0

Definition at line 46 of file ff-memless.c.

#define FF_ENVELOPE_INTERVAL   50

Definition at line 44 of file ff-memless.c.

#define FF_MEMLESS_EFFECTS   16

Definition at line 41 of file ff-memless.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file ff-memless.c.

Function Documentation

EXPORT_SYMBOL_GPL ( input_ff_create_memless  )
int input_ff_create_memless ( struct input_dev *  dev,
void data,
int(*)(struct input_dev *, void *, struct ff_effect *)  play_effect 
)

input_ff_create_memless() - create memoryless force-feedback device : input device supporting force-feedback : driver-specific data to be passed into : driver-specific method for playing FF effect

Definition at line 501 of file ff-memless.c.

MODULE_AUTHOR ( "Anssi Hannula <[email protected]>"  )
MODULE_DESCRIPTION ( "Force feedback support for memoryless devices )
MODULE_LICENSE ( "GPL"  )