Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/pci_regs.h>
#include <linux/errno.h>
#include <linux/pm.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/delay.h>
#include <linux/pci-aspm.h>
#include "../pci.h"
Go to the source code of this file.
Data Structures | |
struct | aspm_latency |
struct | pcie_link_state |
struct | aspm_register_info |
Macros | |
#define | MODULE_PARAM_PREFIX "pcie_aspm." |
#define | ASPM_STATE_L0S_UP (1) /* Upstream direction L0s state */ |
#define | ASPM_STATE_L0S_DW (2) /* Downstream direction L0s state */ |
#define | ASPM_STATE_L1 (4) /* L1 state */ |
#define | ASPM_STATE_L0S (ASPM_STATE_L0S_UP | ASPM_STATE_L0S_DW) |
#define | ASPM_STATE_ALL (ASPM_STATE_L0S | ASPM_STATE_L1) |
#define | POLICY_DEFAULT 0 /* BIOS default setting */ |
#define | POLICY_PERFORMANCE 1 /* high performance */ |
#define | POLICY_POWERSAVE 2 /* high power saving */ |
#define | LINK_RETRAIN_TIMEOUT HZ |
Functions | |
void | pcie_aspm_init_link_state (struct pci_dev *pdev) |
void | pcie_aspm_exit_link_state (struct pci_dev *pdev) |
void | pcie_aspm_pm_state_change (struct pci_dev *pdev) |
void | pcie_aspm_powersave_config_link (struct pci_dev *pdev) |
void | pci_disable_link_state_locked (struct pci_dev *pdev, int state) |
EXPORT_SYMBOL (pci_disable_link_state_locked) | |
void | pci_disable_link_state (struct pci_dev *pdev, int state) |
EXPORT_SYMBOL (pci_disable_link_state) | |
void | pcie_clear_aspm (struct pci_bus *bus) |
module_param_call (policy, pcie_aspm_set_policy, pcie_aspm_get_policy, NULL, 0644) | |
__setup ("pcie_aspm=", pcie_aspm_disable) | |
void | pcie_no_aspm (void) |
int | pcie_aspm_enabled (void) |
EXPORT_SYMBOL (pcie_aspm_enabled) | |
bool | pcie_aspm_support_enabled (void) |
EXPORT_SYMBOL (pcie_aspm_support_enabled) | |
#define ASPM_STATE_ALL (ASPM_STATE_L0S | ASPM_STATE_L1) |
#define ASPM_STATE_L0S (ASPM_STATE_L0S_UP | ASPM_STATE_L0S_DW) |
__setup | ( | ) |
EXPORT_SYMBOL | ( | pci_disable_link_state_locked | ) |
EXPORT_SYMBOL | ( | pci_disable_link_state | ) |
EXPORT_SYMBOL | ( | pcie_aspm_enabled | ) |
EXPORT_SYMBOL | ( | pcie_aspm_support_enabled | ) |
module_param_call | ( | policy | , |
pcie_aspm_set_policy | , | ||
pcie_aspm_get_policy | , | ||
NULL | , | ||
0644 | |||
) |