linux/drivers/media/rc/rc-loopback.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Loopback driver for rc-core,
 *
 * Copyright (c) 2010 David Härdeman <[email protected]>
 *
 * This driver receives TX data and passes it back as RX data,
 * which is useful for (scripted) debugging of rc-core without
 * having to use actual hardware.
 */

#include <linux/device.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <media/rc-core.h>

#define DRIVER_NAME
#define RXMASK_NARROWBAND
#define RXMASK_WIDEBAND

struct loopback_dev {};

static struct loopback_dev loopdev;

static int loop_set_tx_mask(struct rc_dev *dev, u32 mask)
{}

static int loop_set_tx_carrier(struct rc_dev *dev, u32 carrier)
{}

static int loop_set_tx_duty_cycle(struct rc_dev *dev, u32 duty_cycle)
{}

static int loop_set_rx_carrier_range(struct rc_dev *dev, u32 min, u32 max)
{}

static int loop_tx_ir(struct rc_dev *dev, unsigned *txbuf, unsigned count)
{}

static void loop_set_idle(struct rc_dev *dev, bool enable)
{}

static int loop_set_wideband_receiver(struct rc_dev *dev, int enable)
{}

static int loop_set_carrier_report(struct rc_dev *dev, int enable)
{}

static int loop_set_wakeup_filter(struct rc_dev *dev,
				  struct rc_scancode_filter *sc)
{}

static int __init loop_init(void)
{}

static void __exit loop_exit(void)
{}

module_init();
module_exit(loop_exit);

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