1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_VOLT_H__
3 #define __NVKM_VOLT_H__
4 #include <core/subdev.h>
7 const struct nvkm_volt_func
*func
;
8 struct nvkm_subdev subdev
;
21 * These are fully functional map entries creating a sw ceiling for
22 * the voltage. These all can describe different kind of curves, so
23 * that for any given temperature a different one can return the lowest
33 int nvkm_volt_map(struct nvkm_volt
*volt
, u8 id
, u8 temperature
);
34 int nvkm_volt_map_min(struct nvkm_volt
*volt
, u8 id
);
35 int nvkm_volt_get(struct nvkm_volt
*);
36 int nvkm_volt_set_id(struct nvkm_volt
*, u8 id
, u8 min_id
, u8 temp
,
39 int nv40_volt_new(struct nvkm_device
*, int, struct nvkm_volt
**);
40 int gf100_volt_new(struct nvkm_device
*, int, struct nvkm_volt
**);
41 int gk104_volt_new(struct nvkm_device
*, int, struct nvkm_volt
**);
42 int gk20a_volt_new(struct nvkm_device
*, int, struct nvkm_volt
**);
43 int gm20b_volt_new(struct nvkm_device
*, int, struct nvkm_volt
**);