OpenOCD
chromium-ec.c File Reference
Include dependency graph for chromium-ec.c:

Go to the source code of this file.

Data Structures

struct  chromium_ec_params
 

Macros

#define CROS_EC_IDLE_STRING   "<< idle >>"
 
#define CROS_EC_MAX_BUILDINFO   512
 
#define CROS_EC_MAX_NAME   200
 
#define CROS_EC_MAX_TASKS   32
 

Enumerations

enum  chromium_ec_symbol_values {
  CHROMIUM_EC_VAL_START_CALLED = 0 , CHROMIUM_EC_VAL_CURRENT_TASK , CHROMIUM_EC_VAL_TASKS , CHROMIUM_EC_VAL_TASKS_ENABLED ,
  CHROMIUM_EC_VAL_TASKS_READY , CHROMIUM_EC_VAL_TASK_NAMES , CHROMIUM_EC_VAL_BUILD_INFO , CHROMIUM_EC_VAL_COUNT
}
 

Functions

static int chromium_ec_create (struct target *target)
 
static bool chromium_ec_detect_rtos (struct target *target)
 
static int chromium_ec_get_current_task_ptr (struct rtos *rtos, uint32_t *current_task)
 
static int chromium_ec_get_num_tasks (struct rtos *rtos, int *num_tasks)
 
static int chromium_ec_get_symbol_list_to_lookup (struct symbol_table_elem *symbol_list[])
 
static int chromium_ec_get_thread_reg_list (struct rtos *rtos, threadid_t threadid, struct rtos_reg **reg_list, int *num_regs)
 
static int chromium_ec_update_threads (struct rtos *rtos)
 

Variables

static const struct chromium_ec_params chromium_ec_params_list []
 
const struct rtos_type chromium_ec_rtos
 
static const char *const chromium_ec_symbol_list []
 

Macro Definition Documentation

◆ CROS_EC_IDLE_STRING

#define CROS_EC_IDLE_STRING   "<< idle >>"

Definition at line 23 of file chromium-ec.c.

◆ CROS_EC_MAX_BUILDINFO

#define CROS_EC_MAX_BUILDINFO   512

Definition at line 80 of file chromium-ec.c.

◆ CROS_EC_MAX_NAME

#define CROS_EC_MAX_NAME   200

Definition at line 22 of file chromium-ec.c.

◆ CROS_EC_MAX_TASKS

#define CROS_EC_MAX_TASKS   32

Definition at line 21 of file chromium-ec.c.

Enumeration Type Documentation

◆ chromium_ec_symbol_values

Enumerator
CHROMIUM_EC_VAL_START_CALLED 
CHROMIUM_EC_VAL_CURRENT_TASK 
CHROMIUM_EC_VAL_TASKS 
CHROMIUM_EC_VAL_TASKS_ENABLED 
CHROMIUM_EC_VAL_TASKS_READY 
CHROMIUM_EC_VAL_TASK_NAMES 
CHROMIUM_EC_VAL_BUILD_INFO 
CHROMIUM_EC_VAL_COUNT 

Definition at line 68 of file chromium-ec.c.

Function Documentation

◆ chromium_ec_create()

◆ chromium_ec_detect_rtos()

◆ chromium_ec_get_current_task_ptr()

static int chromium_ec_get_current_task_ptr ( struct rtos rtos,
uint32_t *  current_task 
)
static

◆ chromium_ec_get_num_tasks()

static int chromium_ec_get_num_tasks ( struct rtos rtos,
int *  num_tasks 
)
static

◆ chromium_ec_get_symbol_list_to_lookup()

static int chromium_ec_get_symbol_list_to_lookup ( struct symbol_table_elem symbol_list[])
static

Definition at line 367 of file chromium-ec.c.

References ARRAY_SIZE, chromium_ec_symbol_list, ERROR_FAIL, ERROR_OK, and LOG_ERROR.

◆ chromium_ec_get_thread_reg_list()

◆ chromium_ec_update_threads()

Variable Documentation

◆ chromium_ec_params_list

const struct chromium_ec_params chromium_ec_params_list[]
static
Initial value:
= {
{
.target_name = "hla_target",
.ptr_size = 4,
.task_offset_next = 24,
.task_offset_sp = 0,
.task_offset_events = 4,
.task_offset_runtime = 8,
},
{
.target_name = "cortex_m",
.ptr_size = 4,
.task_offset_next = 24,
.task_offset_sp = 0,
.task_offset_events = 4,
.task_offset_runtime = 8,
},
}
const struct rtos_register_stacking rtos_standard_cortex_m3_stacking

Definition at line 1 of file chromium-ec.c.

Referenced by chromium_ec_create().

◆ chromium_ec_rtos

const struct rtos_type chromium_ec_rtos
Initial value:
= {
.name = "Chromium-EC",
.detect_rtos = chromium_ec_detect_rtos,
.create = chromium_ec_create,
.update_threads = chromium_ec_update_threads,
.get_thread_reg_list = chromium_ec_get_thread_reg_list,
.get_symbol_list_to_lookup = chromium_ec_get_symbol_list_to_lookup,
}
static int chromium_ec_get_symbol_list_to_lookup(struct symbol_table_elem *symbol_list[])
Definition: chromium-ec.c:367
static int chromium_ec_update_threads(struct rtos *rtos)
Definition: chromium-ec.c:177
static bool chromium_ec_detect_rtos(struct target *target)
Definition: chromium-ec.c:82
static int chromium_ec_create(struct target *target)
Definition: chromium-ec.c:117
static int chromium_ec_get_thread_reg_list(struct rtos *rtos, threadid_t threadid, struct rtos_reg **reg_list, int *num_regs)
Definition: chromium-ec.c:337

Definition at line 367 of file chromium-ec.c.

◆ chromium_ec_symbol_list

const char* const chromium_ec_symbol_list[]
static
Initial value:
= {
"start_called",
"current_task",
"tasks",
"tasks_enabled",
"tasks_ready",
"task_names",
"build_info",
}
#define NULL
Definition: usb.h:16

Definition at line 57 of file chromium-ec.c.

Referenced by chromium_ec_detect_rtos(), and chromium_ec_get_symbol_list_to_lookup().