#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/if_arp.h>
#include <net/arp.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include "arcdevice.h"
static __be16 type_trans(struct sk_buff *skb, struct net_device *dev);
static void rx(struct net_device *dev, int bufnum,
struct archdr *pkthdr, int length);
static int build_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, uint8_t daddr);
static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
int bufnum);
static struct ArcProto rfc1051_proto = …;
static int __init arcnet_rfc1051_init(void)
{ … }
static void __exit arcnet_rfc1051_exit(void)
{ … }
module_init(…) …;
module_exit(arcnet_rfc1051_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static __be16 type_trans(struct sk_buff *skb, struct net_device *dev)
{ … }
static void rx(struct net_device *dev, int bufnum,
struct archdr *pkthdr, int length)
{ … }
static int build_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, uint8_t daddr)
{ … }
static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
int bufnum)
{ … }