summaryrefslogtreecommitdiff
path: root/indices.h
blob: 09699ffeee90f2a08d1930a6d9daaa9a4873e8bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright 2007 Matthias Hopf <mhopf@suse.de>
 *
 * AtomBIOS disassembler + data structure dumper
 *
 * indices.h:
 * Symbol indices creation + access functions.
 *
 * License: GPL Version 2.0
 */

#ifndef INDICES_H_
#define INDICES_H_

enum IndexName {
    INDEX_NONE = 0, INDEX_COMMAND_TABLE, INDEX_DATA_TABLE, INDEX_ATI_PORT,
    INDEX_WORK_REG,
    /* INDEX_REG_MM .. INDEX_REG_PCIE have to match SET_ATI_PORT operands */
    INDEX_REG_MM, INDEX_REG_PLL, INDEX_REG_MC, INDEX_REG_PCIE,
    INDEX_REG_PCICONFIG, INDEX_REG_SYSTEMIO,
    INDEXTABLE_SIZEOF
} ;

typedef struct index_table_s {
    const char  *name;
    const char **tab;
    int          len;
} index_table_t;

extern index_table_t index_tables[];

extern const char *get_index (int type, int val);

extern void index_load_registers (const char *file);

#endif