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

Go to the source code of this file.

Data Structures

struct  dbg_mirror_root
 
struct  dbg_mirror_list
 
struct  my_handle
 
struct  local_symbol
 
struct  tramp_gen_code_hdr
 
struct  tramp_img_pkt
 
struct  tramp_img_dup_relo
 
struct  tramp_img_dup_pkt
 
struct  tramp_sym
 
struct  tramp_string
 
struct  tramp_info
 
struct  dload_state
 

Macros

#define REASONABLE_SECTION_LIMIT   100
 
#define DLOAD_FILL_BSS   0
 
#define REORDER_MAP(rawmap)   ((rawmap) ^ 0x3030303)
 
#define HOST_BYTE_ORDER(cookedmap)   (cookedmap)
 
#define TARGET_ORDER(cookedmap)   (cookedmap)
 
#define VARIABLE_SIZE   1
 
#define MY_HANDLE_SIZE
 
#define TRAMP_NO_GEN_AVAIL   65535
 
#define TRAMP_SYM_PREFIX   "__$dbTR__"
 
#define TRAMP_SECT_NAME   ".dbTR"
 
#define TRAMP_SYM_PREFIX_LEN   9
 
#define TRAMP_SYM_HEX_ASCII_LEN   9
 
#define GET_CONTAINER(ptr, type, field)
 
#define FIELD_OFFSET(type, field)   ((unsigned long)(&((type *)0)->field))
 
#define TARGET_BIG_ENDIAN   (dlthis->big_e_target)
 

Typedefs

typedef s32 rvalue
 
typedef u32 urvalue
 

Enumerations

enum  cinit_mode { CI_COUNT = 0, CI_ADDRESS, CI_COPY, CI_DONE }
 

Functions

void dload_error (struct dload_state *dlthis, const char *errtxt,...)
 
void dload_syms_error (struct dynamic_loader_sym *syms, const char *errtxt,...)
 
void dload_headers (struct dload_state *dlthis)
 
void dload_strings (struct dload_state *dlthis, bool sec_names_only)
 
void dload_sections (struct dload_state *dlthis)
 
void dload_reorder (void *data, int dsiz, u32 map)
 
u32 dload_checksum (void *data, unsigned siz)
 
void dload_relocate (struct dload_state *dlthis, tgt_au_t *data, struct reloc_record_t *rp, bool *tramps_generated, bool second_pass)
 
rvalue dload_unpack (struct dload_state *dlthis, tgt_au_t *data, int fieldsz, int offset, unsigned sgn)
 
int dload_repack (struct dload_state *dlthis, rvalue val, tgt_au_t *data, int fieldsz, int offset, unsigned sgn)
 
bool dload_tramp_avail (struct dload_state *dlthis, struct reloc_record_t *rp)
 
int dload_tramp_generate (struct dload_state *dlthis, s16 secnn, u32 image_offset, struct image_packet_t *ipacket, struct reloc_record_t *rp)
 
int dload_tramp_pkt_udpate (struct dload_state *dlthis, s16 secnn, u32 image_offset, struct image_packet_t *ipacket)
 
int dload_tramp_finalize (struct dload_state *dlthis)
 
void dload_tramp_cleanup (struct dload_state *dlthis)
 

Macro Definition Documentation

#define DLOAD_FILL_BSS   0

Definition at line 39 of file dload_internal.h.

#define FIELD_OFFSET (   type,
  field 
)    ((unsigned long)(&((type *)0)->field))

Definition at line 132 of file dload_internal.h.

#define GET_CONTAINER (   ptr,
  type,
  field 
)
Value:
((type *)((unsigned long)ptr -\
(unsigned long)(&((type *)0)->field)))

Definition at line 129 of file dload_internal.h.

#define HOST_BYTE_ORDER (   cookedmap)    (cookedmap)

Definition at line 59 of file dload_internal.h.

#define MY_HANDLE_SIZE
Value:
(sizeof(struct my_handle) -\

Definition at line 104 of file dload_internal.h.

#define REASONABLE_SECTION_LIMIT   100

Definition at line 36 of file dload_internal.h.

#define REORDER_MAP (   rawmap)    ((rawmap) ^ 0x3030303)

Definition at line 50 of file dload_internal.h.

#define TARGET_BIG_ENDIAN   (dlthis->big_e_target)

Definition at line 291 of file dload_internal.h.

#define TARGET_ORDER (   cookedmap)    (cookedmap)

Definition at line 65 of file dload_internal.h.

#define TRAMP_NO_GEN_AVAIL   65535

Definition at line 121 of file dload_internal.h.

#define TRAMP_SECT_NAME   ".dbTR"

Definition at line 123 of file dload_internal.h.

#define TRAMP_SYM_HEX_ASCII_LEN   9

Definition at line 127 of file dload_internal.h.

#define TRAMP_SYM_PREFIX   "__$dbTR__"

Definition at line 122 of file dload_internal.h.

#define TRAMP_SYM_PREFIX_LEN   9

Definition at line 125 of file dload_internal.h.

#define VARIABLE_SIZE   1

Definition at line 94 of file dload_internal.h.

Typedef Documentation

typedef s32 rvalue

Definition at line 27 of file dload_internal.h.

typedef u32 urvalue

Definition at line 30 of file dload_internal.h.

Enumeration Type Documentation

enum cinit_mode
Enumerator:
CI_COUNT 
CI_ADDRESS 
CI_COPY 
CI_DONE 

Definition at line 217 of file dload_internal.h.

Function Documentation

u32 dload_checksum ( void data,
unsigned  siz 
)

Definition at line 1404 of file cload.c.

void dload_error ( struct dload_state dlthis,
const char errtxt,
  ... 
)

Definition at line 63 of file cload.c.

void dload_headers ( struct dload_state dlthis)

Definition at line 321 of file cload.c.

void dload_relocate ( struct dload_state dlthis,
tgt_au_t data,
struct reloc_record_t rp,
bool tramps_generated,
bool  second_pass 
)

Definition at line 164 of file reloc.c.

void dload_reorder ( void data,
int  dsiz,
u32  map 
)

Definition at line 1375 of file cload.c.

int dload_repack ( struct dload_state dlthis,
rvalue  val,
tgt_au_t data,
int  fieldsz,
int  offset,
unsigned  sgn 
)

Definition at line 101 of file reloc.c.

void dload_sections ( struct dload_state dlthis)

Definition at line 428 of file cload.c.

void dload_strings ( struct dload_state dlthis,
bool  sec_names_only 
)

Definition at line 593 of file cload.c.

void dload_syms_error ( struct dynamic_loader_sym syms,
const char errtxt,
  ... 
)

Definition at line 86 of file cload.c.

bool dload_tramp_avail ( struct dload_state dlthis,
struct reloc_record_t rp 
)

Definition at line 850 of file tramp.c.

void dload_tramp_cleanup ( struct dload_state dlthis)

Definition at line 1083 of file tramp.c.

int dload_tramp_finalize ( struct dload_state dlthis)

Definition at line 1042 of file tramp.c.

int dload_tramp_generate ( struct dload_state dlthis,
s16  secnn,
u32  image_offset,
struct image_packet_t ipacket,
struct reloc_record_t rp 
)

Definition at line 873 of file tramp.c.

int dload_tramp_pkt_udpate ( struct dload_state dlthis,
s16  secnn,
u32  image_offset,
struct image_packet_t ipacket 
)

Definition at line 1008 of file tramp.c.

rvalue dload_unpack ( struct dload_state dlthis,
tgt_au_t data,
int  fieldsz,
int  offset,
unsigned  sgn 
)

Definition at line 48 of file reloc.c.