Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sym_fw.h File Reference

Go to the source code of this file.

Data Structures

struct  sym_fwa_ofs
 
struct  sym_fwb_ofs
 
struct  sym_fwz_ofs
 
struct  sym_fwa_ba
 
struct  sym_fwb_ba
 
struct  sym_fwz_ba
 
struct  sym_fw
 

Macros

#define SYM_GEN_FW_A(s)
 
#define SYM_GEN_FW_B(s)
 
#define SYM_GEN_FW_Z(s)   SYM_GEN_Z(s, snooptest) SYM_GEN_Z(s, snoopend)
 
#define SYM_GEN_A(s, label)   s label;
 
#define SYM_GEN_B(s, label)   s label;
 
#define SYM_GEN_Z(s, label)   s label;
 
#define SYM_FW_ENTRY(fw, name)
 
#define SCRIPTA_BA(np, label)   (np->fwa_bas.label)
 
#define SCRIPTB_BA(np, label)   (np->fwb_bas.label)
 
#define SCRIPTZ_BA(np, label)   (np->fwz_bas.label)
 
#define RELOC_SOFTC   0x40000000
 
#define RELOC_LABEL_A   0x50000000
 
#define RELOC_REGISTER   0x60000000
 
#define RELOC_LABEL_B   0x80000000
 
#define RELOC_MASK   0xf0000000
 
#define HADDR_1(label)   (RELOC_SOFTC | offsetof(struct sym_hcb, label))
 
#define HADDR_2(label, ofs)
 
#define RADDR_1(label)   (RELOC_REGISTER | REG(label))
 
#define RADDR_2(label, ofs)   (RELOC_REGISTER | ((REG(label))+(ofs)))
 
#define SYM_GEN_PADDR_A(s, label)   (RELOC_LABEL_A | offsetof(s, label))
 
#define SYM_GEN_PADDR_B(s, label)   (RELOC_LABEL_B | offsetof(s, label))
 
#define SCR_DATA_ZERO   0xf00ff00f
 

Macro Definition Documentation

#define HADDR_1 (   label)    (RELOC_SOFTC | offsetof(struct sym_hcb, label))

Definition at line 194 of file sym_fw.h.

#define HADDR_2 (   label,
  ofs 
)
Value:
(offsetof(struct sym_hcb, label)+(ofs)))

Definition at line 195 of file sym_fw.h.

#define RADDR_1 (   label)    (RELOC_REGISTER | REG(label))

Definition at line 197 of file sym_fw.h.

#define RADDR_2 (   label,
  ofs 
)    (RELOC_REGISTER | ((REG(label))+(ofs)))

Definition at line 198 of file sym_fw.h.

#define RELOC_LABEL_A   0x50000000

Definition at line 189 of file sym_fw.h.

#define RELOC_LABEL_B   0x80000000

Definition at line 191 of file sym_fw.h.

#define RELOC_MASK   0xf0000000

Definition at line 192 of file sym_fw.h.

#define RELOC_REGISTER   0x60000000

Definition at line 190 of file sym_fw.h.

#define RELOC_SOFTC   0x40000000

Definition at line 188 of file sym_fw.h.

#define SCR_DATA_ZERO   0xf00ff00f

Definition at line 203 of file sym_fw.h.

#define SCRIPTA_BA (   np,
  label 
)    (np->fwa_bas.label)

Definition at line 165 of file sym_fw.h.

#define SCRIPTB_BA (   np,
  label 
)    (np->fwb_bas.label)

Definition at line 166 of file sym_fw.h.

#define SCRIPTZ_BA (   np,
  label 
)    (np->fwz_bas.label)

Definition at line 167 of file sym_fw.h.

#define SYM_FW_ENTRY (   fw,
  name 
)
Value:
{ \
name, \
(u32 *) &fw##a_scr, sizeof(fw##a_scr), &fw##a_ofs, \
(u32 *) &fw##b_scr, sizeof(fw##b_scr), &fw##b_ofs, \
(u32 *) &fw##z_scr, sizeof(fw##z_scr), &fw##z_ofs, \
fw##_setup, fw##_patch \
}

Definition at line 152 of file sym_fw.h.

#define SYM_GEN_A (   s,
  label 
)    s label;

Definition at line 87 of file sym_fw.h.

#define SYM_GEN_B (   s,
  label 
)    s label;

Definition at line 88 of file sym_fw.h.

#define SYM_GEN_FW_A (   s)
Value:
SYM_GEN_A(s, start) SYM_GEN_A(s, getjob_begin) \
SYM_GEN_A(s, getjob_end) \
SYM_GEN_A(s, select) SYM_GEN_A(s, wf_sel_done) \
SYM_GEN_A(s, send_ident) \
SYM_GEN_A(s, dispatch) SYM_GEN_A(s, init) \
SYM_GEN_A(s, clrack) SYM_GEN_A(s, complete_error) \
SYM_GEN_A(s, done) SYM_GEN_A(s, done_end) \
SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \
SYM_GEN_A(s, reselect) \
SYM_GEN_A(s, resel_tag) SYM_GEN_A(s, resel_dsa) \
SYM_GEN_A(s, resel_no_tag) \
SYM_GEN_A(s, data_in) SYM_GEN_A(s, data_in2) \
SYM_GEN_A(s, data_out) SYM_GEN_A(s, data_out2) \
SYM_GEN_A(s, pm0_data) SYM_GEN_A(s, pm1_data)

Definition at line 45 of file sym_fw.h.

#define SYM_GEN_FW_B (   s)
Value:
SYM_GEN_B(s, no_data) \
SYM_GEN_B(s, sel_for_abort) SYM_GEN_B(s, sel_for_abort_1) \
SYM_GEN_B(s, msg_bad) SYM_GEN_B(s, msg_weird) \
SYM_GEN_B(s, wdtr_resp) SYM_GEN_B(s, send_wdtr) \
SYM_GEN_B(s, sdtr_resp) SYM_GEN_B(s, send_sdtr) \
SYM_GEN_B(s, ppr_resp) SYM_GEN_B(s, send_ppr) \
SYM_GEN_B(s, nego_bad_phase) \
SYM_GEN_B(s, ident_break) SYM_GEN_B(s, ident_break_atn) \
SYM_GEN_B(s, sdata_in) SYM_GEN_B(s, resel_bad_lun) \
SYM_GEN_B(s, bad_i_t_l) SYM_GEN_B(s, bad_i_t_l_q) \
SYM_GEN_B(s, wsr_ma_helper)

Definition at line 64 of file sym_fw.h.

#define SYM_GEN_FW_Z (   s)    SYM_GEN_Z(s, snooptest) SYM_GEN_Z(s, snoopend)

Definition at line 80 of file sym_fw.h.

#define SYM_GEN_PADDR_A (   s,
  label 
)    (RELOC_LABEL_A | offsetof(s, label))

Definition at line 200 of file sym_fw.h.

#define SYM_GEN_PADDR_B (   s,
  label 
)    (RELOC_LABEL_B | offsetof(s, label))

Definition at line 201 of file sym_fw.h.

#define SYM_GEN_Z (   s,
  label 
)    s label;

Definition at line 89 of file sym_fw.h.