Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
aicasm_symbol.h File Reference
#include <sys/queue.h>

Go to the source code of this file.

Data Structures

struct  reg_info
 
struct  field_info
 
struct  const_info
 
struct  alias_info
 
struct  label_info
 
struct  cond_info
 
struct  macro_arg
 
struct  macro_info
 
struct  expression_info
 
struct  symbol
 
struct  symbol_ref
 
struct  symbol_node
 
struct  critical_section
 
struct  patch_info
 
struct  scope
 

Macros

#define SYMLIST_INSERT_HEAD   0x00
 
#define SYMLIST_SORT   0x01
 

Typedefs

typedef struct expression_info expression_t
 
typedef struct symbol symbol_t
 
typedef struct symbol_ref symbol_ref_t
 
typedef struct symbol_node symbol_node_t
 
typedef struct critical_section critical_section_t
 
typedef struct patch_info patch_info_t
 
typedef struct scope scope_t
 

Enumerations

enum  symtype {
  S_ABS, S_REL, S_SEG, S_LIN,
  S_NSYMTYPES, UNINITIALIZED, REGISTER, ALIAS,
  SCBLOC, SRAMLOC, ENUM_ENTRY, FIELD,
  MASK, ENUM, CONST, DOWNLOAD_CONST,
  LABEL, CONDITIONAL, MACRO
}
 
enum  amode_t { RO = 0x01, WO = 0x02, RW = 0x03 }
 
enum  scope_type { SCOPE_ROOT, SCOPE_IF, SCOPE_ELSE_IF, SCOPE_ELSE }
 

Functions

typedef SLIST_HEAD (symlist, symbol_node) symlist_t
 
 STAILQ_HEAD (macro_arg_list, macro_arg) args
 
 TAILQ_HEAD (cs_tailq, critical_section)
 
 SLIST_HEAD (scope_list, scope)
 
 TAILQ_HEAD (scope_tailq, scope)
 
void symbol_delete (symbol_t *symbol)
 
void symtable_open (void)
 
void symtable_close (void)
 
symbol_tsymtable_get (char *name)
 
symbol_node_tsymlist_search (symlist_t *symlist, char *symname)
 
void symlist_add (symlist_t *symlist, symbol_t *symbol, int how)
 
void symlist_free (symlist_t *symlist)
 
void symlist_merge (symlist_t *symlist_dest, symlist_t *symlist_src1, symlist_t *symlist_src2)
 
void symtable_dump (FILE *ofile, FILE *dfile)
 

Macro Definition Documentation

#define SYMLIST_INSERT_HEAD   0x00

Definition at line 202 of file aicasm_symbol.h.

#define SYMLIST_SORT   0x01

Definition at line 203 of file aicasm_symbol.h.

Typedef Documentation

typedef struct scope scope_t

Enumeration Type Documentation

enum amode_t
Enumerator:
RO 
WO 
RW 

Definition at line 68 of file aicasm_symbol.h.

enum scope_type
Enumerator:
SCOPE_ROOT 
SCOPE_IF 
SCOPE_ELSE_IF 
SCOPE_ELSE 

Definition at line 160 of file aicasm_symbol.h.

enum symtype
Enumerator:
S_ABS 
S_REL 
S_SEG 
S_LIN 
S_NSYMTYPES 
UNINITIALIZED 
REGISTER 
ALIAS 
SCBLOC 
SRAMLOC 
ENUM_ENTRY 
FIELD 
MASK 
ENUM 
CONST 
DOWNLOAD_CONST 
LABEL 
CONDITIONAL 
MACRO 

Definition at line 51 of file aicasm_symbol.h.

Function Documentation

typedef SLIST_HEAD ( symlist  ,
symbol_node   
)
SLIST_HEAD ( scope_list  ,
scope   
)
STAILQ_HEAD ( macro_arg_list  ,
macro_arg   
)
void symbol_delete ( symbol_t symbol)

Definition at line 85 of file aicasm_symbol.c.

void symlist_add ( symlist_t *  symlist,
symbol_t symbol,
int  how 
)

Definition at line 226 of file aicasm_symbol.c.

void symlist_free ( symlist_t *  symlist)

Definition at line 301 of file aicasm_symbol.c.

void symlist_merge ( symlist_t *  symlist_dest,
symlist_t *  symlist_src1,
symlist_t *  symlist_src2 
)

Definition at line 315 of file aicasm_symbol.c.

symbol_node_t* symlist_search ( symlist_t *  symlist,
char symname 
)

Definition at line 212 of file aicasm_symbol.c.

void symtable_close ( void  )

Definition at line 146 of file aicasm_symbol.c.

void symtable_dump ( FILE *  ofile,
FILE *  dfile 
)

Definition at line 464 of file aicasm_symbol.c.

symbol_t* symtable_get ( char name)

Definition at line 167 of file aicasm_symbol.c.

void symtable_open ( void  )

Definition at line 132 of file aicasm_symbol.c.

TAILQ_HEAD ( cs_tailq  ,
critical_section   
)
TAILQ_HEAD ( scope_tailq  ,
scope   
)