linux/drivers/macintosh/mac_hid.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * drivers/macintosh/mac_hid.c
 *
 * HID support stuff for Macintosh computers.
 *
 * Copyright (C) 2000 Franz Sirl.
 *
 * This file will soon be removed in favor of an uinput userspace tool.
 */

#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/sysctl.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/slab.h>

MODULE_DESCRIPTION();
MODULE_LICENSE();

static int mouse_emulate_buttons;
static int mouse_button2_keycode =;	/* right control key */
static int mouse_button3_keycode =;	/* right option key */

static struct input_dev *mac_hid_emumouse_dev;

static DEFINE_MUTEX(mac_hid_emumouse_mutex);

static int mac_hid_create_emumouse(void)
{}

static void mac_hid_destroy_emumouse(void)
{}

static bool mac_hid_emumouse_filter(struct input_handle *handle,
				    unsigned int type, unsigned int code,
				    int value)
{}

static int mac_hid_emumouse_connect(struct input_handler *handler,
				    struct input_dev *dev,
				    const struct input_device_id *id)
{}

static void mac_hid_emumouse_disconnect(struct input_handle *handle)
{}

static const struct input_device_id mac_hid_emumouse_ids[] =;

MODULE_DEVICE_TABLE(input, mac_hid_emumouse_ids);

static struct input_handler mac_hid_emumouse_handler =;

static int mac_hid_start_emulation(void)
{}

static void mac_hid_stop_emulation(void)
{}

static int mac_hid_toggle_emumouse(const struct ctl_table *table, int write,
				   void *buffer, size_t *lenp, loff_t *ppos)
{}

/* file(s) in /proc/sys/dev/mac_hid */
static struct ctl_table mac_hid_files[] =;

static struct ctl_table_header *mac_hid_sysctl_header;

static int __init mac_hid_init(void)
{}
module_init();

static void __exit mac_hid_exit(void)
{}
module_exit(mac_hid_exit);