linux/drivers/hid/hid-roccat-koneplus.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Roccat Kone[+] driver for Linux
 *
 * Copyright (c) 2010 Stefan Achatz <[email protected]>
 */

/*
 */

/*
 * Roccat Kone[+] is an updated/improved version of the Kone with more memory
 * and functionality and without the non-standard behaviours the Kone had.
 * KoneXTD has same capabilities but updated sensor.
 */

#include <linux/device.h>
#include <linux/input.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/hid-roccat.h>
#include "hid-ids.h"
#include "hid-roccat-common.h"
#include "hid-roccat-koneplus.h"

static uint profile_numbers[5] =;

static void koneplus_profile_activated(struct koneplus_device *koneplus,
		uint new_profile)
{}

static int koneplus_send_control(struct usb_device *usb_dev, uint value,
		enum koneplus_control_requests request)
{}


/* retval is 0-4 on success, < 0 on error */
static int koneplus_get_actual_profile(struct usb_device *usb_dev)
{}

static int koneplus_set_actual_profile(struct usb_device *usb_dev,
		int new_profile)
{}

static ssize_t koneplus_sysfs_read(struct file *fp, struct kobject *kobj,
		char *buf, loff_t off, size_t count,
		size_t real_size, uint command)
{}

static ssize_t koneplus_sysfs_write(struct file *fp, struct kobject *kobj,
		void const *buf, loff_t off, size_t count,
		size_t real_size, uint command)
{}

#define KONEPLUS_SYSFS_W(thingy, THINGY)

#define KONEPLUS_SYSFS_R(thingy, THINGY)

#define KONEPLUS_SYSFS_RW(thingy, THINGY)

#define KONEPLUS_BIN_ATTRIBUTE_RW(thingy, THINGY)

#define KONEPLUS_BIN_ATTRIBUTE_R(thingy, THINGY)

#define KONEPLUS_BIN_ATTRIBUTE_W(thingy, THINGY)
KONEPLUS_BIN_ATTRIBUTE_W();
KONEPLUS_BIN_ATTRIBUTE_W();
KONEPLUS_BIN_ATTRIBUTE_W();
KONEPLUS_BIN_ATTRIBUTE_R();
KONEPLUS_BIN_ATTRIBUTE_RW();
KONEPLUS_BIN_ATTRIBUTE_RW();
KONEPLUS_BIN_ATTRIBUTE_RW();
KONEPLUS_BIN_ATTRIBUTE_RW();
KONEPLUS_BIN_ATTRIBUTE_RW();

static ssize_t koneplus_sysfs_read_profilex_settings(struct file *fp,
		struct kobject *kobj, struct bin_attribute *attr, char *buf,
		loff_t off, size_t count)
{}

static ssize_t koneplus_sysfs_read_profilex_buttons(struct file *fp,
		struct kobject *kobj, struct bin_attribute *attr, char *buf,
		loff_t off, size_t count)
{}

#define PROFILE_ATTR(number)
PROFILE_ATTR(1);
PROFILE_ATTR(2);
PROFILE_ATTR(3);
PROFILE_ATTR(4);
PROFILE_ATTR(5);

static ssize_t koneplus_sysfs_show_actual_profile(struct device *dev,
		struct device_attribute *attr, char *buf)
{}

static ssize_t koneplus_sysfs_set_actual_profile(struct device *dev,
		struct device_attribute *attr, char const *buf, size_t size)
{}
static DEVICE_ATTR(actual_profile, 0660,
		   koneplus_sysfs_show_actual_profile,
		   koneplus_sysfs_set_actual_profile);
static DEVICE_ATTR(startup_profile, 0660,
		   koneplus_sysfs_show_actual_profile,
		   koneplus_sysfs_set_actual_profile);

static ssize_t koneplus_sysfs_show_firmware_version(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR(firmware_version, 0440,
		   koneplus_sysfs_show_firmware_version, NULL);

static struct attribute *koneplus_attrs[] =;

static struct bin_attribute *koneplus_bin_attributes[] =;

static const struct attribute_group koneplus_group =;

static const struct attribute_group *koneplus_groups[] =;

static const struct class koneplus_class =;

static int koneplus_init_koneplus_device_struct(struct usb_device *usb_dev,
		struct koneplus_device *koneplus)
{}

static int koneplus_init_specials(struct hid_device *hdev)
{}

static void koneplus_remove_specials(struct hid_device *hdev)
{}

static int koneplus_probe(struct hid_device *hdev,
		const struct hid_device_id *id)
{}

static void koneplus_remove(struct hid_device *hdev)
{}

static void koneplus_keep_values_up_to_date(struct koneplus_device *koneplus,
		u8 const *data)
{}

static void koneplus_report_to_chrdev(struct koneplus_device const *koneplus,
		u8 const *data)
{}

static int koneplus_raw_event(struct hid_device *hdev,
		struct hid_report *report, u8 *data, int size)
{}

static const struct hid_device_id koneplus_devices[] =;

MODULE_DEVICE_TABLE(hid, koneplus_devices);

static struct hid_driver koneplus_driver =;

static int __init koneplus_init(void)
{}

static void __exit koneplus_exit(void)
{}

module_init();
module_exit(koneplus_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();