#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/string.h>
#include "cpci_hotplug.h"
Go to the source code of this file.
|
#define | DRIVER_VERSION "0.1" |
|
#define | DRIVER_AUTHOR "Scott Murray <[email protected]>" |
|
#define | DRIVER_DESC "Generic port I/O CompactPCI Hot Plug Driver" |
|
#define | MY_NAME "cpcihp_generic" |
|
#define | dbg(format, arg...) |
|
#define | err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg) |
|
#define | info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg) |
|
#define | warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) |
|
|
| module_init (cpcihp_generic_init) |
|
| module_exit (cpcihp_generic_exit) |
|
| MODULE_AUTHOR (DRIVER_AUTHOR) |
|
| MODULE_DESCRIPTION (DRIVER_DESC) |
|
| MODULE_LICENSE ("GPL") |
|
| module_param (debug, bool, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (debug,"Debugging mode enabled or not") |
|
| module_param (bridge, charp, 0) |
|
| MODULE_PARM_DESC (bridge,"Hotswap bus bridge device, <bus>:<slot> (bus and slot are in hexadecimal)") |
|
| module_param (first_slot, byte, 0) |
|
| MODULE_PARM_DESC (first_slot,"Hotswap bus first slot number") |
|
| module_param (last_slot, byte, 0) |
|
| MODULE_PARM_DESC (last_slot,"Hotswap bus last slot number") |
|
| module_param (port, ushort, 0) |
|
| MODULE_PARM_DESC (port,"#ENUM signal I/O port") |
|
| module_param (enum_bit, uint, 0) |
|
| MODULE_PARM_DESC (enum_bit,"#ENUM signal bit (0-7)") |
|
#define dbg |
( |
|
format, |
|
|
|
arg... |
|
) |
| |
#define DRIVER_DESC "Generic port I/O CompactPCI Hot Plug Driver" |
#define DRIVER_VERSION "0.1" |
#define MY_NAME "cpcihp_generic" |
module_exit |
( |
cpcihp_generic_exit |
| ) |
|
module_init |
( |
cpcihp_generic_init |
| ) |
|
module_param |
( |
bridge |
, |
|
|
charp |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
last_slot |
, |
|
|
byte |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
enum_bit |
, |
|
|
uint |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
port |
, |
|
|
"#ENUM signal I/O port" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
enum_bit |
, |
|
|
"#ENUM signal bit (0-7)" |
|
|
) |
| |