#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/string.h>
#include "cpci_hotplug.h"
#define DRIVER_VERSION …
#define DRIVER_AUTHOR …
#define DRIVER_DESC …
#if !defined(MODULE)
#define MY_NAME …
#else
#define MY_NAME …
#endif
#define dbg(format, arg...) …
#define err(format, arg...) …
#define info(format, arg...) …
#define warn(format, arg...) …
static bool debug;
static char *bridge;
static u8 bridge_busnr;
static u8 bridge_slot;
static struct pci_bus *bus;
static u8 first_slot;
static u8 last_slot;
static u16 port;
static unsigned int enum_bit;
static u8 enum_mask;
static struct cpci_hp_controller_ops generic_hpc_ops;
static struct cpci_hp_controller generic_hpc;
static int __init validate_parameters(void)
{ … }
static int query_enum(void)
{ … }
static int __init cpcihp_generic_init(void)
{ … }
static void __exit cpcihp_generic_exit(void)
{ … }
module_init(…) …;
module_exit(cpcihp_generic_exit);
MODULE_AUTHOR(…);
MODULE_DESCRIPTION(…);
MODULE_LICENSE(…) …;
module_param(debug, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(…) …;
module_param(bridge, charp, 0);
MODULE_PARM_DESC(…) …;
module_param(first_slot, byte, 0);
MODULE_PARM_DESC(…) …;
module_param(last_slot, byte, 0);
MODULE_PARM_DESC(…) …;
module_param_hw(port, ushort, ioport, 0);
MODULE_PARM_DESC(…) …;
module_param(enum_bit, uint, 0);
MODULE_PARM_DESC(…) …;