Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
portdrv.h File Reference
#include <linux/compiler.h>

Go to the source code of this file.

Macros

#define PCIE_PORT_DEVICE_MAXSERVICES   4
 
#define PCIE_PORT_MAX_MSIX_ENTRIES   32
 
#define get_descriptor_id(type, service)   (((type - 4) << 4) | service)
 

Functions

int pcie_port_device_register (struct pci_dev *dev)
 
void pcie_port_device_remove (struct pci_dev *dev)
 
int __must_check pcie_port_bus_register (void)
 
void pcie_port_bus_unregister (void)
 
void pcie_clear_root_pme_status (struct pci_dev *dev)
 

Variables

struct bus_type pcie_port_bus_type
 

Macro Definition Documentation

#define get_descriptor_id (   type,
  service 
)    (((type - 4) << 4) | service)

Definition at line 21 of file portdrv.h.

#define PCIE_PORT_DEVICE_MAXSERVICES   4

Definition at line 14 of file portdrv.h.

#define PCIE_PORT_MAX_MSIX_ENTRIES   32

Definition at line 19 of file portdrv.h.

Function Documentation

void pcie_clear_root_pme_status ( struct pci_dev dev)

pcie_clear_root_pme_status - Clear root port PME interrupt status. : PCIe root port or event collector.

Definition at line 65 of file portdrv_pci.c.

int __must_check pcie_port_bus_register ( void  )

Definition at line 47 of file portdrv_bus.c.

void pcie_port_bus_unregister ( void  )

Definition at line 52 of file portdrv_bus.c.

int pcie_port_device_register ( struct pci_dev dev)

pcie_port_device_register - register PCI Express port : PCI Express port to register

Allocate the port extension structure and register services associated with the port.

Definition at line 361 of file portdrv_core.c.

void pcie_port_device_remove ( struct pci_dev dev)

pcie_port_device_remove - unregister PCI Express port service devices : PCI Express port the service devices to unregister are associated with

Remove PCI Express port service devices associated with given port and disable MSI-X or MSI for the port.

Definition at line 471 of file portdrv_core.c.

Variable Documentation

struct bus_type pcie_port_bus_type

Definition at line 20 of file portdrv_bus.c.