Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pci_hotplug.h File Reference

Go to the source code of this file.

Data Structures

struct  hotplug_slot_ops
 
struct  hotplug_slot_info
 
struct  hpp_type0
 
struct  hpp_type1
 
struct  hpp_type2
 
struct  hotplug_params
 

Macros

#define to_hotplug_slot(n)   container_of(n, struct hotplug_slot, kobj)
 
#define pci_hp_register(slot, pbus, devnr, name)   __pci_hp_register(slot, pbus, devnr, name, THIS_MODULE, KBUILD_MODNAME)
 

Enumerations

enum  pcie_link_width {
  PCIE_LNK_WIDTH_RESRV = 0x00, PCIE_LNK_X1 = 0x01, PCIE_LNK_X2 = 0x02, PCIE_LNK_X4 = 0x04,
  PCIE_LNK_X8 = 0x08, PCIE_LNK_X12 = 0x0C, PCIE_LNK_X16 = 0x10, PCIE_LNK_X32 = 0x20,
  PCIE_LNK_WIDTH_UNKNOWN = 0xFF
}
 

Functions

int __pci_hp_register (struct hotplug_slot *slot, struct pci_bus *pbus, int nr, const char *name, struct module *owner, const char *mod_name)
 
int pci_hp_deregister (struct hotplug_slot *slot)
 
int __must_check pci_hp_change_slot_info (struct hotplug_slot *slot, struct hotplug_slot_info *info)
 
void pci_configure_slot (struct pci_dev *dev)
 

Macro Definition Documentation

#define pci_hp_register (   slot,
  pbus,
  devnr,
  name 
)    __pci_hp_register(slot, pbus, devnr, name, THIS_MODULE, KBUILD_MODNAME)

Definition at line 136 of file pci_hotplug.h.

#define to_hotplug_slot (   n)    container_of(n, struct hotplug_slot, kobj)

Definition at line 121 of file pci_hotplug.h.

Enumeration Type Documentation

Enumerator:
PCIE_LNK_WIDTH_RESRV 
PCIE_LNK_X1 
PCIE_LNK_X2 
PCIE_LNK_X4 
PCIE_LNK_X8 
PCIE_LNK_X12 
PCIE_LNK_X16 
PCIE_LNK_X32 
PCIE_LNK_WIDTH_UNKNOWN 

Definition at line 32 of file pci_hotplug.h.

Function Documentation

int __pci_hp_register ( struct hotplug_slot *  slot,
struct pci_bus pbus,
int  nr,
const char name,
struct module owner,
const char mod_name 
)

Definition at line 434 of file pci_hotplug_core.c.

void pci_configure_slot ( struct pci_dev dev)

Definition at line 152 of file pcihp_slot.c.

int __must_check pci_hp_change_slot_info ( struct hotplug_slot *  hotplug,
struct hotplug_slot_info info 
)

pci_hp_change_slot_info - changes the slot's information structure in the core : pointer to the slot whose info has changed : pointer to the info copy into the slot's info structure

must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().

Returns 0 if successful, anything else for an error.

Definition at line 527 of file pci_hotplug_core.c.

int pci_hp_deregister ( struct hotplug_slot *  hotplug)

pci_hp_deregister - deregister a hotplug_slot with the PCI hotplug subsystem : pointer to the &struct hotplug_slot to deregister

The must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().

Returns 0 if successful, anything else for an error.

Definition at line 488 of file pci_hotplug_core.c.