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

Go to the source code of this file.

Macros

#define MY_NAME   "acpi_pcihp"
 
#define dbg(fmt, arg...)   do { if (debug_acpi) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __func__ , ## arg); } while (0)
 
#define err(format, arg...)   printk(KERN_ERR "%s: " format , MY_NAME , ## arg)
 
#define info(format, arg...)   printk(KERN_INFO "%s: " format , MY_NAME , ## arg)
 
#define warn(format, arg...)   printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
 
#define METHOD_NAME__SUN   "_SUN"
 
#define METHOD_NAME_OSHP   "OSHP"
 

Functions

int pci_get_hp_params (struct pci_dev *dev, struct hotplug_params *hpp)
 
 EXPORT_SYMBOL_GPL (pci_get_hp_params)
 
int acpi_get_hp_hw_control_from_firmware (struct pci_dev *pdev, u32 flags)
 
 EXPORT_SYMBOL (acpi_get_hp_hw_control_from_firmware)
 
int acpi_pci_check_ejectable (struct pci_bus *pbus, acpi_handle handle)
 
 EXPORT_SYMBOL_GPL (acpi_pci_check_ejectable)
 
int acpi_pci_detect_ejectable (acpi_handle handle)
 
 EXPORT_SYMBOL_GPL (acpi_pci_detect_ejectable)
 
 module_param (debug_acpi, bool, 0644)
 
 MODULE_PARM_DESC (debug_acpi,"Debugging mode for ACPI enabled or not")
 

Macro Definition Documentation

#define dbg (   fmt,
  arg... 
)    do { if (debug_acpi) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __func__ , ## arg); } while (0)

Definition at line 39 of file acpi_pcihp.c.

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

Definition at line 40 of file acpi_pcihp.c.

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

Definition at line 41 of file acpi_pcihp.c.

#define METHOD_NAME__SUN   "_SUN"

Definition at line 44 of file acpi_pcihp.c.

#define METHOD_NAME_OSHP   "OSHP"

Definition at line 45 of file acpi_pcihp.c.

#define MY_NAME   "acpi_pcihp"

Definition at line 37 of file acpi_pcihp.c.

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

Definition at line 42 of file acpi_pcihp.c.

Function Documentation

int acpi_get_hp_hw_control_from_firmware ( struct pci_dev pdev,
u32  flags 
)

acpi_get_hp_hw_control_from_firmware : the pci_dev of the bridge that has a hotplug controller : requested control bits for _OSC

Attempt to take hotplug control from firmware.

Definition at line 335 of file acpi_pcihp.c.

int acpi_pci_check_ejectable ( struct pci_bus pbus,
acpi_handle  handle 
)

acpi_pcihp_check_ejectable - check if handle is ejectable ACPI PCI slot : the PCI bus of the PCI slot corresponding to 'handle' : ACPI handle to check

Return 1 if handle is ejectable PCI slot, 0 otherwise.

Definition at line 435 of file acpi_pcihp.c.

int acpi_pci_detect_ejectable ( acpi_handle  handle)

acpi_pci_detect_ejectable - check if the PCI bus has ejectable slots - handle of the PCI bus to scan

Returns 1 if the PCI bus has ACPI based ejectable slots, 0 otherwise.

Definition at line 466 of file acpi_pcihp.c.

EXPORT_SYMBOL_GPL ( pci_get_hp_params  )
EXPORT_SYMBOL_GPL ( acpi_pci_check_ejectable  )
EXPORT_SYMBOL_GPL ( acpi_pci_detect_ejectable  )
module_param ( debug_acpi  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( debug_acpi  ,
"Debugging mode for ACPI enabled or not"   
)
int pci_get_hp_params ( struct pci_dev dev,
struct hotplug_params hpp 
)

Definition at line 291 of file acpi_pcihp.c.