~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/aer.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright (C) 2006 Intel Corp.
  4  *     Tom Long Nguyen (tom.l.nguyen@intel.com)
  5  *     Zhang Yanmin (yanmin.zhang@intel.com)
  6  */
  7 
  8 #ifndef _AER_H_
  9 #define _AER_H_
 10 
 11 #include <linux/errno.h>
 12 #include <linux/types.h>
 13 
 14 #define AER_NONFATAL                    0
 15 #define AER_FATAL                       1
 16 #define AER_CORRECTABLE                 2
 17 #define DPC_FATAL                       3
 18 
 19 struct pci_dev;
 20 
 21 struct pcie_tlp_log {
 22         u32 dw[4];
 23 };
 24 
 25 struct aer_capability_regs {
 26         u32 header;
 27         u32 uncor_status;
 28         u32 uncor_mask;
 29         u32 uncor_severity;
 30         u32 cor_status;
 31         u32 cor_mask;
 32         u32 cap_control;
 33         struct pcie_tlp_log header_log;
 34         u32 root_command;
 35         u32 root_status;
 36         u16 cor_err_source;
 37         u16 uncor_err_source;
 38 };
 39 
 40 int pcie_read_tlp_log(struct pci_dev *dev, int where, struct pcie_tlp_log *log);
 41 
 42 #if defined(CONFIG_PCIEAER)
 43 int pci_aer_clear_nonfatal_status(struct pci_dev *dev);
 44 int pcie_aer_is_native(struct pci_dev *dev);
 45 #else
 46 static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
 47 {
 48         return -EINVAL;
 49 }
 50 static inline int pcie_aer_is_native(struct pci_dev *dev) { return 0; }
 51 #endif
 52 
 53 void pci_print_aer(struct pci_dev *dev, int aer_severity,
 54                     struct aer_capability_regs *aer);
 55 int cper_severity_to_aer(int cper_severity);
 56 void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn,
 57                        int severity, struct aer_capability_regs *aer_regs);
 58 #endif //_AER_H_
 59 
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php