type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
functions | int
gdb_check_format (bfd *abfd)
{
struct core_fns *cf;
for (cf = core_file_fns; cf != NULL; cf = cf->next)
{
if (cf->check_format (abfd))
{
return (1);
} |
functions | void
core_close (struct target_ops *self)
{
if (core_bfd)
{
int pid = ptid_get_pid (inferior_ptid);
inferior_ptid = null_ptid; /* Avoid confusion from thread
stuff. */
if (pid != 0)
exit_inferior_silent (pid);
/* Clear out solib state while the bfd is still open. See
... |
functions | void
core_close_cleanup (void *ignore)
{
core_close (NULL);
} |
functions | void
add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg)
{
ptid_t ptid;
int core_tid;
int pid, lwpid;
asection *reg_sect = (asection *) reg_sect_arg;
int fake_pid_p = 0;
struct inferior *inf;
if (!startswith (bfd_section_name (abfd, asect), ".reg/"))
return;
core_tid = atoi (bfd_se... |
functions | void
core_open (const char *arg, int from_tty)
{
const char *p;
int siggy;
struct cleanup *old_chain;
char *temp;
bfd *temp_bfd;
int scratch_chan;
int flags;
char *filename;
target_preopen (from_tty);
if (!arg)
{
if (core_bfd)
error (_("No core file specified. (Use `detach' "
"to sto... |
functions | void
core_detach (struct target_ops *ops, const char *args, int from_tty)
{
if (args)
error (_("Too many arguments"));
unpush_target (ops);
reinit_frame_cache ();
if (from_tty)
printf_filtered (_("No core file now.\n"));
} |
functions | void
get_core_register_section (struct regcache *regcache,
const struct regset *regset,
const char *name,
int min_size,
int which,
const char *human_name,
int required)
{
static char *section_name = NULL;
struct bfd_section *section;
bfd_size_type size;
char *contents;
xfr... |
functions | void
get_core_registers_cb (const char *sect_name, int size,
const struct regset *regset,
const char *human_name, void *cb_data)
{
struct regcache *regcache = (struct regcache *) cb_data;
int required = 0;
if (strcmp (sect_name, ".reg") == 0)
{
required = 1;
if (human_name == NU... |
functions | void
get_core_registers (struct target_ops *ops,
struct regcache *regcache, int regno)
{
int i;
struct gdbarch *gdbarch;
if (!(core_gdbarch && gdbarch_iterate_over_regset_sections_p (core_gdbarch))
&& (core_vec == NULL || core_vec->core_read_registers == NULL))
{
fprintf_filtered (gdb_stder... |
functions | void
core_files_info (struct target_ops *t)
{
print_section_info (core_data, core_bfd);
} |
functions | void
add_to_spuid_list (bfd *abfd, asection *asect, void *list_p)
{
struct spuid_list *list = list_p;
enum bfd_endian byte_order
= bfd_big_endian (abfd) ? BFD_ENDIAN_BIG : BFD_ENDIAN_LITTLE;
int fd, pos = 0;
sscanf (bfd_section_name (abfd, asect), "SPU/%d/regs%n", &fd, &pos);
if (pos == 0)
return;
... |
functions | LONGEST
get_core_siginfo (bfd *abfd, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
{
asection *section;
char *section_name;
const char *name = ".note.linuxcore.siginfo";
if (ptid_get_lwp (inferior_ptid))
section_name = xstrprintf ("%s/%ld", name,
ptid_get_lwp (inferior_ptid));
else
sect... |
functions | target_xfer_status
core_xfer_partial (struct target_ops *ops, enum target_object object,
const char *annex, gdb_byte *readbuf,
const gdb_byte *writebuf, ULONGEST offset,
ULONGEST len, ULONGEST *xfered_len)
{
switch (object)
{
case TARGET_OBJECT_MEMORY:
return section_table_xfer_memory_par... |
functions | else if (readbuf)
{
/* NULL annex requests list of all present spuids. */
struct spuid_list list;
list.buf = readbuf;
list.offset = offset;
list.len = len;
list.pos = 0;
list.written = 0;
bfd_map_over_sections (core_bfd, add_to_spuid_list, &list);
if (list.written == 0)
return TARGET... |
functions | int
ignore (struct target_ops *ops, struct gdbarch *gdbarch,
struct bp_target_info *bp_tgt)
{
return 0;
} |
functions | int
core_thread_alive (struct target_ops *ops, ptid_t ptid)
{
return 1;
} |
functions | int
core_has_memory (struct target_ops *ops)
{
return (core_bfd != NULL);
} |
functions | int
core_has_stack (struct target_ops *ops)
{
return (core_bfd != NULL);
} |
functions | int
core_has_registers (struct target_ops *ops)
{
return (core_bfd != NULL);
} |
functions | void
core_info_proc (struct target_ops *ops, const char *args,
enum info_proc_what request)
{
struct gdbarch *gdbarch = get_current_arch ();
/* Since this is the core file target, call the 'core_info_proc'
method on gdbarch, not 'info_proc'. */
if (gdbarch_core_info_proc_p (gdbarch))
gdbarch_core_inf... |
functions | void
init_core_ops (void)
{
core_ops.to_shortname = "core";
core_ops.to_longname = "Local core dump file";
core_ops.to_doc =
"Use a core file as a target. Specify the filename of the core file.";
core_ops.to_open = core_open;
core_ops.to_close = core_close;
core_ops.to_detach = core_detach;
core_ops.... |
functions | void
_initialize_corelow (void)
{
init_core_ops ();
add_target_with_completer (&core_ops, filename_completer);
} |
includes |
#include <linux/bitfield.h> |
includes | #include <linux/clk.h> |
includes | #include <linux/clk-provider.h> |
includes | #include <linux/delay.h> |
includes | #include <linux/io.h> |
includes | #include <linux/iio/iio.h> |
includes | #include <linux/module.h> |
includes | #include <linux/of.h> |
includes | #include <linux/of_device.h> |
includes | #include <linux/platform_device.h> |
includes | #include <linux/regmap.h> |
includes | #include <linux/regulator/consumer.h> |
defines |
#define MESON_SAR_ADC_REG0 0x00 |
defines | #define MESON_SAR_ADC_REG0_PANEL_DETECT BIT(31) |
defines | #define MESON_SAR_ADC_REG0_BUSY_MASK GENMASK(30, 28) |
defines | #define MESON_SAR_ADC_REG0_DELTA_BUSY BIT(30) |
defines | #define MESON_SAR_ADC_REG0_AVG_BUSY BIT(29) |
defines | #define MESON_SAR_ADC_REG0_SAMPLE_BUSY BIT(28) |
defines | #define MESON_SAR_ADC_REG0_FIFO_FULL BIT(27) |
defines | #define MESON_SAR_ADC_REG0_FIFO_EMPTY BIT(26) |
defines | #define MESON_SAR_ADC_REG0_FIFO_COUNT_MASK GENMASK(25, 21) |
defines | #define MESON_SAR_ADC_REG0_ADC_BIAS_CTRL_MASK GENMASK(20, 19) |
defines | #define MESON_SAR_ADC_REG0_CURR_CHAN_ID_MASK GENMASK(18, 16) |
defines | #define MESON_SAR_ADC_REG0_ADC_TEMP_SEN_SEL BIT(15) |
defines | #define MESON_SAR_ADC_REG0_SAMPLING_STOP BIT(14) |
defines | #define MESON_SAR_ADC_REG0_CHAN_DELTA_EN_MASK GENMASK(13, 12) |
defines | #define MESON_SAR_ADC_REG0_DETECT_IRQ_POL BIT(10) |
defines | #define MESON_SAR_ADC_REG0_DETECT_IRQ_EN BIT(9) |
defines | #define MESON_SAR_ADC_REG0_FIFO_CNT_IRQ_MASK GENMASK(8, 4) |
defines | #define MESON_SAR_ADC_REG0_FIFO_IRQ_EN BIT(3) |
defines | #define MESON_SAR_ADC_REG0_SAMPLING_START BIT(2) |
defines | #define MESON_SAR_ADC_REG0_CONTINUOUS_EN BIT(1) |
defines | #define MESON_SAR_ADC_REG0_SAMPLE_ENGINE_ENABLE BIT(0) |
defines |
#define MESON_SAR_ADC_CHAN_LIST 0x04 |
defines | #define MESON_SAR_ADC_CHAN_LIST_MAX_INDEX_MASK GENMASK(26, 24) |
defines | #define MESON_SAR_ADC_CHAN_LIST_ENTRY_MASK(_chan) \ |
defines |
#define MESON_SAR_ADC_AVG_CNTL 0x08 |
defines | #define MESON_SAR_ADC_AVG_CNTL_AVG_MODE_SHIFT(_chan) \ |
defines | #define MESON_SAR_ADC_AVG_CNTL_AVG_MODE_MASK(_chan) \ |
defines | #define MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_SHIFT(_chan) \ |
defines | #define MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_MASK(_chan) \ |
defines |
#define MESON_SAR_ADC_REG3 0x0c |
defines | #define MESON_SAR_ADC_REG3_CNTL_USE_SC_DLY BIT(31) |
defines | #define MESON_SAR_ADC_REG3_CLK_EN BIT(30) |
defines | #define MESON_SAR_ADC_REG3_BL30_INITIALIZED BIT(28) |
defines | #define MESON_SAR_ADC_REG3_CTRL_CONT_RING_COUNTER_EN BIT(27) |
defines | #define MESON_SAR_ADC_REG3_CTRL_SAMPLING_CLOCK_PHASE BIT(26) |
defines | #define MESON_SAR_ADC_REG3_CTRL_CHAN7_MUX_SEL_MASK GENMASK(25, 23) |
defines | #define MESON_SAR_ADC_REG3_DETECT_EN BIT(22) |
defines | #define MESON_SAR_ADC_REG3_ADC_EN BIT(21) |
defines | #define MESON_SAR_ADC_REG3_PANEL_DETECT_COUNT_MASK GENMASK(20, 18) |
defines | #define MESON_SAR_ADC_REG3_PANEL_DETECT_FILTER_TB_MASK GENMASK(17, 16) |
defines | #define MESON_SAR_ADC_REG3_ADC_CLK_DIV_SHIFT 10 |
defines | #define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH 5 |
defines | #define MESON_SAR_ADC_REG3_BLOCK_DLY_SEL_MASK GENMASK(9, 8) |
defines | #define MESON_SAR_ADC_REG3_BLOCK_DLY_MASK GENMASK(7, 0) |
defines |
#define MESON_SAR_ADC_DELAY 0x10 |
defines | #define MESON_SAR_ADC_DELAY_INPUT_DLY_SEL_MASK GENMASK(25, 24) |
defines | #define MESON_SAR_ADC_DELAY_BL30_BUSY BIT(15) |
defines | #define MESON_SAR_ADC_DELAY_KERNEL_BUSY BIT(14) |
defines | #define MESON_SAR_ADC_DELAY_INPUT_DLY_CNT_MASK GENMASK(23, 16) |
defines | #define MESON_SAR_ADC_DELAY_SAMPLE_DLY_SEL_MASK GENMASK(9, 8) |
defines | #define MESON_SAR_ADC_DELAY_SAMPLE_DLY_CNT_MASK GENMASK(7, 0) |
defines |
#define MESON_SAR_ADC_LAST_RD 0x14 |
defines | #define MESON_SAR_ADC_LAST_RD_LAST_CHANNEL1_MASK GENMASK(23, 16) |
defines | #define MESON_SAR_ADC_LAST_RD_LAST_CHANNEL0_MASK GENMASK(9, 0) |
defines |
#define MESON_SAR_ADC_FIFO_RD 0x18 |
defines | #define MESON_SAR_ADC_FIFO_RD_CHAN_ID_MASK GENMASK(14, 12) |
defines | #define MESON_SAR_ADC_FIFO_RD_SAMPLE_VALUE_MASK GENMASK(11, 0) |
defines |
#define MESON_SAR_ADC_AUX_SW 0x1c |
defines | #define MESON_SAR_ADC_AUX_SW_MUX_SEL_CHAN_MASK(_chan) \ |
defines | #define MESON_SAR_ADC_AUX_SW_VREF_P_MUX BIT(6) |
defines | #define MESON_SAR_ADC_AUX_SW_VREF_N_MUX BIT(5) |
defines | #define MESON_SAR_ADC_AUX_SW_MODE_SEL BIT(4) |
defines | #define MESON_SAR_ADC_AUX_SW_YP_DRIVE_SW BIT(3) |
defines | #define MESON_SAR_ADC_AUX_SW_XP_DRIVE_SW BIT(2) |
defines | #define MESON_SAR_ADC_AUX_SW_YM_DRIVE_SW BIT(1) |
defines | #define MESON_SAR_ADC_AUX_SW_XM_DRIVE_SW BIT(0) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.