Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cpci_hotplug_core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/pci_hotplug.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/atomic.h>
#include <linux/delay.h>
#include <linux/kthread.h>
#include "cpci_hotplug.h"

Go to the source code of this file.

Macros

#define DRIVER_AUTHOR   "Scott Murray <[email protected]>"
 
#define DRIVER_DESC   "CompactPCI Hot Plug Core"
 
#define MY_NAME   "cpci_hotplug"
 
#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)
 
#define SLOT_NAME_SIZE   6
 

Functions

int cpci_hp_register_bus (struct pci_bus *bus, u8 first, u8 last)
 
int cpci_hp_unregister_bus (struct pci_bus *bus)
 
int cpci_hp_register_controller (struct cpci_hp_controller *new_controller)
 
int cpci_hp_unregister_controller (struct cpci_hp_controller *old_controller)
 
int cpci_hp_start (void)
 
int cpci_hp_stop (void)
 
int __init cpci_hotplug_init (int debug)
 
void __exit cpci_hotplug_exit (void)
 
 EXPORT_SYMBOL_GPL (cpci_hp_register_controller)
 
 EXPORT_SYMBOL_GPL (cpci_hp_unregister_controller)
 
 EXPORT_SYMBOL_GPL (cpci_hp_register_bus)
 
 EXPORT_SYMBOL_GPL (cpci_hp_unregister_bus)
 
 EXPORT_SYMBOL_GPL (cpci_hp_start)
 
 EXPORT_SYMBOL_GPL (cpci_hp_stop)
 

Variables

int cpci_debug
 

Macro Definition Documentation

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

Definition at line 45 of file cpci_hotplug_core.c.

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

Definition at line 40 of file cpci_hotplug_core.c.

#define DRIVER_DESC   "CompactPCI Hot Plug Core"

Definition at line 41 of file cpci_hotplug_core.c.

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

Definition at line 51 of file cpci_hotplug_core.c.

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

Definition at line 52 of file cpci_hotplug_core.c.

#define MY_NAME   "cpci_hotplug"

Definition at line 43 of file cpci_hotplug_core.c.

#define SLOT_NAME_SIZE   6

Definition at line 219 of file cpci_hotplug_core.c.

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

Definition at line 53 of file cpci_hotplug_core.c.

Function Documentation

void __exit cpci_hotplug_exit ( void  )

Definition at line 716 of file cpci_hotplug_core.c.

int __init cpci_hotplug_init ( int  debug)

Definition at line 709 of file cpci_hotplug_core.c.

int cpci_hp_register_bus ( struct pci_bus bus,
u8  first,
u8  last 
)

Definition at line 222 of file cpci_hotplug_core.c.

int cpci_hp_register_controller ( struct cpci_hp_controller new_controller)

Definition at line 589 of file cpci_hotplug_core.c.

int cpci_hp_start ( void  )

Definition at line 658 of file cpci_hotplug_core.c.

int cpci_hp_stop ( void  )

Definition at line 695 of file cpci_hotplug_core.c.

int cpci_hp_unregister_bus ( struct pci_bus bus)

Definition at line 304 of file cpci_hotplug_core.c.

int cpci_hp_unregister_controller ( struct cpci_hp_controller old_controller)

Definition at line 641 of file cpci_hotplug_core.c.

EXPORT_SYMBOL_GPL ( cpci_hp_register_controller  )
EXPORT_SYMBOL_GPL ( cpci_hp_unregister_controller  )
EXPORT_SYMBOL_GPL ( cpci_hp_register_bus  )
EXPORT_SYMBOL_GPL ( cpci_hp_unregister_bus  )
EXPORT_SYMBOL_GPL ( cpci_hp_start  )
EXPORT_SYMBOL_GPL ( cpci_hp_stop  )

Variable Documentation

int cpci_debug

Definition at line 60 of file cpci_hotplug_core.c.