/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* Copyright (c) 2024-2025 Intel Corporation3*4* These are definitions for the mailbox command interface of CXL subsystem.5*/6#ifndef _UAPI_FWCTL_CXL_H_7#define _UAPI_FWCTL_CXL_H_89#include <linux/types.h>10#include <linux/stddef.h>11#include <cxl/features.h>1213/**14* struct fwctl_rpc_cxl - ioctl(FWCTL_RPC) input for CXL15* @opcode: CXL mailbox command opcode16* @flags: Flags for the command (input).17* @op_size: Size of input payload.18* @reserved1: Reserved. Must be 0s.19* @get_sup_feats_in: Get Supported Features input20* @get_feat_in: Get Feature input21* @set_feat_in: Set Feature input22*/23struct fwctl_rpc_cxl {24__struct_group(fwctl_rpc_cxl_hdr, hdr, /* no attrs */,25__u32 opcode;26__u32 flags;27__u32 op_size;28__u32 reserved1;29);30union {31struct cxl_mbox_get_sup_feats_in get_sup_feats_in;32struct cxl_mbox_get_feat_in get_feat_in;33struct cxl_mbox_set_feat_in set_feat_in;34};35};3637/**38* struct fwctl_rpc_cxl_out - ioctl(FWCTL_RPC) output for CXL39* @size: Size of the output payload40* @retval: Return value from device41* @get_sup_feats_out: Get Supported Features output42* @payload: raw byte stream of payload43*/44struct fwctl_rpc_cxl_out {45__struct_group(fwctl_rpc_cxl_out_hdr, hdr, /* no attrs */,46__u32 size;47__u32 retval;48);49union {50struct cxl_mbox_get_sup_feats_out get_sup_feats_out;51__DECLARE_FLEX_ARRAY(__u8, payload);52};53};5455#endif565758