#define dev_fmt(fmt) …
#include <linux/pci.h>
#include <linux/pm_runtime.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/aer.h>
#include "portdrv.h"
#include "../pci.h"
static pci_ers_result_t merge_result(enum pci_ers_result orig,
enum pci_ers_result new)
{ … }
static int report_error_detected(struct pci_dev *dev,
pci_channel_state_t state,
enum pci_ers_result *result)
{ … }
static int pci_pm_runtime_get_sync(struct pci_dev *pdev, void *data)
{ … }
static int pci_pm_runtime_put(struct pci_dev *pdev, void *data)
{ … }
static int report_frozen_detected(struct pci_dev *dev, void *data)
{ … }
static int report_normal_detected(struct pci_dev *dev, void *data)
{ … }
static int report_mmio_enabled(struct pci_dev *dev, void *data)
{ … }
static int report_slot_reset(struct pci_dev *dev, void *data)
{ … }
static int report_resume(struct pci_dev *dev, void *data)
{ … }
static void pci_walk_bridge(struct pci_dev *bridge,
int (*cb)(struct pci_dev *, void *),
void *userdata)
{ … }
pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
pci_channel_state_t state,
pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev))
{ … }