mb/dell: Add Latitude E5520 (Sandy Bridge)
[coreboot.git] / util / bincfg / bincfg.h
blobc3eec105df002b38adb53e7fdbe73713183c6120
1 /* bincfg - Compiler/Decompiler for data blobs with specs */
2 /* SPDX-License-Identifier: GPL-3.0-or-later */
4 #ifndef __BINCFG_H
5 #define __BINCFG_H
7 #define VALID_BIT 0x80
8 #define MAX_WIDTH 32
9 #define CHECKSUM_SIZE 16
11 struct field {
12 char *name;
13 unsigned int width;
14 unsigned int value;
15 struct field *next;
18 /* Bit array intermediary representation */
19 struct blob {
20 unsigned int bloblen;
21 unsigned char *blb;
22 unsigned short checksum;
23 unsigned char *actualblob;
24 unsigned int lenactualblob;
27 static struct field *putsym (char const *, unsigned int);
28 static struct field *getsym (char const *);
29 static void yyerror (FILE* fp, char const *);
30 int yylex (void);
32 static struct blob *binary;
33 static struct field *sym_table;
34 static struct field *sym_table_tail;
36 #endif /* __BINCFG_H */