docs: Add 24.12 release notes
[coreboot2.git] / util / nvramtool / input_file.h
blobb479e483116a5fa960b88fd3d2793d477f9c67b6
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef INPUT_FILE_H
4 #define INPUT_FILE_H
6 #include "common.h"
7 #include "layout.h"
9 typedef struct cmos_write_t cmos_write_t;
11 /* This represents a pending CMOS write operation. When changing
12 * multiple CMOS parameter values, we first represent the changes as a
13 * list of pending write operations. This allows us to sanity check all
14 * write operations before any of them are performed.
16 struct cmos_write_t {
17 unsigned bit;
18 unsigned length;
19 cmos_entry_config_t config;
20 unsigned long long value;
21 cmos_write_t *next;
24 cmos_write_t *process_input_file(FILE * f);
25 void do_cmos_writes(cmos_write_t * list);
27 extern const char assignment_regex[];
29 #endif /* INPUT_FILE_H */