1 /* SPDX-License-Identifier: GPL-2.0 */
3 * OS info memory interface
5 * Copyright IBM Corp. 2012
8 #ifndef _ASM_S390_OS_INFO_H
9 #define _ASM_S390_OS_INFO_H
11 #include <linux/uio.h>
13 #define OS_INFO_VERSION_MAJOR 1
14 #define OS_INFO_VERSION_MINOR 1
15 #define OS_INFO_MAGIC 0x4f53494e464f535aULL /* OSINFOSZ */
17 #define OS_INFO_VMCOREINFO 0
18 #define OS_INFO_REIPL_BLOCK 1
20 struct os_info_entry {
33 struct os_info_entry entry[2];
37 void os_info_init(void);
38 void os_info_entry_add(int nr, void *ptr, u64 len);
39 void os_info_crashkernel_add(unsigned long base, unsigned long size);
40 u32 os_info_csum(struct os_info *os_info);
42 #ifdef CONFIG_CRASH_DUMP
43 void *os_info_old_entry(int nr, unsigned long *size);
45 static inline void *os_info_old_entry(int nr, unsigned long *size)
51 #endif /* _ASM_S390_OS_INFO_H */