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

Go to the source code of this file.

Data Structures

struct  lakemont_core_reg
 
struct  scan_blk
 

Macros

#define BP_SIZE   1
 
#define BYPASS   255
 
#define DELAY_SUBMITPIR   0 /* for now 0 is working */
 
#define I(name)   (((struct lakemont_core_reg *)x86_32->cache->reg_list[name].arch_info)->pm_idx)
 
#define ID_SIZE   32
 
#define IDCODE   2
 
#define LMT_IRLEN   8
 
#define MAX_SCAN_SIZE   PIR_SIZE
 
#define NOT_AVAIL_REG   0xff
 
#define NOT_NULL   2
 
#define NOT_PMREG   0xfe
 
#define PDR_SIZE   32
 
#define PIR_SIZE   64
 
#define PM_DR7   ((uint32_t)0x00000400)
 
#define PM_DSAR   ((uint32_t)0x004F9300)
 
#define PM_DSB   ((uint32_t)0x00000000)
 
#define PM_DSL   ((uint32_t)0xFFFFFFFF)
 
#define PM_SIZE   1
 
#define PROBEMODE   4
 
#define RDWRPDR   8
 
#define SUBMITPIR   3
 
#define TAPSTATUS   11
 
#define TS_EN_PM_BIT   ((uint32_t)0x00000002)
 
#define TS_PM_BIT   ((uint32_t)0x00000004)
 
#define TS_PMCR_BIT   ((uint32_t)0x00000008)
 
#define TS_PRDY_BIT   ((uint32_t)0x00000001)
 
#define TS_SBP_BIT   ((uint32_t)0x00000010)
 
#define TS_SIZE   32
 
#define WRPIR   6
 

Functions

int lakemont_arch_state (struct target *t)
 
int lakemont_halt (struct target *t)
 
int lakemont_init_arch_info (struct target *t, struct x86_32_common *x86_32)
 
int lakemont_init_target (struct command_context *cmd_ctx, struct target *t)
 
int lakemont_poll (struct target *t)
 
int lakemont_reset_assert (struct target *t)
 
int lakemont_reset_deassert (struct target *t)
 
int lakemont_resume (struct target *t, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
 
int lakemont_step (struct target *t, int current, target_addr_t address, int handle_breakpoints)
 
int lakemont_update_after_probemode_entry (struct target *t)
 

Macro Definition Documentation

◆ BP_SIZE

#define BP_SIZE   1

Definition at line 47 of file lakemont.h.

◆ BYPASS

#define BYPASS   255

Definition at line 38 of file lakemont.h.

◆ DELAY_SUBMITPIR

#define DELAY_SUBMITPIR   0 /* for now 0 is working */

Definition at line 57 of file lakemont.h.

◆ I

#define I (   name)    (((struct lakemont_core_reg *)x86_32->cache->reg_list[name].arch_info)->pm_idx)

Definition at line 80 of file lakemont.h.

◆ ID_SIZE

#define ID_SIZE   32

Definition at line 42 of file lakemont.h.

◆ IDCODE

#define IDCODE   2

Definition at line 32 of file lakemont.h.

◆ LMT_IRLEN

#define LMT_IRLEN   8

Definition at line 29 of file lakemont.h.

◆ MAX_SCAN_SIZE

#define MAX_SCAN_SIZE   PIR_SIZE

Definition at line 48 of file lakemont.h.

◆ NOT_AVAIL_REG

#define NOT_AVAIL_REG   0xff

Definition at line 52 of file lakemont.h.

◆ NOT_NULL

#define NOT_NULL   2

Definition at line 39 of file lakemont.h.

◆ NOT_PMREG

#define NOT_PMREG   0xfe

Definition at line 51 of file lakemont.h.

◆ PDR_SIZE

#define PDR_SIZE   32

Definition at line 45 of file lakemont.h.

◆ PIR_SIZE

#define PIR_SIZE   64

Definition at line 44 of file lakemont.h.

◆ PM_DR7

#define PM_DR7   ((uint32_t)0x00000400)

Definition at line 56 of file lakemont.h.

◆ PM_DSAR

#define PM_DSAR   ((uint32_t)0x004F9300)

Definition at line 55 of file lakemont.h.

◆ PM_DSB

#define PM_DSB   ((uint32_t)0x00000000)

Definition at line 53 of file lakemont.h.

◆ PM_DSL

#define PM_DSL   ((uint32_t)0xFFFFFFFF)

Definition at line 54 of file lakemont.h.

◆ PM_SIZE

#define PM_SIZE   1

Definition at line 43 of file lakemont.h.

◆ PROBEMODE

#define PROBEMODE   4

Definition at line 34 of file lakemont.h.

◆ RDWRPDR

#define RDWRPDR   8

Definition at line 36 of file lakemont.h.

◆ SUBMITPIR

#define SUBMITPIR   3

Definition at line 33 of file lakemont.h.

◆ TAPSTATUS

#define TAPSTATUS   11

Definition at line 37 of file lakemont.h.

◆ TS_EN_PM_BIT

#define TS_EN_PM_BIT   ((uint32_t)0x00000002)

Definition at line 61 of file lakemont.h.

◆ TS_PM_BIT

#define TS_PM_BIT   ((uint32_t)0x00000004)

Definition at line 62 of file lakemont.h.

◆ TS_PMCR_BIT

#define TS_PMCR_BIT   ((uint32_t)0x00000008)

Definition at line 63 of file lakemont.h.

◆ TS_PRDY_BIT

#define TS_PRDY_BIT   ((uint32_t)0x00000001)

Definition at line 60 of file lakemont.h.

◆ TS_SBP_BIT

#define TS_SBP_BIT   ((uint32_t)0x00000010)

Definition at line 64 of file lakemont.h.

◆ TS_SIZE

#define TS_SIZE   32

Definition at line 46 of file lakemont.h.

◆ WRPIR

#define WRPIR   6

Definition at line 35 of file lakemont.h.

Function Documentation

◆ lakemont_arch_state()

int lakemont_arch_state ( struct target t)

◆ lakemont_halt()

int lakemont_halt ( struct target t)

◆ lakemont_init_arch_info()

◆ lakemont_init_target()

int lakemont_init_target ( struct command_context cmd_ctx,
struct target t 
)

◆ lakemont_poll()

◆ lakemont_reset_assert()

◆ lakemont_reset_deassert()

◆ lakemont_resume()

◆ lakemont_step()

◆ lakemont_update_after_probemode_entry()

int lakemont_update_after_probemode_entry ( struct target t)