mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Add ioctls to retrieve voltage, current, power and temperature. Add flags in GPU characteristics to indicate if feature is supported. Jira DNVGPU-166 Change-Id: Ifaafe2efdb6b09d7b28215b641814f28e894151e Signed-off-by: David Martinez Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1241861 Tested-by: Thomas Fleury <tfleury@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-on: http://git-master/r/1267122
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/*
|
|
* general power device structures & definitions
|
|
*
|
|
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
#ifndef _PMGR_H_
|
|
#define _PMGR_H_
|
|
|
|
#include "pwrdev.h"
|
|
#include "pwrmonitor.h"
|
|
#include "pwrpolicy.h"
|
|
|
|
struct pmgr_pmupstate {
|
|
struct pwr_devices pmgr_deviceobjs;
|
|
struct pmgr_pwr_monitor pmgr_monitorobjs;
|
|
struct pmgr_pwr_policy pmgr_policyobjs;
|
|
};
|
|
|
|
u32 pmgr_domain_sw_setup(struct gk20a *g);
|
|
u32 pmgr_domain_pmu_setup(struct gk20a *g);
|
|
int pmgr_pwr_devices_get_current(struct gk20a *g, u32 *val);
|
|
int pmgr_pwr_devices_get_voltage(struct gk20a *g, u32 *val);
|
|
int pmgr_pwr_devices_get_power(struct gk20a *g, u32 *val);
|
|
|
|
#endif
|