xref: /openbmc/linux/drivers/cxl/core/core.h (revision f5029f62)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright(c) 2020 Intel Corporation. */
3 
4 #ifndef __CXL_CORE_H__
5 #define __CXL_CORE_H__
6 
7 extern const struct device_type cxl_nvdimm_bridge_type;
8 extern const struct device_type cxl_nvdimm_type;
9 
10 extern struct attribute_group cxl_base_attribute_group;
11 
12 struct cxl_send_command;
13 struct cxl_mem_query_commands;
14 int cxl_query_cmd(struct cxl_memdev *cxlmd,
15 		  struct cxl_mem_query_commands __user *q);
16 int cxl_send_cmd(struct cxl_memdev *cxlmd, struct cxl_send_command __user *s);
17 
18 int cxl_memdev_init(void);
19 void cxl_memdev_exit(void);
20 void cxl_mbox_init(void);
21 void cxl_mbox_exit(void);
22 
23 #endif /* __CXL_CORE_H__ */
24