Skip to content

Commit f33144f

Browse files
author
Stefan Reinauer
committed
detok 1.0.2 merge
git-svn-id: svn://coreboot.org/openbios/fcode-utils@103 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 91c7df5 commit f33144f

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

detok/addfcodes.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@
3737

3838
#include "types.h"
3939

40+
/* ************************************************************************** *
41+
*
42+
* Global Variables Exported
43+
*
44+
**************************************************************************** */
45+
46+
/* For "special function" identification */
47+
extern u16 *double_lit_code;
48+
49+
4050
/* ************************************************************************** *
4151
*
4252
* Function Prototypes / Functions Exported:

detok/detok.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,28 @@
3535

3636
#include "types.h"
3737

38+
/* Structure of an entry in a token-table
39+
* Consists of:
40+
* (1) Name of the token
41+
* (2) FCode of the token
42+
* (3) Link-pointer to previous entry.
43+
*/
44+
45+
typedef struct token {
46+
char *name;
47+
u16 fcode;
48+
struct token *prev;
49+
} token_t;
50+
51+
/* Macro for creating an entry in a token-table data-array */
52+
#define TOKEN_ENTRY(num, name) { name, (u16)num, (token_t *)NULL }
53+
54+
3855
/* Prototypes for functions exported from
3956
* detok.c decode.c printformats.c pcihdr.c and dictionary.c
4057
*/
4158

59+
void link_token(token_t *curr_token);
4260
void add_token(u16 number, char *name);
4361
void init_dictionary(void);
4462
void reset_dictionary(void);

0 commit comments

Comments
 (0)