1 /* SPDX-License-Identifier: GPL-2.0 */
3 * OS info memory interface
5 * Copyright IBM Corp. 2012
6 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com>
8 #ifndef _ASM_S390_OS_INFO_H
9 #define _ASM_S390_OS_INFO_H
11 #define OS_INFO_VERSION_MAJOR 1
12 #define OS_INFO_VERSION_MINOR 1
13 #define OS_INFO_MAGIC 0x4f53494e464f535aULL /* OSINFOSZ */
15 #define OS_INFO_VMCOREINFO 0
16 #define OS_INFO_REIPL_BLOCK 1
18 struct os_info_entry
{
31 struct os_info_entry entry
[2];
35 void os_info_init(void);
36 void os_info_entry_add(int nr
, void *ptr
, u64 len
);
37 void os_info_crashkernel_add(unsigned long base
, unsigned long size
);
38 u32
os_info_csum(struct os_info
*os_info
);
40 #ifdef CONFIG_CRASH_DUMP
41 void *os_info_old_entry(int nr
, unsigned long *size
);
42 int copy_oldmem_kernel(void *dst
, void *src
, size_t count
);
44 static inline void *os_info_old_entry(int nr
, unsigned long *size
)
50 #endif /* _ASM_S390_OS_INFO_H */