mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
The bulk SPDX addition made all these files into GPL-2.0 licensed files.
However the remainder of the project is MIT-licensed, these files
(primarily header files) were simply missing the boiler plate and got
caught up in the global update.
Fixes: b24413180f (License cleanup: add SPDX GPL-2.0 license identifier to files with no license)
Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Acked-by: Karol Herbst <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
39 lines
781 B
C
39 lines
781 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVBIOS_VOLT_H__
|
|
#define __NVBIOS_VOLT_H__
|
|
|
|
enum nvbios_volt_type {
|
|
NVBIOS_VOLT_GPIO = 0,
|
|
NVBIOS_VOLT_PWM,
|
|
};
|
|
|
|
struct nvbios_volt {
|
|
enum nvbios_volt_type type;
|
|
u32 min;
|
|
u32 max;
|
|
u32 base;
|
|
|
|
/* GPIO mode */
|
|
bool ranged;
|
|
u8 vidmask;
|
|
s16 step;
|
|
|
|
/* PWM mode */
|
|
u32 pwm_freq;
|
|
u32 pwm_range;
|
|
};
|
|
|
|
u32 nvbios_volt_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
|
|
u32 nvbios_volt_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
|
|
struct nvbios_volt *);
|
|
|
|
struct nvbios_volt_entry {
|
|
u32 voltage;
|
|
u8 vid;
|
|
};
|
|
|
|
u32 nvbios_volt_entry(struct nvkm_bios *, int idx, u8 *ver, u8 *len);
|
|
u32 nvbios_volt_entry_parse(struct nvkm_bios *, int idx, u8 *ver, u8 *len,
|
|
struct nvbios_volt_entry *);
|
|
#endif
|