xref: /openbmc/linux/drivers/cxl/core/core.h (revision 47010c04)
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 void __iomem *devm_cxl_iomap_block(struct device *dev, resource_size_t addr,
18 				   resource_size_t length);
19 
20 int cxl_memdev_init(void);
21 void cxl_memdev_exit(void);
22 void cxl_mbox_init(void);
23 void cxl_mbox_exit(void);
24 
25 #endif /* __CXL_CORE_H__ */
26