2021-08-03 01:29:49 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/* Copyright(c) 2020 Intel Corporation. */
|
|
|
|
|
|
|
|
#ifndef __CXL_CORE_H__
|
|
|
|
#define __CXL_CORE_H__
|
|
|
|
|
|
|
|
extern const struct device_type cxl_nvdimm_bridge_type;
|
|
|
|
extern const struct device_type cxl_nvdimm_type;
|
|
|
|
|
|
|
|
extern struct attribute_group cxl_base_attribute_group;
|
|
|
|
|
2021-09-09 13:12:32 +08:00
|
|
|
struct cxl_send_command;
|
|
|
|
struct cxl_mem_query_commands;
|
|
|
|
int cxl_query_cmd(struct cxl_memdev *cxlmd,
|
|
|
|
struct cxl_mem_query_commands __user *q);
|
|
|
|
int cxl_send_cmd(struct cxl_memdev *cxlmd, struct cxl_send_command __user *s);
|
|
|
|
|
2021-08-03 01:30:05 +08:00
|
|
|
int cxl_memdev_init(void);
|
|
|
|
void cxl_memdev_exit(void);
|
2021-09-09 13:12:32 +08:00
|
|
|
void cxl_mbox_init(void);
|
|
|
|
void cxl_mbox_exit(void);
|
2021-08-03 01:30:05 +08:00
|
|
|
|
2021-08-03 01:29:49 +08:00
|
|
|
#endif /* __CXL_CORE_H__ */
|