mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: rename <nvgpu/top.h> to <nvgpu/device.h>
top.h is a description of "devices" available on the GPU. As such rename this header to device.h. device.h will ultimately be a unit of actual C code that will rely on the top HAL to fill a device list. JIRA NVGPU-5421 Change-Id: If6e4a537d2209e429a678761a34713723da7a00a Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2319648 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -778,7 +778,7 @@ func:
|
||||
top_fusa:
|
||||
safe: yes
|
||||
owner: Tejal K
|
||||
sources: [ include/nvgpu/top.h,
|
||||
sources: [ include/nvgpu/device.h,
|
||||
include/nvgpu/gops_top.h,
|
||||
hal/top/top_gm20b_fusa.c,
|
||||
hal/top/top_gm20b.h,
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <nvgpu/power_features/pg.h>
|
||||
#include <nvgpu/channel.h>
|
||||
#include <nvgpu/soc.h>
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/gr/gr_falcon.h>
|
||||
#include <nvgpu/gr/gr.h>
|
||||
#include <nvgpu/fifo.h>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <nvgpu/nvlink.h>
|
||||
#include <nvgpu/nvlink_probe.h>
|
||||
#include <nvgpu/enabled.h>
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/nvlink_bios.h>
|
||||
|
||||
#ifdef CONFIG_NVGPU_NVLINK
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,7 +20,7 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/engines.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/errno.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,7 +20,7 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/engines.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/errno.h>
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <nvgpu/utils.h>
|
||||
#include <nvgpu/timers.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/nvlink_minion.h>
|
||||
#include <nvgpu/gops_mc.h>
|
||||
#include <nvgpu/mc.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,7 +20,7 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/io.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,7 +20,7 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/io.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,7 +20,7 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/io.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,7 +20,7 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/io.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef NVGPU_TOP_H
|
||||
#define NVGPU_TOP_H
|
||||
#ifndef NVGPU_DEVICE_H
|
||||
#define NVGPU_DEVICE_H
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
@@ -118,4 +118,4 @@ struct nvgpu_device_info {
|
||||
/** @endcond DOXYGEN_SHOULD_SKIP_THIS */
|
||||
};
|
||||
|
||||
#endif /* NVGPU_TOP_H */
|
||||
#endif /* NVGPU_DEVICE_H */
|
||||
@@ -46,7 +46,7 @@ struct nvgpu_fifo;
|
||||
/**
|
||||
* Engine enum types used for s/w purpose. These enum values are
|
||||
* different as compared to engine enum types defined by h/w.
|
||||
* Refer top.h header file.
|
||||
* Refer device.h header file.
|
||||
*/
|
||||
enum nvgpu_fifo_engine {
|
||||
/** GR engine enum */
|
||||
@@ -110,7 +110,7 @@ struct nvgpu_engine_info {
|
||||
};
|
||||
/**
|
||||
* @brief Get s/w defined engine enum type for engine enum type defined by h/w.
|
||||
* See top.h for engine enum types defined by h/w.
|
||||
* See device.h for engine enum types defined by h/w.
|
||||
*
|
||||
* @param g [in] The GPU driver struct.
|
||||
* @param engine_type [in] Engine enum type defined by h/w.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -151,7 +151,7 @@ struct nvgpu_tsg {
|
||||
* is one runlist per engine (graphics and grcopy share a runlist).
|
||||
* The runlist_id specifies the h/w runlist to which a runlist in
|
||||
* memory is being submitted. Each runlist serves a specific set of
|
||||
* engines. Refer top.h.
|
||||
* engines. Refer to device.h.
|
||||
*/
|
||||
u32 runlist_id;
|
||||
/** tgid (OS specific) of the process that openend the TSG. */
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/io.h>
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/engines.h>
|
||||
#include <nvgpu/engine_status.h>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/io.h>
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/engines.h>
|
||||
#include <nvgpu/engine_status.h>
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/mc.h>
|
||||
#include <nvgpu/hal_init.h>
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <nvgpu/engines.h>
|
||||
#include <nvgpu/ltc.h>
|
||||
#include <nvgpu/hw/gp10b/hw_mc_gp10b.h>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <nvgpu/posix/io.h>
|
||||
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/top.h>
|
||||
#include <nvgpu/device.h>
|
||||
#include <hal/top/top_gm20b.h>
|
||||
#include <hal/top/top_gp10b.h>
|
||||
#include <hal/top/top_gv11b.h>
|
||||
|
||||
Reference in New Issue
Block a user