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

Go to the source code of this file.

Data Structures

struct  pcie_device
 
struct  pcie_port_service_driver
 

Macros

#define PCIE_ANY_PORT   (~0)
 
#define PCIE_PORT_SERVICE_PME_SHIFT   0 /* Power Management Event */
 
#define PCIE_PORT_SERVICE_PME   (1 << PCIE_PORT_SERVICE_PME_SHIFT)
 
#define PCIE_PORT_SERVICE_AER_SHIFT   1 /* Advanced Error Reporting */
 
#define PCIE_PORT_SERVICE_AER   (1 << PCIE_PORT_SERVICE_AER_SHIFT)
 
#define PCIE_PORT_SERVICE_HP_SHIFT   2 /* Native Hotplug */
 
#define PCIE_PORT_SERVICE_HP   (1 << PCIE_PORT_SERVICE_HP_SHIFT)
 
#define PCIE_PORT_SERVICE_VC_SHIFT   3 /* Virtual Channel */
 
#define PCIE_PORT_SERVICE_VC   (1 << PCIE_PORT_SERVICE_VC_SHIFT)
 
#define to_pcie_device(d)   container_of(d, struct pcie_device, device)
 
#define to_service_driver(d)   container_of(d, struct pcie_port_service_driver, driver)
 

Functions

int pcie_port_service_register (struct pcie_port_service_driver *new)
 
void pcie_port_service_unregister (struct pcie_port_service_driver *new)
 

Macro Definition Documentation

#define PCIE_ANY_PORT   (~0)

Definition at line 13 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_AER   (1 << PCIE_PORT_SERVICE_AER_SHIFT)

Definition at line 19 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_AER_SHIFT   1 /* Advanced Error Reporting */

Definition at line 18 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_HP   (1 << PCIE_PORT_SERVICE_HP_SHIFT)

Definition at line 21 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_HP_SHIFT   2 /* Native Hotplug */

Definition at line 20 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_PME   (1 << PCIE_PORT_SERVICE_PME_SHIFT)

Definition at line 17 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_PME_SHIFT   0 /* Power Management Event */

Definition at line 16 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_VC   (1 << PCIE_PORT_SERVICE_VC_SHIFT)

Definition at line 23 of file pcieport_if.h.

#define PCIE_PORT_SERVICE_VC_SHIFT   3 /* Virtual Channel */

Definition at line 22 of file pcieport_if.h.

#define to_pcie_device (   d)    container_of(d, struct pcie_device, device)

Definition at line 32 of file pcieport_if.h.

#define to_service_driver (   d)    container_of(d, struct pcie_port_service_driver, driver)

Definition at line 62 of file pcieport_if.h.

Function Documentation

int pcie_port_service_register ( struct pcie_port_service_driver new)

pcie_port_service_register - register PCI Express port service driver : PCI Express port service driver to register

Definition at line 552 of file portdrv_core.c.

void pcie_port_service_unregister ( struct pcie_port_service_driver drv)

pcie_port_service_unregister - unregister PCI Express port service driver : PCI Express port service driver to unregister

Definition at line 571 of file portdrv_core.c.