Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/cache/sources/wl/include/hndrte_debug.h
Views: 3959
/*1* HND Run Time Environment debug info area2*3* $Copyright Open Broadcom Corporation$4*5* $Id: hndrte_debug.h 342211 2012-07-02 02:23:04Z $6*/78#ifndef _HNDRTE_DEBUG_H9#define _HNDRTE_DEBUG_H1011/* Magic number at a magic location to find HNDRTE_DEBUG pointers */12#define HNDRTE_DEBUG_PTR_PTR_MAGIC 0x50504244 /* DBPP */1314#ifndef _LANGUAGE_ASSEMBLY1516/* Includes only when building dongle code */171819#define NUM_EVENT_LOG_SETS 42021/* We use explicit sizes here since this gets included from different22* systems. The sizes must be the size of the creating system23* (currently 32 bit ARM) since this is gleaned from dump.24*/2526/* Define pointers for use on other systems */27#define _HD_EVLOG_P uint3228#define _HD_CONS_P uint3229#define _HD_TRAP_P uint323031typedef struct hndrte_debug {32uint32 magic;33#define HNDRTE_DEBUG_MAGIC 0x47424544 /* 'DEBG' */3435uint32 version; /* Debug struct version */36#define HNDRTE_DEBUG_VERSION 13738uint32 fwid; /* 4 bytes of fw info */39char epivers[32];4041_HD_TRAP_P trap_ptr; /* trap_t data struct */42_HD_CONS_P console; /* Console */4344uint32 ram_base;45uint32 ram_size;4647uint32 rom_base;48uint32 rom_size;4950_HD_EVLOG_P event_log_top;5152} hndrte_debug_t;5354/*55* timeval_t and prstatus_t are copies of the Linux structures.56* Included here because we need the definitions for the target processor57* (32 bits) and not the definition on the host this is running on58* (which could be 64 bits).59*/6061typedef struct { /* Time value with microsecond resolution */62uint32 tv_sec; /* Seconds */63uint32 tv_usec; /* Microseconds */64} timeval_t;656667/* Linux/ARM 32 prstatus for notes section */68typedef struct prstatus {69int32 si_signo; /* Signal number */70int32 si_code; /* Extra code */71int32 si_errno; /* Errno */72uint16 pr_cursig; /* Current signal. */73uint16 unused;74uint32 pr_sigpend; /* Set of pending signals. */75uint32 pr_sighold; /* Set of held signals. */76uint32 pr_pid;77uint32 pr_ppid;78uint32 pr_pgrp;79uint32 pr_sid;80timeval_t pr_utime; /* User time. */81timeval_t pr_stime; /* System time. */82timeval_t pr_cutime; /* Cumulative user time. */83timeval_t pr_cstime; /* Cumulative system time. */84uint32 uregs[18];85int32 pr_fpvalid; /* True if math copro being used. */86} prstatus_t;8788#ifdef __GNUC__89extern hndrte_debug_t hndrte_debug_info __attribute__ ((weak));90#endif /* __GNUC__ */9192#endif /* !LANGUAGE_ASSEMBLY */9394#endif /* _HNDRTE_DEBUG_H */959697