1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef SIEMENS_HWI_LIB_H_
4 #define SIEMENS_HWI_LIB_H_
8 /* Declare all supported fields which can be get with hwilib. */
29 NvramVirtTimeDsaveReset
,
109 /* Define used values in supported fields */
110 #define PF_COLOR_DEPTH_6BIT 0x00
111 #define PF_COLOR_DEPTH_8BIT 0x01
112 #define PF_COLOR_DEPTH_10BIT 0x02
113 #define PF_DISPLCON_LVDS_SINGLE 0x00
114 #define PF_DISPLCON_LVDS_DUAL 0x05
115 #define FF_FREEZE_DISABLE 0x01
116 #define FF_FAN_NEEDED 0x01
118 /* Use this function to find all supported blocks in cbfs. It must be called
119 * once with a valid cbfs file name before hwilib_get_field() can be used.
121 enum cb_err
hwilib_find_blocks(const char *hwi_filename
);
123 /* Use this function to get fields out of supported info blocks
124 * This function returns the number of copied bytes or 0 on error.
126 size_t hwilib_get_field(hwinfo_field_t field
, uint8_t *dst
, size_t dstsize
);
128 #endif /* SIEMENS_HWI_LIB_H_ */