OpenOCD
mips64_pracc.h File Reference
Include dependency graph for mips64_pracc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOWER16(v)   ((uint32_t)(v & 0xFFFF))
 
#define MIPS64_FASTDATA_HANDLER_SIZE   0x80
 
#define MIPS64_PRACC_ADDR_STEP   4
 
#define MIPS64_PRACC_DATA_STEP   8
 
#define MIPS64_PRACC_FASTDATA_AREA   0xffffffffFF200000ull
 
#define MIPS64_PRACC_FASTDATA_SIZE   16
 
#define MIPS64_PRACC_PARAM_IN   0xffffffffFF201000ull
 
#define MIPS64_PRACC_PARAM_IN_SIZE   0x1000
 
#define MIPS64_PRACC_PARAM_OUT   (MIPS64_PRACC_PARAM_IN + MIPS64_PRACC_PARAM_IN_SIZE)
 
#define MIPS64_PRACC_PARAM_OUT_SIZE   0x1000
 
#define MIPS64_PRACC_STACK   0xffffffffFF204000ull
 
#define MIPS64_PRACC_TEXT   0xffffffffFF200200ull
 
#define NEG16(v)   ((uint32_t)(((~(v)) + 1) & 0xFFFF))
 
#define UPPER16(v)   ((uint32_t)((v >> 16) & 0xFFFF))
 

Functions

int mips64_pracc_exec (struct mips_ejtag *ejtag_info, unsigned int code_len, const uint32_t *code, unsigned int num_param_in, uint64_t *param_in, unsigned int num_param_out, uint64_t *param_out)
 
int mips64_pracc_fastdata_xfer (struct mips_ejtag *ejtag_info, struct working_area *source, bool write_t, uint64_t addr, unsigned int count, uint64_t *buf)
 
int mips64_pracc_read_mem (struct mips_ejtag *ejtag_info, uint64_t addr, unsigned int size, unsigned int count, void *buf)
 
int mips64_pracc_read_regs (struct mips_ejtag *ejtag_info, uint64_t *regs)
 
int mips64_pracc_write_mem (struct mips_ejtag *ejtag_info, uint64_t addr, unsigned int size, unsigned int count, void *buf)
 
int mips64_pracc_write_regs (struct mips_ejtag *ejtag_info, uint64_t *regs)
 

Macro Definition Documentation

◆ LOWER16

#define LOWER16 (   v)    ((uint32_t)(v & 0xFFFF))

Definition at line 31 of file mips64_pracc.h.

◆ MIPS64_FASTDATA_HANDLER_SIZE

#define MIPS64_FASTDATA_HANDLER_SIZE   0x80

Definition at line 34 of file mips64_pracc.h.

◆ MIPS64_PRACC_ADDR_STEP

#define MIPS64_PRACC_ADDR_STEP   4

Definition at line 40 of file mips64_pracc.h.

◆ MIPS64_PRACC_DATA_STEP

#define MIPS64_PRACC_DATA_STEP   8

Definition at line 41 of file mips64_pracc.h.

◆ MIPS64_PRACC_FASTDATA_AREA

#define MIPS64_PRACC_FASTDATA_AREA   0xffffffffFF200000ull

Definition at line 32 of file mips64_pracc.h.

◆ MIPS64_PRACC_FASTDATA_SIZE

#define MIPS64_PRACC_FASTDATA_SIZE   16

Definition at line 33 of file mips64_pracc.h.

◆ MIPS64_PRACC_PARAM_IN

#define MIPS64_PRACC_PARAM_IN   0xffffffffFF201000ull

Definition at line 23 of file mips64_pracc.h.

◆ MIPS64_PRACC_PARAM_IN_SIZE

#define MIPS64_PRACC_PARAM_IN_SIZE   0x1000

Definition at line 24 of file mips64_pracc.h.

◆ MIPS64_PRACC_PARAM_OUT

#define MIPS64_PRACC_PARAM_OUT   (MIPS64_PRACC_PARAM_IN + MIPS64_PRACC_PARAM_IN_SIZE)

Definition at line 25 of file mips64_pracc.h.

◆ MIPS64_PRACC_PARAM_OUT_SIZE

#define MIPS64_PRACC_PARAM_OUT_SIZE   0x1000

Definition at line 26 of file mips64_pracc.h.

◆ MIPS64_PRACC_STACK

#define MIPS64_PRACC_STACK   0xffffffffFF204000ull

Definition at line 22 of file mips64_pracc.h.

◆ MIPS64_PRACC_TEXT

#define MIPS64_PRACC_TEXT   0xffffffffFF200200ull

Definition at line 20 of file mips64_pracc.h.

◆ NEG16

#define NEG16 (   v)    ((uint32_t)(((~(v)) + 1) & 0xFFFF))

Definition at line 38 of file mips64_pracc.h.

◆ UPPER16

#define UPPER16 (   v)    ((uint32_t)((v >> 16) & 0xFFFF))

Definition at line 30 of file mips64_pracc.h.

Function Documentation

◆ mips64_pracc_exec()

◆ mips64_pracc_fastdata_xfer()

◆ mips64_pracc_read_mem()

int mips64_pracc_read_mem ( struct mips_ejtag ejtag_info,
uint64_t  addr,
unsigned int  size,
unsigned int  count,
void *  buf 
)

◆ mips64_pracc_read_regs()

◆ mips64_pracc_write_mem()

int mips64_pracc_write_mem ( struct mips_ejtag ejtag_info,
uint64_t  addr,
unsigned int  size,
unsigned int  count,
void *  buf 
)

◆ mips64_pracc_write_regs()