#include <linux/device.h>
#include <linux/hid.h>
#include <linux/input.h>
#include <linux/spinlock.h>
#include "hid-wiimote.h"
static const __u16 wiimod_keys_map[] = …;
static void wiimod_keys_in_keys(struct wiimote_data *wdata, const __u8 *keys)
{ … }
static int wiimod_keys_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_keys = …;
static void wiimod_rumble_worker(struct work_struct *work)
{ … }
static int wiimod_rumble_play(struct input_dev *dev, void *data,
struct ff_effect *eff)
{ … }
static int wiimod_rumble_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_rumble_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_rumble = …;
static enum power_supply_property wiimod_battery_props[] = …;
static int wiimod_battery_get_property(struct power_supply *psy,
enum power_supply_property psp,
union power_supply_propval *val)
{ … }
static int wiimod_battery_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_battery_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_battery = …;
static enum led_brightness wiimod_led_get(struct led_classdev *led_dev)
{ … }
static void wiimod_led_set(struct led_classdev *led_dev,
enum led_brightness value)
{ … }
static int wiimod_led_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_led_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_leds[4] = …;
static void wiimod_accel_in_accel(struct wiimote_data *wdata,
const __u8 *accel)
{ … }
static int wiimod_accel_open(struct input_dev *dev)
{ … }
static void wiimod_accel_close(struct input_dev *dev)
{ … }
static int wiimod_accel_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_accel_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_accel = …;
static void wiimod_ir_in_ir(struct wiimote_data *wdata, const __u8 *ir,
bool packed, unsigned int id)
{ … }
static int wiimod_ir_change(struct wiimote_data *wdata, __u16 mode)
{ … }
static int wiimod_ir_open(struct input_dev *dev)
{ … }
static void wiimod_ir_close(struct input_dev *dev)
{ … }
static int wiimod_ir_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_ir_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_ir = …;
enum wiimod_nunchuk_keys { … };
static const __u16 wiimod_nunchuk_map[] = …;
static void wiimod_nunchuk_in_ext(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_nunchuk_open(struct input_dev *dev)
{ … }
static void wiimod_nunchuk_close(struct input_dev *dev)
{ … }
static int wiimod_nunchuk_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_nunchuk_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_nunchuk = …;
enum wiimod_classic_keys { … };
static const __u16 wiimod_classic_map[] = …;
static void wiimod_classic_in_ext(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_classic_open(struct input_dev *dev)
{ … }
static void wiimod_classic_close(struct input_dev *dev)
{ … }
static int wiimod_classic_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_classic_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_classic = …;
static void wiimod_bboard_in_keys(struct wiimote_data *wdata, const __u8 *keys)
{ … }
static void wiimod_bboard_in_ext(struct wiimote_data *wdata,
const __u8 *ext)
{ … }
static int wiimod_bboard_open(struct input_dev *dev)
{ … }
static void wiimod_bboard_close(struct input_dev *dev)
{ … }
static ssize_t wiimod_bboard_calib_show(struct device *dev,
struct device_attribute *attr,
char *out)
{ … }
static DEVICE_ATTR(bboard_calib, S_IRUGO, wiimod_bboard_calib_show, NULL);
static int wiimod_bboard_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_bboard_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_bboard = …;
enum wiimod_pro_keys { … };
static const __u16 wiimod_pro_map[] = …;
static void wiimod_pro_in_ext(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_pro_open(struct input_dev *dev)
{ … }
static void wiimod_pro_close(struct input_dev *dev)
{ … }
static int wiimod_pro_play(struct input_dev *dev, void *data,
struct ff_effect *eff)
{ … }
static ssize_t wiimod_pro_calib_show(struct device *dev,
struct device_attribute *attr,
char *out)
{ … }
static ssize_t wiimod_pro_calib_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR(pro_calib, S_IRUGO|S_IWUSR|S_IWGRP, wiimod_pro_calib_show,
wiimod_pro_calib_store);
static int wiimod_pro_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_pro_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_pro = …;
static inline void wiimod_drums_report_pressure(struct wiimote_data *wdata,
__u8 none, __u8 which,
__u8 pressure, __u8 onoff,
__u8 *store, __u16 code,
__u8 which_code)
{ … }
static void wiimod_drums_in_ext(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_drums_open(struct input_dev *dev)
{ … }
static void wiimod_drums_close(struct input_dev *dev)
{ … }
static int wiimod_drums_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_drums_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_drums = …;
enum wiimod_guitar_keys { … };
static const __u16 wiimod_guitar_map[] = …;
static void wiimod_guitar_in_ext(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_guitar_open(struct input_dev *dev)
{ … }
static void wiimod_guitar_close(struct input_dev *dev)
{ … }
static int wiimod_guitar_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_guitar_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_guitar = …;
enum wiimod_turntable_keys { … };
static const __u16 wiimod_turntable_map[] = …;
static void wiimod_turntable_in_ext(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_turntable_open(struct input_dev *dev)
{ … }
static void wiimod_turntable_close(struct input_dev *dev)
{ … }
static int wiimod_turntable_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_turntable_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_turntable = …;
static int wiimod_builtin_mp_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_builtin_mp_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_builtin_mp = …;
static int wiimod_no_mp_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_no_mp_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static const struct wiimod_ops wiimod_no_mp = …;
static void wiimod_mp_in_mp(struct wiimote_data *wdata, const __u8 *ext)
{ … }
static int wiimod_mp_open(struct input_dev *dev)
{ … }
static void wiimod_mp_close(struct input_dev *dev)
{ … }
static int wiimod_mp_probe(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
static void wiimod_mp_remove(const struct wiimod_ops *ops,
struct wiimote_data *wdata)
{ … }
const struct wiimod_ops wiimod_mp = …;
static const struct wiimod_ops wiimod_dummy;
const struct wiimod_ops *wiimod_table[WIIMOD_NUM] = …;
const struct wiimod_ops *wiimod_ext_table[WIIMOTE_EXT_NUM] = …;