Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
input.h File Reference
#include <linux/time.h>
#include <linux/list.h>
#include <uapi/linux/input.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/timer.h>
#include <linux/mod_devicetable.h>

Go to the source code of this file.

Macros

#define ABS_MT_FIRST   ABS_MT_TOUCH_MAJOR
 
#define ABS_MT_LAST   ABS_MT_TOOL_Y
 
#define to_input_dev(d)   container_of(d, struct input_dev, dev)
 
#define INPUT_DEVICE_ID_MATCH_DEVICE   (INPUT_DEVICE_ID_MATCH_BUS | INPUT_DEVICE_ID_MATCH_VENDOR | INPUT_DEVICE_ID_MATCH_PRODUCT)
 
#define INPUT_DEVICE_ID_MATCH_DEVICE_AND_VERSION   (INPUT_DEVICE_ID_MATCH_DEVICE | INPUT_DEVICE_ID_MATCH_VERSION)
 
#define INPUT_GENERATE_ABS_ACCESSORS(_suffix, _item)
 

Macro Definition Documentation

#define ABS_MT_FIRST   ABS_MT_TOUCH_MAJOR

Definition at line 15 of file input.h.

#define ABS_MT_LAST   ABS_MT_TOOL_Y

Definition at line 16 of file input.h.

#define INPUT_DEVICE_ID_MATCH_DEVICE_AND_VERSION   (INPUT_DEVICE_ID_MATCH_DEVICE | INPUT_DEVICE_ID_MATCH_VERSION)
#define INPUT_GENERATE_ABS_ACCESSORS (   _suffix,
  _item 
)
Value:
static inline int input_abs_get_##_suffix(struct input_dev *dev, \
unsigned int axis) \
{ \
return dev->absinfo ? dev->absinfo[axis]._item : 0; \
} \
\
static inline void input_abs_set_##_suffix(struct input_dev *dev, \
unsigned int axis, int val) \
{ \
input_alloc_absinfo(dev); \
if (dev->absinfo) \
dev->absinfo[axis]._item = val; \
}
#define to_input_dev (   d)    container_of(d, struct input_dev, dev)