#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/list.h>
#include <linux/io.h>
#include <linux/leds.h>
#include "arcdevice.h"
#include "com20020.h"
static int node;
static char device[9];
static int timeout = …;
static int backplane;
static int clockp;
static int clockm;
module_param(node, int, 0);
module_param_string(…);
module_param(timeout, int, 0);
module_param(backplane, int, 0);
module_param(clockp, int, 0);
module_param(clockm, int, 0);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static void led_tx_set(struct led_classdev *led_cdev,
enum led_brightness value)
{ … }
static void led_recon_set(struct led_classdev *led_cdev,
enum led_brightness value)
{ … }
static ssize_t backplane_mode_show(struct device *dev,
struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(backplane_mode);
static struct attribute *com20020_state_attrs[] = …;
static const struct attribute_group com20020_state_group = …;
static void com20020pci_remove(struct pci_dev *pdev);
static int com20020pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{ … }
static void com20020pci_remove(struct pci_dev *pdev)
{ … }
static struct com20020_pci_card_info card_info_10mbit = …;
static struct com20020_pci_card_info card_info_5mbit = …;
static struct com20020_pci_card_info card_info_sohard = …;
static struct com20020_pci_card_info card_info_eae_arc1 = …;
static struct com20020_pci_card_info card_info_eae_ma1 = …;
static struct com20020_pci_card_info card_info_eae_fb2 = …;
static const struct pci_device_id com20020pci_id_table[] = …;
MODULE_DEVICE_TABLE(pci, com20020pci_id_table);
static struct pci_driver com20020pci_driver = …;
static int __init com20020pci_init(void)
{ … }
static void __exit com20020pci_cleanup(void)
{ … }
module_init(…) …
module_exit(…)