Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pciehp_hpc.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/signal.h>
#include <linux/jiffies.h>
#include <linux/timer.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/time.h>
#include <linux/slab.h>
#include "../pci.h"
#include "pciehp.h"

Go to the source code of this file.

Macros

#define POWER_ON   0
 
#define POWER_OFF   PCI_EXP_SLTCTL_PCC
 

Functions

int pciehp_check_link_status (struct controller *ctrl)
 
int pciehp_get_attention_status (struct slot *slot, u8 *status)
 
int pciehp_get_power_status (struct slot *slot, u8 *status)
 
int pciehp_get_latch_status (struct slot *slot, u8 *status)
 
int pciehp_get_adapter_status (struct slot *slot, u8 *status)
 
int pciehp_query_power_fault (struct slot *slot)
 
int pciehp_set_attention_status (struct slot *slot, u8 value)
 
void pciehp_green_led_on (struct slot *slot)
 
void pciehp_green_led_off (struct slot *slot)
 
void pciehp_green_led_blink (struct slot *slot)
 
int pciehp_power_on_slot (struct slot *slot)
 
int pciehp_power_off_slot (struct slot *slot)
 
int pcie_enable_notification (struct controller *ctrl)
 
int pcie_init_notification (struct controller *ctrl)
 
struct controllerpcie_init (struct pcie_device *dev)
 
void pciehp_release_ctrl (struct controller *ctrl)
 

Macro Definition Documentation

#define POWER_OFF   PCI_EXP_SLTCTL_PCC

Definition at line 70 of file pciehp_hpc.c.

#define POWER_ON   0

Definition at line 69 of file pciehp_hpc.c.

Function Documentation

int pcie_enable_notification ( struct controller ctrl)

Definition at line 708 of file pciehp_hpc.c.

struct controller* pcie_init ( struct pcie_device dev)
read

Definition at line 846 of file pciehp_hpc.c.

int pcie_init_notification ( struct controller ctrl)

Definition at line 752 of file pciehp_hpc.c.

int pciehp_check_link_status ( struct controller ctrl)

Definition at line 312 of file pciehp_hpc.c.

int pciehp_get_adapter_status ( struct slot slot,
u8 status 
)

Definition at line 478 of file pciehp_hpc.c.

int pciehp_get_attention_status ( struct slot slot,
u8 status 
)

Definition at line 391 of file pciehp_hpc.c.

int pciehp_get_latch_status ( struct slot slot,
u8 status 
)

Definition at line 462 of file pciehp_hpc.c.

int pciehp_get_power_status ( struct slot slot,
u8 status 
)

Definition at line 430 of file pciehp_hpc.c.

void pciehp_green_led_blink ( struct slot slot)

Definition at line 559 of file pciehp_hpc.c.

void pciehp_green_led_off ( struct slot slot)

Definition at line 546 of file pciehp_hpc.c.

void pciehp_green_led_on ( struct slot slot)

Definition at line 533 of file pciehp_hpc.c.

int pciehp_power_off_slot ( struct slot slot)

Definition at line 616 of file pciehp_hpc.c.

int pciehp_power_on_slot ( struct slot slot)

Definition at line 572 of file pciehp_hpc.c.

int pciehp_query_power_fault ( struct slot slot)

Definition at line 494 of file pciehp_hpc.c.

void pciehp_release_ctrl ( struct controller ctrl)

Definition at line 909 of file pciehp_hpc.c.

int pciehp_set_attention_status ( struct slot slot,
u8  value 
)

Definition at line 508 of file pciehp_hpc.c.