diff options
author | Matthias Hopf <mhopf@suse.de> | 2007-07-27 15:53:11 +0200 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2007-07-27 15:53:11 +0200 |
commit | 4d20bf912f76327f926a565c21ce8b24d6e1be8b (patch) | |
tree | 0e5be50dd401274e6366b835e331f3141217ac13 /indices.h | |
parent | 451e8f435c6fbdd7a7063abe2ed354f923aae8d2 (diff) |
Cleanup: Indices to extra file.
Increased data indention space.
Some efforts to make it compilable w/o atombios.h.
Diffstat (limited to 'indices.h')
-rw-r--r-- | indices.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/indices.h b/indices.h new file mode 100644 index 0000000..8101380 --- /dev/null +++ b/indices.h @@ -0,0 +1,31 @@ +/* + * Copyright 2007 Matthias Hopf <mhopf@suse.de> + * + * AtomBIOS disassembler + data structure dumper + * + * indices.h: + * Symbol indices creation + access functions. + * + * License: to be determined + */ + +#ifndef INDICES_H_ +#define INDICES_H_ + +enum IndexName { + INDEX_NONE = 0, INDEX_COMMAND_TABLE, INDEX_DATA_TABLE, INDEX_ATI_PORT, + INDEX_WORK_REG, + INDEXTABLE_SIZEOF +} ; + +typedef struct index_table_s { + const char *name; + const char **tab; + int len; +} index_table_t; + +extern const index_table_t index_tables[]; + +extern const char *get_index (int type, int val); + +#endif |