mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-23 16:34:00 +00:00
535.43.02
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
@@ -27,10 +27,12 @@
|
||||
|
||||
//
|
||||
// This file was generated with FINN, an NVIDIA coding tool.
|
||||
// Source file: ctrl/ctrl00f8.finn
|
||||
// Source file: ctrl/ctrl00f8.finn
|
||||
//
|
||||
|
||||
#include "ctrl/ctrlxxxx.h"
|
||||
#include "ctrl90f1.h"
|
||||
#include "mmu_fmt_types.h"
|
||||
|
||||
#define NV00F8_CTRL_CMD(cat,idx) NVXXXX_CTRL_CMD(0x00f8, NV00F8_CTRL_##cat, idx)
|
||||
|
||||
@@ -88,7 +90,7 @@ typedef struct NV_PHYSICAL_MEMORY_ATTRS {
|
||||
|
||||
typedef struct NV00F8_CTRL_GET_INFO_PARAMS {
|
||||
NV_DECLARE_ALIGNED(NvU64 size, 8);
|
||||
NvU32 pageSize;
|
||||
NV_DECLARE_ALIGNED(NvU64 pageSize, 8);
|
||||
NvU32 allocFlags;
|
||||
NV_PHYSICAL_MEMORY_ATTRS physAttrs;
|
||||
} NV00F8_CTRL_GET_INFO_PARAMS;
|
||||
@@ -268,4 +270,47 @@ typedef struct NV00F8_CTRL_GET_ATTACHED_MEM_PARAMS {
|
||||
NV_DECLARE_ALIGNED(NV00F8_CTRL_ATTACH_MEM_INFO memInfos[NV00F8_MAX_ATTACHED_MEM_INFOS], 8);
|
||||
} NV00F8_CTRL_GET_ATTACHED_MEM_PARAMS;
|
||||
|
||||
/*
|
||||
* NV00F8_CTRL_CMD_GET_PAGE_LEVEL_INFO
|
||||
*
|
||||
* Queries page table information for a specific memory fabric address. This
|
||||
* call is only supported for Verif platforms. This will return the same info
|
||||
* as NV90F1_CTRL_VASPACE_GET_PAGE_LEVEL_INFO_PARAMS.
|
||||
*
|
||||
* offset [IN]
|
||||
* Memory fabric Offset from the base address for which page table
|
||||
* information is queried. This offset should be aligned to physical page
|
||||
* size.
|
||||
*
|
||||
* numLevels [OUT]
|
||||
* Number of levels populated.
|
||||
*
|
||||
* levels [OUT]
|
||||
* Per-level information.
|
||||
*
|
||||
* pFmt
|
||||
* Same as NV90F1_CTRL_VASPACE_GET_PAGE_LEVEL_INFO_PARAMS.
|
||||
*
|
||||
* levelFmt
|
||||
* Same as NV90F1_CTRL_VASPACE_GET_PAGE_LEVEL_INFO_PARAMS.
|
||||
*
|
||||
* sublevelFmt
|
||||
* Same as NV90F1_CTRL_VASPACE_GET_PAGE_LEVEL_INFO_PARAMS.
|
||||
*
|
||||
* aperture
|
||||
* Same as NV90F1_CTRL_VASPACE_GET_PAGE_LEVEL_INFO_PARAMS.
|
||||
*
|
||||
* size
|
||||
* Same as NV90F1_CTRL_VASPACE_GET_PAGE_LEVEL_INFO_PARAMS.
|
||||
*/
|
||||
#define NV00F8_CTRL_CMD_GET_PAGE_LEVEL_INFO (0xf80107U) /* finn: Evaluated from "(FINN_NV_MEMORY_FABRIC_FABRIC_INTERFACE_ID << 8) | NV00F8_CTRL_GET_PAGE_LEVEL_INFO_PARAMS_MESSAGE_ID" */
|
||||
|
||||
#define NV00F8_CTRL_GET_PAGE_LEVEL_INFO_PARAMS_MESSAGE_ID (0x7U)
|
||||
|
||||
typedef struct NV00F8_CTRL_GET_PAGE_LEVEL_INFO_PARAMS {
|
||||
NV_DECLARE_ALIGNED(NvU64 offset, 8);
|
||||
NvU32 numLevels;
|
||||
NV_DECLARE_ALIGNED(NV_CTRL_VASPACE_PAGE_LEVEL levels[GMMU_FMT_MAX_LEVELS], 8);
|
||||
} NV00F8_CTRL_GET_PAGE_LEVEL_INFO_PARAMS;
|
||||
|
||||
/* _ctrl00f8_h_ */
|
||||
|
||||
Reference in New Issue
Block a user