Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Dan Magenheimer | a50777c | 2011-07-08 12:26:21 -0600 | [diff] [blame] | 2 | #ifndef _XEN_TMEM_H |
| 3 | #define _XEN_TMEM_H |
Jan Beulich | 8e6f7c2 | 2012-02-03 15:09:04 +0000 | [diff] [blame] | 4 | |
| 5 | #include <linux/types.h> |
| 6 | |
Dan Magenheimer | 10a7a077 | 2013-04-30 15:27:00 -0700 | [diff] [blame] | 7 | #ifdef CONFIG_XEN_TMEM_MODULE |
| 8 | #define tmem_enabled true |
| 9 | #else |
Dan Magenheimer | a50777c | 2011-07-08 12:26:21 -0600 | [diff] [blame] | 10 | /* defined in drivers/xen/tmem.c */ |
Jan Beulich | 8e6f7c2 | 2012-02-03 15:09:04 +0000 | [diff] [blame] | 11 | extern bool tmem_enabled; |
Dan Magenheimer | 10a7a077 | 2013-04-30 15:27:00 -0700 | [diff] [blame] | 12 | #endif |
| 13 | |
| 14 | #ifdef CONFIG_XEN_SELFBALLOONING |
| 15 | extern int xen_selfballoon_init(bool, bool); |
| 16 | #endif |
Jan Beulich | 8e6f7c2 | 2012-02-03 15:09:04 +0000 | [diff] [blame] | 17 | |
Dan Magenheimer | a50777c | 2011-07-08 12:26:21 -0600 | [diff] [blame] | 18 | #endif /* _XEN_TMEM_H */ |