XenevaOS
Loading...
Searching...
No Matches
Macros
input.h File Reference
#include <linux/types.h>
#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/device-id/input.h>
Include dependency graph for input.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

◆ ABS_MT_FIRST

#define ABS_MT_FIRST   ABS_MT_TOUCH_MAJOR

◆ ABS_MT_LAST

#define ABS_MT_LAST   ABS_MT_TOOL_Y

◆ INPUT_DEVICE_ID_MATCH_DEVICE

◆ INPUT_DEVICE_ID_MATCH_DEVICE_AND_VERSION

#define INPUT_DEVICE_ID_MATCH_DEVICE_AND_VERSION    (INPUT_DEVICE_ID_MATCH_DEVICE | INPUT_DEVICE_ID_MATCH_VERSION)

◆ INPUT_GENERATE_ABS_ACCESSORS

#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; \
}
const struct device * dev
Definition drm_print.h:519

◆ to_input_dev

#define to_input_dev (   d)    container_of(d, struct input_dev, dev)