#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/kobject.h>
#include <linux/most.h>
#define MEP_HDR_LEN …
#define MDP_HDR_LEN …
#define MAMAC_DATA_LEN …
#define PMHL …
#define PMS_TELID_UNSEGM_MAMAC …
#define PMS_FIFONO_MDP …
#define PMS_FIFONO_MEP …
#define PMS_MSGTYPE_DATA …
#define PMS_DEF_PRIO …
#define MEP_DEF_RETRY …
#define PMS_FIFONO_MASK …
#define PMS_FIFONO_SHIFT …
#define PMS_RETRY_SHIFT …
#define PMS_TELID_MASK …
#define PMS_TELID_SHIFT …
#define HB(value) …
#define LB(value) …
#define EXTRACT_BIT_SET(bitset_name, value) …
#define PMS_IS_MEP(buf, len) …
static inline bool pms_is_mamac(char *buf, u32 len)
{ … }
struct net_dev_channel { … };
struct net_dev_context { … };
static LIST_HEAD(net_devices);
static DEFINE_MUTEX(probe_disc_mt);
static DEFINE_SPINLOCK(list_lock);
static struct most_component comp;
static int skb_to_mamac(const struct sk_buff *skb, struct mbo *mbo)
{ … }
static int skb_to_mep(const struct sk_buff *skb, struct mbo *mbo)
{ … }
static int most_nd_set_mac_address(struct net_device *dev, void *p)
{ … }
static void on_netinfo(struct most_interface *iface,
unsigned char link_stat, unsigned char *mac_addr);
static int most_nd_open(struct net_device *dev)
{ … }
static int most_nd_stop(struct net_device *dev)
{ … }
static netdev_tx_t most_nd_start_xmit(struct sk_buff *skb,
struct net_device *dev)
{ … }
static const struct net_device_ops most_nd_ops = …;
static void most_nd_setup(struct net_device *dev)
{ … }
static struct net_dev_context *get_net_dev(struct most_interface *iface)
{ … }
static struct net_dev_context *get_net_dev_hold(struct most_interface *iface)
{ … }
static int comp_probe_channel(struct most_interface *iface, int channel_idx,
struct most_channel_config *ccfg, char *name,
char *args)
{ … }
static int comp_disconnect_channel(struct most_interface *iface,
int channel_idx)
{ … }
static int comp_resume_tx_channel(struct most_interface *iface,
int channel_idx)
{ … }
static int comp_rx_data(struct mbo *mbo)
{ … }
static struct most_component comp = …;
static int __init most_net_init(void)
{ … }
static void __exit most_net_exit(void)
{ … }
static void on_netinfo(struct most_interface *iface,
unsigned char link_stat, unsigned char *mac_addr)
{ … }
module_init(…) …;
module_exit(most_net_exit);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;