Linux Audio

Check our new training course

Loading...
Note: File does not exist in v5.9.
 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 <holzheu@de.ibm.com>
 8 */
 9
10#ifndef _S390_HYPFS_DIAG_H_
11#define _S390_HYPFS_DIAG_H_
12
13#include <asm/diag.h>
14
15enum diag204_format diag204_get_info_type(void);
16void *diag204_get_buffer(enum diag204_format fmt, int *pages);
17int diag204_store(void *buf, int pages);
18
19int __hypfs_diag_fs_init(void);
20void __hypfs_diag_fs_exit(void);
21
22static 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
29static 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_ */