linux/drivers/platform/x86/amilo-rfkill.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Support for rfkill on some Fujitsu-Siemens Amilo laptops.
 * Copyright 2011 Ben Hutchings.
 *
 * Based in part on the fsam7440 driver, which is:
 * Copyright 2005 Alejandro Vidal Mata & Javier Vidal Mata.
 * and on the fsaa1655g driver, which is:
 * Copyright 2006 Martin Večeřa.
 */

#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/i8042.h>
#include <linux/io.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/rfkill.h>

/*
 * These values were obtained from disassembling and debugging the
 * PM.exe program installed in the Fujitsu-Siemens AMILO A1655G
 */
#define A1655_WIFI_COMMAND
#define A1655_WIFI_ON
#define A1655_WIFI_OFF

static int amilo_a1655_rfkill_set_block(void *data, bool blocked)
{}

static const struct rfkill_ops amilo_a1655_rfkill_ops =;

/*
 * These values were obtained from disassembling the PM.exe program
 * installed in the Fujitsu-Siemens AMILO M 7440
 */
#define M7440_PORT1
#define M7440_PORT2
#define M7440_RADIO_ON1
#define M7440_RADIO_ON2
#define M7440_RADIO_OFF1
#define M7440_RADIO_OFF2

static int amilo_m7440_rfkill_set_block(void *data, bool blocked)
{}

static const struct rfkill_ops amilo_m7440_rfkill_ops =;

static const struct dmi_system_id amilo_rfkill_id_table[] =;

static struct platform_device *amilo_rfkill_pdev;
static struct rfkill *amilo_rfkill_dev;

static int amilo_rfkill_probe(struct platform_device *device)
{}

static void amilo_rfkill_remove(struct platform_device *device)
{}

static struct platform_driver amilo_rfkill_driver =;

static int __init amilo_rfkill_init(void)
{}

static void __exit amilo_rfkill_exit(void)
{}

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_DEVICE_TABLE(dmi, amilo_rfkill_id_table);

module_init();
module_exit(amilo_rfkill_exit);