linux/drivers/net/ieee802154/fakelb.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Loopback IEEE 802.15.4 interface
 *
 * Copyright 2007-2012 Siemens AG
 *
 * Written by:
 * Sergey Lapin <[email protected]>
 * Dmitry Eremin-Solenikov <[email protected]>
 * Alexander Smirnov <[email protected]>
 */

#include <linux/module.h>
#include <linux/timer.h>
#include <linux/platform_device.h>
#include <linux/netdevice.h>
#include <linux/device.h>
#include <linux/spinlock.h>
#include <net/mac802154.h>
#include <net/cfg802154.h>

static int numlbs =;

static LIST_HEAD(fakelb_phys);
static DEFINE_MUTEX(fakelb_phys_lock);

static LIST_HEAD(fakelb_ifup_phys);
static DEFINE_RWLOCK(fakelb_ifup_phys_lock);

struct fakelb_phy {};

static int fakelb_hw_ed(struct ieee802154_hw *hw, u8 *level)
{}

static int fakelb_hw_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
{}

static int fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
{}

static int fakelb_hw_start(struct ieee802154_hw *hw)
{}

static void fakelb_hw_stop(struct ieee802154_hw *hw)
{}

static int
fakelb_set_promiscuous_mode(struct ieee802154_hw *hw, const bool on)
{}

static const struct ieee802154_ops fakelb_ops =;

/* Number of dummy devices to be set up by this module. */
module_param(numlbs, int, 0);
MODULE_PARM_DESC();

static int fakelb_add_one(struct device *dev)
{}

static void fakelb_del(struct fakelb_phy *phy)
{}

static int fakelb_probe(struct platform_device *pdev)
{}

static void fakelb_remove(struct platform_device *pdev)
{}

static struct platform_device *ieee802154fake_dev;

static struct platform_driver ieee802154fake_driver =;

static __init int fakelb_init_module(void)
{}

static __exit void fake_remove_module(void)
{}

module_init();
module_exit(fake_remove_module);
MODULE_DESCRIPTION();
MODULE_LICENSE();