mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
49 lines
915 B
C
49 lines
915 B
C
/* tag: dict management headers
|
|
*
|
|
* Copyright (C) 2003 Patrick Mauritz, Stefan Reinauer
|
|
*
|
|
* See the file "COPYING" for further information about
|
|
* the copyright and warranty status of this work.
|
|
*/
|
|
|
|
#ifndef __DICT_H
|
|
#define __DICT_H
|
|
|
|
#define DICTID "OpenBIOS"
|
|
|
|
#define DOCOL 1
|
|
#define DOLIT 2
|
|
#define DOCON 3
|
|
#define DOVAR 4
|
|
#define DODFR 5
|
|
#define DODOES 6
|
|
|
|
|
|
/* The header is 28/32 bytes on 32/64bit platforms */
|
|
|
|
typedef struct dictionary_header {
|
|
char signature[8];
|
|
u8 version;
|
|
u8 cellsize;
|
|
u8 endianess;
|
|
u8 compression;
|
|
u8 relocation;
|
|
u8 reserved[3];
|
|
u32 checksum;
|
|
u32 length;
|
|
ucell last;
|
|
} __attribute__((packed)) dictionary_header_t;
|
|
|
|
ucell lfa2nfa(ucell ilfa);
|
|
ucell load_dictionary(const char *data, ucell len);
|
|
void dump_header(dictionary_header_t *header);
|
|
|
|
/* program counter */
|
|
extern ucell PC;
|
|
|
|
extern unsigned char *dict;
|
|
extern cell dicthead;
|
|
extern ucell *last;
|
|
|
|
#endif
|