/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES3*4* These are definitions for the command interface for mlx5 HW. mlx5 FW has a5* User Context mechanism which allows the FW to understand a security scope.6* FWCTL binds each FD to a FW user context and then places the User Context ID7* (UID) in each command header. The created User Context has a capability set8* that is appropriate for FWCTL's security model.9*10* Command formation should use a copy of the structs in mlx5_ifc.h following11* the Programmers Reference Manual. A open release is available here:12*13* https://network.nvidia.com/files/doc-2020/ethernet-adapters-programming-manual.pdf14*15* The device_type for this file is FWCTL_DEVICE_TYPE_MLX5.16*/17#ifndef _UAPI_FWCTL_MLX5_H18#define _UAPI_FWCTL_MLX5_H1920#include <linux/types.h>2122/**23* struct fwctl_info_mlx5 - ioctl(FWCTL_INFO) out_device_data24* @uid: The FW UID this FD is bound to. Each command header will force25* this value.26* @uctx_caps: The FW capabilities that are enabled for the uid.27*28* Return basic information about the FW interface available.29*/30struct fwctl_info_mlx5 {31__u32 uid;32__u32 uctx_caps;33};3435#endif363738