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

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

/*
 */

/*
 * Roccat Isku is a gamer keyboard with macro keys that can be configured in
 * 5 profiles.
 */

#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-isku.h"

static void isku_profile_activated(struct isku_device *isku, uint new_profile)
{}

static int isku_receive(struct usb_device *usb_dev, uint command,
		void *buf, uint size)
{}

static int isku_get_actual_profile(struct usb_device *usb_dev)
{}

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

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

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

static struct attribute *isku_attrs[] =;

static ssize_t isku_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 isku_sysfs_write(struct file *fp, struct kobject *kobj,
		void const *buf, loff_t off, size_t count,
		size_t real_size, uint command)
{}

#define ISKU_SYSFS_W(thingy, THINGY)

#define ISKU_SYSFS_R(thingy, THINGY)

#define ISKU_SYSFS_RW(thingy, THINGY)

#define ISKU_BIN_ATTR_RW(thingy, THINGY)

#define ISKU_BIN_ATTR_R(thingy, THINGY)

#define ISKU_BIN_ATTR_W(thingy, THINGY)

ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_RW();
ISKU_BIN_ATTR_W();
ISKU_BIN_ATTR_W();
ISKU_BIN_ATTR_W();
ISKU_BIN_ATTR_W();
ISKU_BIN_ATTR_R();

static struct bin_attribute *isku_bin_attributes[] =;

static const struct attribute_group isku_group =;

static const struct attribute_group *isku_groups[] =;

static const struct class isku_class =;

static int isku_init_isku_device_struct(struct usb_device *usb_dev,
		struct isku_device *isku)
{}

static int isku_init_specials(struct hid_device *hdev)
{}

static void isku_remove_specials(struct hid_device *hdev)
{}

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

static void isku_remove(struct hid_device *hdev)
{}

static void isku_keep_values_up_to_date(struct isku_device *isku,
		u8 const *data)
{}

static void isku_report_to_chrdev(struct isku_device const *isku,
		u8 const *data)
{}

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

static const struct hid_device_id isku_devices[] =;

MODULE_DEVICE_TABLE(hid, isku_devices);

static struct hid_driver isku_driver =;

static int __init isku_init(void)
{}

static void __exit isku_exit(void)
{}

module_init();
module_exit(isku_exit);

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