Debian Codegraph @

arch/s390/hypfs/hypfs_diag.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Hypervisor filesystem for Linux on s390. Diag 204 and 224
4 * implementation.
5 *
6 * Copyright IBM Corp. 2006, 2008
7 * Author(s): Michael Holzheu <[email protected]>
8 */
9
10 #ifndef _S390_HYPFS_DIAG_H_
11 #define _S390_HYPFS_DIAG_H_
12
13 #include <asm/diag.h>
14
15 enum diag204_format diag204_get_info_type(void);
16 void *diag204_get_buffer(enum diag204_format fmt, int *pages);
17 int diag204_store(void *buf, int pages);
18
19 int __hypfs_diag_fs_init(void);
20 void __hypfs_diag_fs_exit(void);
21
22 static __always_inline int hypfs_diag_fs_init(void)
23 {
24 if (IS_ENABLED(CONFIG_S390_HYPFS_FS))
25 return __hypfs_diag_fs_init();
26 return 0;
27 }
28
29 static inline void hypfs_diag_fs_exit(void)
30 {
31 if (IS_ENABLED(CONFIG_S390_HYPFS_FS))
32 __hypfs_diag_fs_exit();
33 }
34
35 #endif /* _S390_HYPFS_DIAG_H_ */