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

Go to the source code of this file.

Macros

#define MY_NAME   "acpiphp"
 
#define SLOT_NAME_SIZE   21 /* {_SUN} */
 
#define DRIVER_VERSION   "0.5"
 
#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>, Takayoshi Kochi <t[email protected]>, Matthew Wilcox <[email protected]>"
 
#define DRIVER_DESC   "ACPI Hot Plug PCI Controller Driver"
 

Functions

 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_PARM_DESC (debug,"Debugging mode enabled or not")
 
 module_param_named (debug, acpiphp_debug, bool, 0644)
 
 EXPORT_SYMBOL_GPL (acpiphp_register_attention)
 
 EXPORT_SYMBOL_GPL (acpiphp_unregister_attention)
 
int acpiphp_register_attention (struct acpiphp_attention_info *info)
 
int acpiphp_unregister_attention (struct acpiphp_attention_info *info)
 
int acpiphp_register_hotplug_slot (struct acpiphp_slot *acpiphp_slot)
 
void acpiphp_unregister_hotplug_slot (struct acpiphp_slot *acpiphp_slot)
 
 module_init (acpiphp_init)
 
 module_exit (acpiphp_exit)
 

Variables

bool acpiphp_debug
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>, Takayoshi Kochi <t[email protected]>, Matthew Wilcox <[email protected]>"

Definition at line 57 of file acpiphp_core.c.

#define DRIVER_DESC   "ACPI Hot Plug PCI Controller Driver"

Definition at line 58 of file acpiphp_core.c.

#define DRIVER_VERSION   "0.5"

Definition at line 56 of file acpiphp_core.c.

#define MY_NAME   "acpiphp"

Definition at line 45 of file acpiphp_core.c.

#define SLOT_NAME_SIZE   21 /* {_SUN} */

Definition at line 48 of file acpiphp_core.c.

Function Documentation

int acpiphp_register_attention ( struct acpiphp_attention_info info)

acpiphp_register_attention - set attention LED callback : must be completely filled with LED callbacks

Description: This is used to register a hardware specific ACPI driver that manipulates the attention LED. All the fields in info must be set.

Definition at line 96 of file acpiphp_core.c.

int acpiphp_register_hotplug_slot ( struct acpiphp_slot acpiphp_slot)

Definition at line 309 of file acpiphp_core.c.

int acpiphp_unregister_attention ( struct acpiphp_attention_info info)

acpiphp_unregister_attention - unset attention LED callback : must match the pointer used to register

Description: This is used to un-register a hardware specific acpi driver that manipulates the attention LED. The pointer to the info struct must be the same as the one used to set it.

Definition at line 117 of file acpiphp_core.c.

void acpiphp_unregister_hotplug_slot ( struct acpiphp_slot acpiphp_slot)

Definition at line 361 of file acpiphp_core.c.

EXPORT_SYMBOL_GPL ( acpiphp_register_attention  )
EXPORT_SYMBOL_GPL ( acpiphp_unregister_attention  )
MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( acpiphp_exit  )
module_init ( acpiphp_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
acpiphp_debug  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Debugging mode enabled or not"   
)

Variable Documentation

bool acpiphp_debug

Definition at line 50 of file acpiphp_core.c.