// SPDX-License-Identifier: GPL-2.0-only/* Copyright(c) 2020 Intel Corporation. All rights reserved. */#include<linux/security.h>#include<linux/debugfs.h>#include<linux/ktime.h>#include<linux/mutex.h>#include<linux/unaligned.h>#include<cxlpci.h>#include<cxlmem.h>#include<cxl.h>#include"core.h"#include"trace.h"#include"mce.h"staticboolcxl_raw_allow_all;/** * DOC: cxl mbox * * Core implementation of the CXL 2.0 Type-3 Memory Device Mailbox. The * implementation is used by the cxl_pci driver to initialize the device * and implement the cxl_mem.h IOCTL UAPI. It also implements the * backend of the cxl_pmem_ctl() transport for LIBNVDIMM. */#define cxl_for_each_cmd(cmd)