Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
shpchp_core.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include "shpchp.h"

Go to the source code of this file.

Macros

#define DRIVER_VERSION   "0.4"
 
#define DRIVER_AUTHOR   "Dan Zink <[email protected]>, Greg Kroah-Hartman <[email protected]>, Dely Sy <[email protected]>"
 
#define DRIVER_DESC   "Standard Hot Plug PCI Controller Driver"
 
#define SHPC_MODULE_NAME   "shpchp"
 

Functions

 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 module_param (shpchp_debug, bool, 0644)
 
 module_param (shpchp_poll_mode, bool, 0644)
 
 module_param (shpchp_poll_time, int, 0644)
 
 MODULE_PARM_DESC (shpchp_debug,"Debugging mode enabled or not")
 
 MODULE_PARM_DESC (shpchp_poll_mode,"Using polling mechanism for hot-plug events or not")
 
 MODULE_PARM_DESC (shpchp_poll_time,"Polling mechanism frequency, in seconds")
 
void cleanup_slots (struct controller *ctrl)
 
 MODULE_DEVICE_TABLE (pci, shpcd_pci_tbl)
 
 module_init (shpcd_init)
 
 module_exit (shpcd_cleanup)
 

Variables

bool shpchp_debug
 
bool shpchp_poll_mode
 
int shpchp_poll_time
 
struct workqueue_structshpchp_wq
 
struct workqueue_structshpchp_ordered_wq
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Dan Zink <[email protected]>, Greg Kroah-Hartman <[email protected]>, Dely Sy <[email protected]>"

Definition at line 46 of file shpchp_core.c.

#define DRIVER_DESC   "Standard Hot Plug PCI Controller Driver"

Definition at line 47 of file shpchp_core.c.

#define DRIVER_VERSION   "0.4"

Definition at line 45 of file shpchp_core.c.

#define SHPC_MODULE_NAME   "shpchp"

Definition at line 60 of file shpchp_core.c.

Function Documentation

void cleanup_slots ( struct controller ctrl)

Definition at line 173 of file shpchp_core.c.

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( pci  ,
shpcd_pci_tbl   
)
module_exit ( shpcd_cleanup  )
module_init ( shpcd_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( shpchp_debug  ,
bool  ,
0644   
)
module_param ( shpchp_poll_mode  ,
bool  ,
0644   
)
module_param ( shpchp_poll_time  ,
int  ,
0644   
)
MODULE_PARM_DESC ( shpchp_debug  ,
"Debugging mode enabled or not"   
)
MODULE_PARM_DESC ( shpchp_poll_mode  ,
"Using polling mechanism for hot-plug events or not"   
)
MODULE_PARM_DESC ( shpchp_poll_time  ,
"Polling mechanism  frequency,
in seconds  
)

Variable Documentation

bool shpchp_debug

Definition at line 39 of file shpchp_core.c.

struct workqueue_struct* shpchp_ordered_wq

Definition at line 43 of file shpchp_core.c.

bool shpchp_poll_mode

Definition at line 40 of file shpchp_core.c.

int shpchp_poll_time

Definition at line 41 of file shpchp_core.c.

Definition at line 42 of file shpchp_core.c.