linux/drivers/hid/hid-razer.c

// SPDX-License-Identifier: GPL-2.0+
/*
 *  HID driver for gaming keys on Razer Blackwidow gaming keyboards
 *  Macro Key Keycodes: M1 = 191, M2 = 192, M3 = 193, M4 = 194, M5 = 195
 *
 *  Copyright (c) 2021 Jelle van der Waa <[email protected]>
 */

#include <linux/device.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/usb.h>
#include <linux/wait.h>

#include "hid-ids.h"

#define map_key_clear(c)

#define RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE

static bool macro_key_remapping =;
module_param(macro_key_remapping, bool, 0644);
MODULE_PARM_DESC();


static unsigned char blackwidow_init[RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE] =;

static int razer_input_mapping(struct hid_device *hdev,
		struct hid_input *hi, struct hid_field *field,
		struct hid_usage *usage, unsigned long **bit, int *max)
{}

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

static const struct hid_device_id razer_devices[] =;
MODULE_DEVICE_TABLE(hid, razer_devices);

static struct hid_driver razer_driver =;
module_hid_driver();

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