Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpcihp_generic.c File Reference
#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.

Macros

#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)
 

Functions

 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)")
 

Macro Definition Documentation

#define dbg (   format,
  arg... 
)
Value:
do { \
if(debug) \
printk (KERN_DEBUG "%s: " format "\n", \
MY_NAME , ## arg); \
} while(0)

Definition at line 54 of file cpcihp_generic.c.

#define DRIVER_AUTHOR   "Scott Murray <[email protected]>"

Definition at line 45 of file cpcihp_generic.c.

#define DRIVER_DESC   "Generic port I/O CompactPCI Hot Plug Driver"

Definition at line 46 of file cpcihp_generic.c.

#define DRIVER_VERSION   "0.1"

Definition at line 44 of file cpcihp_generic.c.

#define err (   format,
  arg... 
)    printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)

Definition at line 60 of file cpcihp_generic.c.

#define info (   format,
  arg... 
)    printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)

Definition at line 61 of file cpcihp_generic.c.

#define MY_NAME   "cpcihp_generic"

Definition at line 49 of file cpcihp_generic.c.

#define warn (   format,
  arg... 
)    printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)

Definition at line 62 of file cpcihp_generic.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( cpcihp_generic_exit  )
module_init ( cpcihp_generic_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
bool  ,
S_IRUGO S_IWUSR 
)
module_param ( bridge  ,
charp  ,
 
)
module_param ( first_slot  ,
byte  ,
 
)
module_param ( last_slot  ,
byte  ,
 
)
module_param ( port  ,
ushort  ,
 
)
module_param ( enum_bit  ,
uint  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debugging mode enabled or not"   
)
MODULE_PARM_DESC ( bridge  ,
"Hotswap bus bridge  device,
< bus >:< slot >(bus and slot are in hexadecimal)"   
)
MODULE_PARM_DESC ( first_slot  ,
"Hotswap bus first slot number  
)
MODULE_PARM_DESC ( last_slot  ,
"Hotswap bus last slot number  
)
MODULE_PARM_DESC ( port  ,
"#ENUM signal I/O port  
)
MODULE_PARM_DESC ( enum_bit  ,
"#ENUM signal bit (0-7)"   
)