| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef __DSM_CALIB_H__ |
| 4 | #define __DSM_CALIB_H__ |
| 5 | |
| 6 | #include <stddef.h> |
| 7 | #include <stdint.h> |
| 8 | #include <types.h> |
| 9 | |
| 10 | /** |
| 11 | * get_dsm_calibration_from_key - Gets value related to DSM calibration from VPD |
| 12 | * @key: The key in RO_VPD. The valid prefix is "dsm_calib_". The valid keys are |
| 13 | * documented in https://chromeos.google.com/partner/dlm/docs/factory/vpd.html. |
| 14 | * @value: Output value. The value read from VPD parsed into uint64_t integer. |
| 15 | * |
| 16 | * Returns CB_SUCCESS on success or CB_ERR on failure. |
| 17 | */ |
| 18 | enum cb_err get_dsm_calibration_from_key(const char *key, uint64_t *value); |
| 19 | |
| 20 | #endif /* __DSM_CALIB_H__ */ |