util/nvramtool: Remove "this file is part of" lines
[coreboot.git] / util / nvramtool / input_file.h
blob7da990533b99d72317bc319e1414794f53b5fab9
1 /*****************************************************************************\
2 * input_file.h
3 *****************************************************************************
4 * Please also read the file DISCLAIMER which is included in this software
5 * distribution.
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License (as published by the
9 * Free Software Foundation) version 2, dated June 1991.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
14 * conditions of the GNU General Public License for more details.
15 \*****************************************************************************/
17 #ifndef INPUT_FILE_H
18 #define INPUT_FILE_H
20 #include "common.h"
21 #include "layout.h"
23 typedef struct cmos_write_t cmos_write_t;
25 /* This represents a pending CMOS write operation. When changing
26 * multiple CMOS parameter values, we first represent the changes as a
27 * list of pending write operations. This allows us to sanity check all
28 * write operations before any of them are performed.
30 struct cmos_write_t {
31 unsigned bit;
32 unsigned length;
33 cmos_entry_config_t config;
34 unsigned long long value;
35 cmos_write_t *next;
38 cmos_write_t *process_input_file(FILE * f);
39 void do_cmos_writes(cmos_write_t * list);
41 extern const char assignment_regex[];
43 #endif /* INPUT_FILE_H */