#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/circ_buf.h>
#include <linux/mutex.h>
#include <linux/ioport.h>
#define IFORCE_MAX_LENGTH …
#define IFORCE_EFFECTS_MAX …
#define FF_MOD1_IS_USED …
#define FF_MOD2_IS_USED …
#define FF_CORE_IS_USED …
#define FF_CORE_IS_PLAYED …
#define FF_CORE_SHOULD_PLAY …
#define FF_CORE_UPDATE …
#define FF_MODCORE_CNT …
struct iforce_core_effect { … };
#define FF_CMD_EFFECT …
#define FF_CMD_ENVELOPE …
#define FF_CMD_MAGNITUDE …
#define FF_CMD_PERIOD …
#define FF_CMD_CONDITION …
#define FF_CMD_AUTOCENTER …
#define FF_CMD_PLAY …
#define FF_CMD_ENABLE …
#define FF_CMD_GAIN …
#define FF_CMD_QUERY …
#define XMIT_SIZE …
#define XMIT_INC(var, n) …
#define IFORCE_XMIT_RUNNING …
#define IFORCE_XMIT_AGAIN …
struct iforce_device { … };
struct iforce;
struct iforce_xport_ops { … };
struct iforce { … };
#define HI(a) …
#define LO(a) …
#define HIFIX80(a) …
#define TIME_SCALE(a) …
static inline int iforce_get_id_packet(struct iforce *iforce, u8 id,
u8 *response_data, size_t *response_len)
{ … }
static inline void iforce_clear_xmit_and_wake(struct iforce *iforce)
{ … }
int iforce_init_device(struct device *parent, u16 bustype,
struct iforce *iforce);
int iforce_control_playback(struct iforce*, u16 id, unsigned int);
void iforce_process_packet(struct iforce *iforce,
u8 packet_id, u8 *data, size_t len);
int iforce_send_packet(struct iforce *iforce, u16 cmd, unsigned char* data);
void iforce_dump_packet(struct iforce *iforce, char *msg, u16 cmd, unsigned char *data);
int iforce_upload_periodic(struct iforce *, struct ff_effect *, struct ff_effect *);
int iforce_upload_constant(struct iforce *, struct ff_effect *, struct ff_effect *);
int iforce_upload_condition(struct iforce *, struct ff_effect *, struct ff_effect *);
extern struct serio_driver iforce_serio_drv;
extern struct usb_driver iforce_usb_driver;