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

TOMOYO Linux Cross Reference
Linux/include/acpi/apei.h

Version: ~ [ linux-6.6-rc1 ] ~ [ linux-6.5.2 ] ~ [ linux-6.4.15 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.52 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.131 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.194 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.256 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.294 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.325 ] ~ [ 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 /*
  2  * apei.h - ACPI Platform Error Interface
  3  */
  4 
  5 #ifndef ACPI_APEI_H
  6 #define ACPI_APEI_H
  7 
  8 #include <linux/acpi.h>
  9 #include <linux/cper.h>
 10 #include <asm/ioctls.h>
 11 
 12 #define APEI_ERST_INVALID_RECORD_ID     0xffffffffffffffffULL
 13 
 14 #define APEI_ERST_CLEAR_RECORD          _IOW('E', 1, u64)
 15 #define APEI_ERST_GET_RECORD_COUNT      _IOR('E', 2, u32)
 16 
 17 #ifdef __KERNEL__
 18 
 19 extern bool hest_disable;
 20 extern int erst_disable;
 21 #ifdef CONFIG_ACPI_APEI_GHES
 22 extern bool ghes_disable;
 23 #else
 24 #define ghes_disable 1
 25 #endif
 26 
 27 #ifdef CONFIG_ACPI_APEI
 28 void __init acpi_hest_init(void);
 29 #else
 30 static inline void acpi_hest_init(void) { return; }
 31 #endif
 32 
 33 typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
 34 int apei_hest_parse(apei_hest_func_t func, void *data);
 35 
 36 int erst_write(const struct cper_record_header *record);
 37 ssize_t erst_get_record_count(void);
 38 int erst_get_record_id_begin(int *pos);
 39 int erst_get_record_id_next(int *pos, u64 *record_id);
 40 void erst_get_record_id_end(void);
 41 ssize_t erst_read(u64 record_id, struct cper_record_header *record,
 42                   size_t buflen);
 43 int erst_clear(u64 record_id);
 44 
 45 int arch_apei_enable_cmcff(struct acpi_hest_header *hest_hdr, void *data);
 46 void arch_apei_report_mem_error(int sev, struct cper_sec_mem_err *mem_err);
 47 void arch_apei_flush_tlb_one(unsigned long addr);
 48 
 49 #endif
 50 #endif
 51 

~ [ 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.

osdn.jp