interplane.Get Omega
Read in your language

physics-mv

FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.

Brought by drakestapleton

branch main Branches Tags History

physics-mv / third_party / nvidia-open-580.173.02 / src / common / sdk / nvidia / inc / ctrl / ctrlxxxx.h

74 lines · 2537 bytes Raw Blame History
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2005-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3 * SPDX-License-Identifier: MIT
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 */
23
24#pragma once
25
26#include <nvtypes.h>
27
28//
29// This file was generated with FINN, an NVIDIA coding tool.
30// Source file: ctrl/ctrlxxxx.finn
31//
32
33
34
35#include "nvtypes.h"
36
37/* definitions shared by all CTRL interfaces */
38
39/* Basic command format:
40* cmd_class [31:16],
41* cmd_reserved [15:15],
42* cmd_reserved [14:14],
43* cmd_category [13:8],
44* cmd_index [7:0]
45*/
46
47#define NVXXXX_CTRL_CMD_CLASS 31:16
48
49#define NVXXXX_CTRL_CMD_CATEGORY 13:8
50#define NVXXXX_CTRL_CMD_INDEX 7:0
51
52/* don't use DRF_NUM - not always available */
53# define NVXXXX_CTRL_CMD(cls,cat,idx) \
54 (((cls) << 16) | ((0) << 15) | ((0) << 14) \
55 | ((cat) << 8) | ((idx) & 0xFF))
56/*
57 * NVXXXX_CTRL_CMD_NULL
58 *
59 * This command does nothing.
60 * This command does not take any parameters.
61 * This command is valid for all classes.
62 *
63 * Possible status values returned are:
64 * NV_OK
65 */
66#define NVXXXX_CTRL_CMD_NULL (0x00000000)
67
68#define NVxxxx_CTRL_LEGACY_PRIVILEGED (0xC0)
69#define NVxxxx_CTRL_LEGACY_NON_PRIVILEGED (0x80)
70
71typedef struct NVXXXX_CTRL_XXX_INFO {
72 NvU32 index;
73 NvU32 data;
74} NVXXXX_CTRL_XXX_INFO;