linux/drivers/gpu/drm/nouveau/include/nvrm/535.113.01/common/sdk/nvidia/inc/alloc/alloc_channel.h

#ifndef __src_common_sdk_nvidia_inc_alloc_alloc_channel_h__
#define __src_common_sdk_nvidia_inc_alloc_alloc_channel_h__
#include <nvrm/535.113.01/common/sdk/nvidia/inc/nvlimits.h>

/* Excerpt of RM headers from https://github.com/NVIDIA/open-gpu-kernel-modules/tree/535.113.01 */

/*
 * SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 * SPDX-License-Identifier: MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

NV_MEMORY_DESC_PARAMS;

#define NVOS04_FLAGS_CHANNEL_TYPE
#define NVOS04_FLAGS_CHANNEL_TYPE_PHYSICAL
#define NVOS04_FLAGS_CHANNEL_TYPE_VIRTUAL
#define NVOS04_FLAGS_CHANNEL_TYPE_PHYSICAL_FOR_VIRTUAL

#define NVOS04_FLAGS_VPR
#define NVOS04_FLAGS_VPR_FALSE
#define NVOS04_FLAGS_VPR_TRUE

#define NVOS04_FLAGS_CC_SECURE
#define NVOS04_FLAGS_CC_SECURE_FALSE
#define NVOS04_FLAGS_CC_SECURE_TRUE

#define NVOS04_FLAGS_CHANNEL_SKIP_MAP_REFCOUNTING
#define NVOS04_FLAGS_CHANNEL_SKIP_MAP_REFCOUNTING_FALSE
#define NVOS04_FLAGS_CHANNEL_SKIP_MAP_REFCOUNTING_TRUE

#define NVOS04_FLAGS_GROUP_CHANNEL_RUNQUEUE
#define NVOS04_FLAGS_GROUP_CHANNEL_RUNQUEUE_DEFAULT
#define NVOS04_FLAGS_GROUP_CHANNEL_RUNQUEUE_ONE

#define NVOS04_FLAGS_PRIVILEGED_CHANNEL
#define NVOS04_FLAGS_PRIVILEGED_CHANNEL_FALSE
#define NVOS04_FLAGS_PRIVILEGED_CHANNEL_TRUE

#define NVOS04_FLAGS_DELAY_CHANNEL_SCHEDULING
#define NVOS04_FLAGS_DELAY_CHANNEL_SCHEDULING_FALSE
#define NVOS04_FLAGS_DELAY_CHANNEL_SCHEDULING_TRUE

#define NVOS04_FLAGS_CHANNEL_DENY_PHYSICAL_MODE_CE
#define NVOS04_FLAGS_CHANNEL_DENY_PHYSICAL_MODE_CE_FALSE
#define NVOS04_FLAGS_CHANNEL_DENY_PHYSICAL_MODE_CE_TRUE

#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_VALUE

#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_FIXED
#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_FIXED_FALSE
#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_FIXED_TRUE

#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_PAGE_VALUE

#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_PAGE_FIXED
#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_PAGE_FIXED_FALSE
#define NVOS04_FLAGS_CHANNEL_USERD_INDEX_PAGE_FIXED_TRUE

#define NVOS04_FLAGS_CHANNEL_DENY_AUTH_LEVEL_PRIV
#define NVOS04_FLAGS_CHANNEL_DENY_AUTH_LEVEL_PRIV_FALSE
#define NVOS04_FLAGS_CHANNEL_DENY_AUTH_LEVEL_PRIV_TRUE

#define NVOS04_FLAGS_CHANNEL_SKIP_SCRUBBER
#define NVOS04_FLAGS_CHANNEL_SKIP_SCRUBBER_FALSE
#define NVOS04_FLAGS_CHANNEL_SKIP_SCRUBBER_TRUE

#define NVOS04_FLAGS_CHANNEL_CLIENT_MAP_FIFO
#define NVOS04_FLAGS_CHANNEL_CLIENT_MAP_FIFO_FALSE
#define NVOS04_FLAGS_CHANNEL_CLIENT_MAP_FIFO_TRUE

#define NVOS04_FLAGS_SET_EVICT_LAST_CE_PREFETCH_CHANNEL
#define NVOS04_FLAGS_SET_EVICT_LAST_CE_PREFETCH_CHANNEL_FALSE
#define NVOS04_FLAGS_SET_EVICT_LAST_CE_PREFETCH_CHANNEL_TRUE

#define NVOS04_FLAGS_CHANNEL_VGPU_PLUGIN_CONTEXT
#define NVOS04_FLAGS_CHANNEL_VGPU_PLUGIN_CONTEXT_FALSE
#define NVOS04_FLAGS_CHANNEL_VGPU_PLUGIN_CONTEXT_TRUE

#define NVOS04_FLAGS_CHANNEL_PBDMA_ACQUIRE_TIMEOUT
#define NVOS04_FLAGS_CHANNEL_PBDMA_ACQUIRE_TIMEOUT_FALSE
#define NVOS04_FLAGS_CHANNEL_PBDMA_ACQUIRE_TIMEOUT_TRUE

#define NVOS04_FLAGS_GROUP_CHANNEL_THREAD
#define NVOS04_FLAGS_GROUP_CHANNEL_THREAD_DEFAULT
#define NVOS04_FLAGS_GROUP_CHANNEL_THREAD_ONE
#define NVOS04_FLAGS_GROUP_CHANNEL_THREAD_TWO

#define NVOS04_FLAGS_MAP_CHANNEL
#define NVOS04_FLAGS_MAP_CHANNEL_FALSE
#define NVOS04_FLAGS_MAP_CHANNEL_TRUE

#define NVOS04_FLAGS_SKIP_CTXBUFFER_ALLOC
#define NVOS04_FLAGS_SKIP_CTXBUFFER_ALLOC_FALSE
#define NVOS04_FLAGS_SKIP_CTXBUFFER_ALLOC_TRUE

#define CC_CHAN_ALLOC_IV_SIZE_DWORD
#define CC_CHAN_ALLOC_NONCE_SIZE_DWORD

NV_CHANNEL_ALLOC_PARAMS;

NV_CHANNELGPFIFO_ALLOCATION_PARAMETERS;

#endif