Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cpci_hotplug_pci.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/pci_hotplug.h>
#include <linux/proc_fs.h>
#include "../pci.h"
#include "cpci_hotplug.h"

Go to the source code of this file.

Macros

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

Functions

u8 cpci_get_attention_status (struct slot *slot)
 
int cpci_set_attention_status (struct slot *slot, int status)
 
u16 cpci_get_hs_csr (struct slot *slot)
 
int cpci_check_and_clear_ins (struct slot *slot)
 
int cpci_check_ext (struct slot *slot)
 
int cpci_clear_ext (struct slot *slot)
 
int cpci_led_on (struct slot *slot)
 
int cpci_led_off (struct slot *slot)
 
int __ref cpci_configure_slot (struct slot *slot)
 
int cpci_unconfigure_slot (struct slot *slot)
 

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 38 of file cpci_hotplug_pci.c.

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

Definition at line 44 of file cpci_hotplug_pci.c.

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

Definition at line 45 of file cpci_hotplug_pci.c.

#define MY_NAME   "cpci_hotplug"

Definition at line 34 of file cpci_hotplug_pci.c.

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

Definition at line 46 of file cpci_hotplug_pci.c.

Function Documentation

int cpci_check_and_clear_ins ( struct slot slot)

Definition at line 114 of file cpci_hotplug_pci.c.

int cpci_check_ext ( struct slot slot)

Definition at line 143 of file cpci_hotplug_pci.c.

int cpci_clear_ext ( struct slot slot)

Definition at line 164 of file cpci_hotplug_pci.c.

int __ref cpci_configure_slot ( struct slot slot)

Definition at line 253 of file cpci_hotplug_pci.c.

u8 cpci_get_attention_status ( struct slot slot)

Definition at line 49 of file cpci_hotplug_pci.c.

u16 cpci_get_hs_csr ( struct slot slot)

Definition at line 96 of file cpci_hotplug_pci.c.

int cpci_led_off ( struct slot slot)

Definition at line 219 of file cpci_hotplug_pci.c.

int cpci_led_on ( struct slot slot)

Definition at line 190 of file cpci_hotplug_pci.c.

int cpci_set_attention_status ( struct slot slot,
int  status 
)

Definition at line 69 of file cpci_hotplug_pci.c.

int cpci_unconfigure_slot ( struct slot slot)

Definition at line 306 of file cpci_hotplug_pci.c.

Variable Documentation

int cpci_debug

Definition at line 60 of file cpci_hotplug_core.c.