#ifndef _PSMOUSE_H
#define _PSMOUSE_H
#define PSMOUSE_OOB_NONE …
#define PSMOUSE_OOB_EXTRA_BTNS …
#define PSMOUSE_CMD_SETSCALE11 …
#define PSMOUSE_CMD_SETSCALE21 …
#define PSMOUSE_CMD_SETRES …
#define PSMOUSE_CMD_GETINFO …
#define PSMOUSE_CMD_SETSTREAM …
#define PSMOUSE_CMD_SETPOLL …
#define PSMOUSE_CMD_POLL …
#define PSMOUSE_CMD_RESET_WRAP …
#define PSMOUSE_CMD_GETID …
#define PSMOUSE_CMD_SETRATE …
#define PSMOUSE_CMD_ENABLE …
#define PSMOUSE_CMD_DISABLE …
#define PSMOUSE_CMD_RESET_DIS …
#define PSMOUSE_CMD_RESET_BAT …
#define PSMOUSE_RET_BAT …
#define PSMOUSE_RET_ID …
#define PSMOUSE_RET_ACK …
#define PSMOUSE_RET_NAK …
enum psmouse_state { … };
psmouse_ret_t;
enum psmouse_scale { … };
enum psmouse_type { … };
struct psmouse;
struct psmouse_protocol { … };
struct psmouse { … };
struct psmouse *psmouse_from_serio(struct serio *serio);
void psmouse_queue_work(struct psmouse *psmouse, struct delayed_work *work,
unsigned long delay);
int psmouse_reset(struct psmouse *psmouse);
void psmouse_set_state(struct psmouse *psmouse, enum psmouse_state new_state);
void psmouse_set_resolution(struct psmouse *psmouse, unsigned int resolution);
psmouse_ret_t psmouse_process_byte(struct psmouse *psmouse);
int psmouse_activate(struct psmouse *psmouse);
int psmouse_deactivate(struct psmouse *psmouse);
bool psmouse_matches_pnp_id(struct psmouse *psmouse, const char * const ids[]);
void psmouse_report_standard_buttons(struct input_dev *, u8 buttons);
void psmouse_report_standard_motion(struct input_dev *, u8 *packet);
void psmouse_report_standard_packet(struct input_dev *, u8 *packet);
struct psmouse_attribute { … };
#define to_psmouse_attr(a) …
ssize_t psmouse_attr_show_helper(struct device *dev, struct device_attribute *attr,
char *buf);
ssize_t psmouse_attr_set_helper(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count);
#define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) …
#define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) …
#define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) …
#define PSMOUSE_DEFINE_RO_ATTR(_name, _mode, _data, _show) …
#define PSMOUSE_DEFINE_WO_ATTR(_name, _mode, _data, _set) …
#ifndef psmouse_fmt
#define psmouse_fmt …
#endif
#define psmouse_dbg(psmouse, format, ...) …
#define psmouse_info(psmouse, format, ...) …
#define psmouse_warn(psmouse, format, ...) …
#define psmouse_err(psmouse, format, ...) …
#define psmouse_notice(psmouse, format, ...) …
#define psmouse_printk(level, psmouse, format, ...) …
#ifdef CONFIG_MOUSE_PS2_SMBUS
int psmouse_smbus_module_init(void);
void psmouse_smbus_module_exit(void);
struct i2c_board_info;
int psmouse_smbus_init(struct psmouse *psmouse,
const struct i2c_board_info *board,
const void *pdata, size_t pdata_size,
bool need_deactivate,
bool leave_breadcrumbs);
void psmouse_smbus_cleanup(struct psmouse *psmouse);
#else
static inline int psmouse_smbus_module_init(void)
{
return 0;
}
static inline void psmouse_smbus_module_exit(void)
{
}
static inline void psmouse_smbus_cleanup(struct psmouse *psmouse)
{
}
#endif
#endif