Files
linux-nvgpu/userspace/units/mock-iospace/include/gv11b_mock_regs.h
Terje Bergstrom 7a71aba234 gpu: nvgpu: unit: Fix header guards
Fix cases where header guard #ifdef and #define had a mismatch.

Change-Id: I74aec2736c467f79e9786880d3e3847ee86a2466
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2318388
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2020-12-15 14:13:28 -06:00

33 lines
838 B
C

/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation. Any
* use, reproduction, disclosure or distribution of this software and related
* documentation without an express license agreement from NVIDIA Corporation
* is strictly prohibited.
*/
#ifndef NVGPU_GV11B_IOSPACE_H
#define NVGPU_GV11B_IOSPACE_H
struct mock_iospace {
const uint32_t *data;
size_t size;
};
enum gv11b_reg_idx {
gv11b_gr_reg_idx = 0,
gv11b_fuse_reg_idx,
gv11b_master_reg_idx,
gv11b_top_reg_idx,
gv11b_fifo_reg_idx,
gv11b_pri_reg_idx,
gv11b_pbdma_reg_idx,
gv11b_ccsr_reg_idx,
gv11b_last_reg_idx,
};
int gv11b_get_mock_iospace(int reg_idx, struct mock_iospace *iospace);
#endif