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

#ifndef __src_common_sdk_nvidia_inc_nvos_h__
#define __src_common_sdk_nvidia_inc_nvos_h__

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

/*
 * SPDX-FileCopyrightText: Copyright (c) 1993-2023 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.
 */

#define NVOS02_FLAGS_PHYSICALITY
#define NVOS02_FLAGS_PHYSICALITY_CONTIGUOUS
#define NVOS02_FLAGS_PHYSICALITY_NONCONTIGUOUS
#define NVOS02_FLAGS_LOCATION
#define NVOS02_FLAGS_LOCATION_PCI
#define NVOS02_FLAGS_LOCATION_AGP
#define NVOS02_FLAGS_LOCATION_VIDMEM
#define NVOS02_FLAGS_COHERENCY
#define NVOS02_FLAGS_COHERENCY_UNCACHED
#define NVOS02_FLAGS_COHERENCY_CACHED
#define NVOS02_FLAGS_COHERENCY_WRITE_COMBINE
#define NVOS02_FLAGS_COHERENCY_WRITE_THROUGH
#define NVOS02_FLAGS_COHERENCY_WRITE_PROTECT
#define NVOS02_FLAGS_COHERENCY_WRITE_BACK
#define NVOS02_FLAGS_ALLOC
#define NVOS02_FLAGS_ALLOC_NONE
#define NVOS02_FLAGS_GPU_CACHEABLE
#define NVOS02_FLAGS_GPU_CACHEABLE_NO
#define NVOS02_FLAGS_GPU_CACHEABLE_YES

#define NVOS02_FLAGS_KERNEL_MAPPING
#define NVOS02_FLAGS_KERNEL_MAPPING_NO_MAP
#define NVOS02_FLAGS_KERNEL_MAPPING_MAP
#define NVOS02_FLAGS_ALLOC_NISO_DISPLAY
#define NVOS02_FLAGS_ALLOC_NISO_DISPLAY_NO
#define NVOS02_FLAGS_ALLOC_NISO_DISPLAY_YES

#define NVOS02_FLAGS_ALLOC_USER_READ_ONLY
#define NVOS02_FLAGS_ALLOC_USER_READ_ONLY_NO
#define NVOS02_FLAGS_ALLOC_USER_READ_ONLY_YES

#define NVOS02_FLAGS_ALLOC_DEVICE_READ_ONLY
#define NVOS02_FLAGS_ALLOC_DEVICE_READ_ONLY_NO
#define NVOS02_FLAGS_ALLOC_DEVICE_READ_ONLY_YES

#define NVOS02_FLAGS_PEER_MAP_OVERRIDE
#define NVOS02_FLAGS_PEER_MAP_OVERRIDE_DEFAULT
#define NVOS02_FLAGS_PEER_MAP_OVERRIDE_REQUIRED

#define NVOS02_FLAGS_ALLOC_TYPE_SYNCPOINT
#define NVOS02_FLAGS_ALLOC_TYPE_SYNCPOINT_APERTURE

#define NVOS02_FLAGS_MEMORY_PROTECTION
#define NVOS02_FLAGS_MEMORY_PROTECTION_DEFAULT
#define NVOS02_FLAGS_MEMORY_PROTECTION_PROTECTED
#define NVOS02_FLAGS_MEMORY_PROTECTION_UNPROTECTED

#define NVOS02_FLAGS_MAPPING
#define NVOS02_FLAGS_MAPPING_DEFAULT
#define NVOS02_FLAGS_MAPPING_NO_MAP
#define NVOS02_FLAGS_MAPPING_NEVER_MAP

#define NV01_EVENT_CLIENT_RM

NV50VAIO_CHANNELDMA_ALLOCATION_PARAMETERS;

NV50VAIO_CHANNELPIO_ALLOCATION_PARAMETERS;

NV_BSP_ALLOCATION_PARAMETERS;

NV_MSENC_ALLOCATION_PARAMETERS;

NV_NVJPG_ALLOCATION_PARAMETERS;

NV_OFA_ALLOCATION_PARAMETERS;

NV_VASPACE_ALLOCATION_PARAMETERS;

#define NV_VASPACE_ALLOCATION_INDEX_GPU_NEW

#endif