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

Go to the source code of this file.

Data Structures

struct  altera_jtag
 
struct  altera_state
 

Macros

#define ALTERA_STACK_SIZE   128
 
#define ALTERA_MESSAGE_LENGTH   1024
 

Enumerations

enum  altera_jtag_state {
  ILLEGAL_JTAG_STATE = -1, RESET = 0, IDLE = 1, DRSELECT = 2,
  DRCAPTURE = 3, DRSHIFT = 4, DREXIT1 = 5, DRPAUSE = 6,
  DREXIT2 = 7, DRUPDATE = 8, IRSELECT = 9, IRCAPTURE = 10,
  IRSHIFT = 11, IREXIT1 = 12, IRPAUSE = 13, IREXIT2 = 14,
  IRUPDATE = 15
}
 

Functions

int altera_jinit (struct altera_state *astate)
 
int altera_set_drstop (struct altera_jtag *js, enum altera_jtag_state state)
 
int altera_set_irstop (struct altera_jtag *js, enum altera_jtag_state state)
 
int altera_set_dr_pre (struct altera_jtag *js, u32 count, u32 start_index, u8 *preamble_data)
 
int altera_set_ir_pre (struct altera_jtag *js, u32 count, u32 start_index, u8 *preamble_data)
 
int altera_set_dr_post (struct altera_jtag *js, u32 count, u32 start_index, u8 *postamble_data)
 
int altera_set_ir_post (struct altera_jtag *js, u32 count, u32 start_index, u8 *postamble_data)
 
int altera_goto_jstate (struct altera_state *astate, enum altera_jtag_state state)
 
int altera_wait_cycles (struct altera_state *astate, s32 cycles, enum altera_jtag_state wait_state)
 
int altera_wait_msecs (struct altera_state *astate, s32 microseconds, enum altera_jtag_state wait_state)
 
int altera_irscan (struct altera_state *astate, u32 count, u8 *tdi_data, u32 start_index)
 
int altera_swap_ir (struct altera_state *astate, u32 count, u8 *in_data, u32 in_index, u8 *out_data, u32 out_index)
 
int altera_drscan (struct altera_state *astate, u32 count, u8 *tdi_data, u32 start_index)
 
int altera_swap_dr (struct altera_state *astate, u32 count, u8 *in_data, u32 in_index, u8 *out_data, u32 out_index)
 
void altera_free_buffers (struct altera_state *astate)
 

Macro Definition Documentation

#define ALTERA_MESSAGE_LENGTH   1024

Definition at line 75 of file altera-jtag.h.

#define ALTERA_STACK_SIZE   128

Definition at line 74 of file altera-jtag.h.

Enumeration Type Documentation

Enumerator:
ILLEGAL_JTAG_STATE 
RESET 
IDLE 
DRSELECT 
DRCAPTURE 
DRSHIFT 
DREXIT1 
DRPAUSE 
DREXIT2 
DRUPDATE 
IRSELECT 
IRCAPTURE 
IRSHIFT 
IREXIT1 
IRPAUSE 
IREXIT2 
IRUPDATE 

Definition at line 30 of file altera-jtag.h.

Function Documentation

int altera_drscan ( struct altera_state astate,
u32  count,
u8 tdi_data,
u32  start_index 
)

Definition at line 800 of file altera-jtag.c.

void altera_free_buffers ( struct altera_state astate)

Definition at line 997 of file altera-jtag.c.

int altera_goto_jstate ( struct altera_state astate,
enum altera_jtag_state  state 
)

Definition at line 299 of file altera-jtag.c.

int altera_irscan ( struct altera_state astate,
u32  count,
u8 tdi_data,
u32  start_index 
)

Definition at line 597 of file altera-jtag.c.

int altera_jinit ( struct altera_state astate)

Definition at line 89 of file altera-jtag.c.

int altera_set_dr_post ( struct altera_jtag js,
u32  count,
u32  start_index,
u8 postamble_data 
)

Definition at line 207 of file altera-jtag.c.

int altera_set_dr_pre ( struct altera_jtag js,
u32  count,
u32  start_index,
u8 preamble_data 
)

Definition at line 130 of file altera-jtag.c.

int altera_set_drstop ( struct altera_jtag js,
enum altera_jtag_state  state 
)

Definition at line 116 of file altera-jtag.c.

int altera_set_ir_post ( struct altera_jtag js,
u32  count,
u32  start_index,
u8 postamble_data 
)

Definition at line 247 of file altera-jtag.c.

int altera_set_ir_pre ( struct altera_jtag js,
u32  count,
u32  start_index,
u8 preamble_data 
)

Definition at line 169 of file altera-jtag.c.

int altera_set_irstop ( struct altera_jtag js,
enum altera_jtag_state  state 
)

Definition at line 123 of file altera-jtag.c.

int altera_swap_dr ( struct altera_state astate,
u32  count,
u8 in_data,
u32  in_index,
u8 out_data,
u32  out_index 
)

Definition at line 892 of file altera-jtag.c.

int altera_swap_ir ( struct altera_state astate,
u32  count,
u8 in_data,
u32  in_index,
u8 out_data,
u32  out_index 
)

Definition at line 694 of file altera-jtag.c.

int altera_wait_cycles ( struct altera_state astate,
s32  cycles,
enum altera_jtag_state  wait_state 
)

Definition at line 351 of file altera-jtag.c.

int altera_wait_msecs ( struct altera_state astate,
s32  microseconds,
enum altera_jtag_state  wait_state 
)

Definition at line 378 of file altera-jtag.c.