Loading...
1#ifndef __NVBIOS_ICCSENSE_H__
2#define __NVBIOS_ICCSENSE_H__
3struct pwr_rail_resistor_t {
4 u8 mohm;
5 bool enabled;
6};
7
8struct pwr_rail_t {
9 u8 mode;
10 u8 extdev_id;
11 u8 resistor_count;
12 struct pwr_rail_resistor_t resistors[3];
13 u16 config;
14};
15
16struct nvbios_iccsense {
17 int nr_entry;
18 struct pwr_rail_t *rail;
19};
20
21int nvbios_iccsense_parse(struct nvkm_bios *, struct nvbios_iccsense *);
22#endif
1/* SPDX-License-Identifier: MIT */
2#ifndef __NVBIOS_ICCSENSE_H__
3#define __NVBIOS_ICCSENSE_H__
4struct pwr_rail_resistor_t {
5 u8 mohm;
6 bool enabled;
7};
8
9struct pwr_rail_t {
10 u8 mode;
11 u8 extdev_id;
12 u8 resistor_count;
13 struct pwr_rail_resistor_t resistors[3];
14 u16 config;
15};
16
17struct nvbios_iccsense {
18 int nr_entry;
19 struct pwr_rail_t *rail;
20};
21
22int nvbios_iccsense_parse(struct nvkm_bios *, struct nvbios_iccsense *);
23#endif