#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <linux/io.h>
#include "arcdevice.h"
#include "com9026.h"
#undef FAST_PROBE
static int com90xx_found(int ioaddr, int airq, u_long shmem, void __iomem *);
static void com90xx_command(struct net_device *dev, int command);
static int com90xx_status(struct net_device *dev);
static void com90xx_setmask(struct net_device *dev, int mask);
static int com90xx_reset(struct net_device *dev, int really_reset);
static void com90xx_copy_to_card(struct net_device *dev, int bufnum, int offset,
void *buf, int count);
static void com90xx_copy_from_card(struct net_device *dev, int bufnum,
int offset, void *buf, int count);
static struct net_device *cards[16];
static int numcards;
#define ARCNET_TOTAL_SIZE …
#define BUFFER_SIZE …
#define MIRROR_SIZE …
static int com90xx_skip_probe __initdata = …;
static int io;
static int irq;
static int shmem;
static char device[9];
module_param_hw(io, int, ioport, 0);
module_param_hw(irq, int, irq, 0);
module_param(shmem, int, 0);
module_param_string(…);
static void __init com90xx_probe(void)
{ … }
static int __init check_mirror(unsigned long addr, size_t size)
{ … }
static int __init com90xx_found(int ioaddr, int airq, u_long shmem,
void __iomem *p)
{ … }
static void com90xx_command(struct net_device *dev, int cmd)
{ … }
static int com90xx_status(struct net_device *dev)
{ … }
static void com90xx_setmask(struct net_device *dev, int mask)
{ … }
static int com90xx_reset(struct net_device *dev, int really_reset)
{ … }
static void com90xx_copy_to_card(struct net_device *dev, int bufnum,
int offset, void *buf, int count)
{ … }
static void com90xx_copy_from_card(struct net_device *dev, int bufnum,
int offset, void *buf, int count)
{ … }
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static int __init com90xx_init(void)
{ … }
static void __exit com90xx_exit(void)
{ … }
module_init(…) …;
module_exit(com90xx_exit);
#ifndef MODULE
static int __init com90xx_setup(char *s)
{ … }
__setup(…);
#endif