Lines Matching refs:info
34 static void cb_parse_memory(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_memory() argument
43 info->n_memranges = 0; in cb_parse_memory()
49 info->memrange[info->n_memranges].base = in cb_parse_memory()
52 info->memrange[info->n_memranges].size = in cb_parse_memory()
55 info->memrange[info->n_memranges].type = range->type; in cb_parse_memory()
57 info->n_memranges++; in cb_parse_memory()
61 static void cb_parse_serial(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_serial() argument
64 info->serial = ser; in cb_parse_serial()
67 static void cb_parse_vbnv(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_vbnv() argument
71 info->vbnv_start = vbnv->vbnv_start; in cb_parse_vbnv()
72 info->vbnv_size = vbnv->vbnv_size; in cb_parse_vbnv()
75 static void cb_parse_cbmem_entry(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_cbmem_entry() argument
82 info->smbios_start = entry->address; in cb_parse_cbmem_entry()
83 info->smbios_size = entry->entry_size; in cb_parse_cbmem_entry()
86 static void cb_parse_gpios(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_gpios() argument
91 info->num_gpios = (gpios->count < SYSINFO_MAX_GPIOS) ? in cb_parse_gpios()
94 for (i = 0; i < info->num_gpios; i++) in cb_parse_gpios()
95 info->gpios[i] = gpios->gpios[i]; in cb_parse_gpios()
98 static void cb_parse_vdat(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_vdat() argument
102 info->vdat_addr = vdat->vdat_addr; in cb_parse_vdat()
103 info->vdat_size = vdat->vdat_size; in cb_parse_vdat()
106 static void cb_parse_tstamp(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_tstamp() argument
108 info->tstamp_table = ((struct cb_cbmem_tab *)ptr)->cbmem_tab; in cb_parse_tstamp()
111 static void cb_parse_cbmem_cons(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_cbmem_cons() argument
113 info->cbmem_cons = ((struct cb_cbmem_tab *)ptr)->cbmem_tab; in cb_parse_cbmem_cons()
116 static void cb_parse_framebuffer(unsigned char *ptr, struct sysinfo_t *info) in cb_parse_framebuffer() argument
118 info->framebuffer = (struct cb_framebuffer *)ptr; in cb_parse_framebuffer()
121 static void cb_parse_string(unsigned char *ptr, char **info) in cb_parse_string() argument
123 *info = (char *)((struct cb_string *)ptr)->string; in cb_parse_string()
130 static int cb_parse_header(void *addr, int len, struct sysinfo_t *info) in cb_parse_header() argument
152 info->vbnv_start = info->vbnv_size = (uint32_t)(-1); in cb_parse_header()
163 len, info); in cb_parse_header()
166 cb_parse_memory(ptr, info); in cb_parse_header()
169 cb_parse_serial(ptr, info); in cb_parse_header()
172 cb_parse_string(ptr, &info->version); in cb_parse_header()
175 cb_parse_string(ptr, &info->extra_version); in cb_parse_header()
178 cb_parse_string(ptr, &info->build); in cb_parse_header()
181 cb_parse_string(ptr, &info->compile_time); in cb_parse_header()
184 cb_parse_string(ptr, &info->compile_by); in cb_parse_header()
187 cb_parse_string(ptr, &info->compile_host); in cb_parse_header()
190 cb_parse_string(ptr, &info->compile_domain); in cb_parse_header()
193 cb_parse_string(ptr, &info->compiler); in cb_parse_header()
196 cb_parse_string(ptr, &info->linker); in cb_parse_header()
199 cb_parse_string(ptr, &info->assembler); in cb_parse_header()
206 cb_parse_framebuffer(ptr, info); in cb_parse_header()
209 cb_parse_gpios(ptr, info); in cb_parse_header()
212 cb_parse_vdat(ptr, info); in cb_parse_header()
215 cb_parse_tstamp(ptr, info); in cb_parse_header()
218 cb_parse_cbmem_cons(ptr, info); in cb_parse_header()
221 cb_parse_vbnv(ptr, info); in cb_parse_header()
224 cb_parse_cbmem_entry(ptr, info); in cb_parse_header()
240 int get_coreboot_info(struct sysinfo_t *info) in get_coreboot_info() argument
248 ret = cb_parse_header((void *)addr, 0x1000, info); in get_coreboot_info()