Home | History | Annotate | Line # | Download | only in bios
      1 /*	$NetBSD: iccsense.h,v 1.2 2021/12/18 23:45:33 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: MIT */
      4 #ifndef __NVBIOS_ICCSENSE_H__
      5 #define __NVBIOS_ICCSENSE_H__
      6 struct pwr_rail_resistor_t {
      7 	u8 mohm;
      8 	bool enabled;
      9 };
     10 
     11 struct pwr_rail_t {
     12 	u8 mode;
     13 	u8 extdev_id;
     14 	u8 resistor_count;
     15 	struct pwr_rail_resistor_t resistors[3];
     16 	u16 config;
     17 };
     18 
     19 struct nvbios_iccsense {
     20 	int nr_entry;
     21 	struct pwr_rail_t *rail;
     22 };
     23 
     24 int nvbios_iccsense_parse(struct nvkm_bios *, struct nvbios_iccsense *);
     25 #endif
     26