util/blobtool: move declaration to their own header

Change-Id: I556a122753e8a35c4ed32df460a5e12fa85de7f7
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Reviewed-on: https://review.coreboot.org/23244
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Denis 'GNUtoo' Carikli
2018-01-12 04:04:30 +01:00
committed by Martin Roth
parent 3cb25bbbc3
commit fa0bdfc120
2 changed files with 51 additions and 32 deletions

View File

@@ -18,39 +18,8 @@
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include "bincfg.h"
//#define YYDEBUG 1
int yylex (void);
static void yyerror (char const *);
struct field {
char *name;
unsigned int width;
unsigned int value;
struct field *next;
};
static struct field *sym_table;
static struct field *putsym (char const *, unsigned int);
static struct field *getsym (char const *);
static struct field *sym_table_tail;
static FILE* fp;
/* Bit array intermediary representation */
struct blob {
unsigned int bloblen;
unsigned char *blb;
unsigned short checksum;
unsigned char *actualblob;
unsigned int lenactualblob;
};
#define VALID_BIT 0x80
#define MAX_WIDTH 32
#define CHECKSUM_SIZE 16
static struct blob *binary;
static void check_pointer (void *ptr)
{