xref: /openbmc/linux/tools/testing/cxl/watermark.h (revision ecefa105)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2022 Intel Corporation. All rights reserved. */
3 #ifndef _TEST_CXL_WATERMARK_H_
4 #define _TEST_CXL_WATERMARK_H_
5 #include <linux/module.h>
6 #include <linux/printk.h>
7 
8 int cxl_acpi_test(void);
9 int cxl_core_test(void);
10 int cxl_mem_test(void);
11 int cxl_pmem_test(void);
12 int cxl_port_test(void);
13 
14 /*
15  * dummy routine for cxl_test to validate it is linking to the properly
16  * mocked module and not the standard one from the base tree.
17  */
18 #define cxl_test_watermark(x)				\
19 int x##_test(void)					\
20 {							\
21 	pr_debug("%s for cxl_test\n", KBUILD_MODNAME);	\
22 	return 0;					\
23 }							\
24 EXPORT_SYMBOL(x##_test)
25 #endif /* _TEST_CXL_WATERMARK_H_ */
26