Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpcihp_zt5550.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/signal.h>
#include "cpci_hotplug.h"
#include "cpcihp_zt5550.h"

Go to the source code of this file.

Macros

#define DRIVER_VERSION   "0.2"
 
#define DRIVER_AUTHOR   "Scott Murray <[email protected]>"
 
#define DRIVER_DESC   "ZT5550 CompactPCI Hot Plug Driver"
 
#define MY_NAME   "cpcihp_zt5550"
 
#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_DEVICE_TABLE (pci, zt5550_hc_pci_tbl)
 
 module_init (zt5550_init)
 
 module_exit (zt5550_exit)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, bool, 0644)
 
 MODULE_PARM_DESC (debug,"Debugging mode enabled or not")
 
 module_param (poll, bool, 0644)
 
 MODULE_PARM_DESC (poll,"#ENUM polling mode enabled or not")
 

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 49 of file cpcihp_zt5550.c.

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

Definition at line 44 of file cpcihp_zt5550.c.

#define DRIVER_DESC   "ZT5550 CompactPCI Hot Plug Driver"

Definition at line 45 of file cpcihp_zt5550.c.

#define DRIVER_VERSION   "0.2"

Definition at line 43 of file cpcihp_zt5550.c.

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

Definition at line 55 of file cpcihp_zt5550.c.

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

Definition at line 56 of file cpcihp_zt5550.c.

#define MY_NAME   "cpcihp_zt5550"

Definition at line 47 of file cpcihp_zt5550.c.

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

Definition at line 57 of file cpcihp_zt5550.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( pci  ,
zt5550_hc_pci_tbl   
)
module_exit ( zt5550_exit  )
module_init ( zt5550_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
bool  ,
0644   
)
module_param ( poll  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Debugging mode enabled or not"   
)
MODULE_PARM_DESC ( poll  ,
"#ENUM polling mode enabled or not"   
)