coreboot_tables.h File Reference

#include <stdint.h>

Include dependency graph for coreboot_tables.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lb_uint64
struct  lb_header
struct  lb_record
struct  lb_memory_range
struct  lb_memory
struct  lb_hwrpb
struct  lb_mainboard
struct  lb_string
struct  lb_serial
struct  lb_console
struct  cmos_option_table
struct  cmos_entries
struct  cmos_enums
struct  cmos_defaults
struct  cmos_checksum

Defines

#define LB_TAG_UNUSED   0x0000
#define LB_TAG_MEMORY   0x0001
#define LB_MEM_RAM   1
#define LB_MEM_RESERVED   2
#define LB_MEM_TABLE   16
#define LB_TAG_HWRPB   0x0002
#define LB_TAG_MAINBOARD   0x0003
#define LB_TAG_VERSION   0x0004
#define LB_TAG_EXTRA_VERSION   0x0005
#define LB_TAG_BUILD   0x0006
#define LB_TAG_COMPILE_TIME   0x0007
#define LB_TAG_COMPILE_BY   0x0008
#define LB_TAG_COMPILE_HOST   0x0009
#define LB_TAG_COMPILE_DOMAIN   0x000a
#define LB_TAG_COMPILER   0x000b
#define LB_TAG_LINKER   0x000c
#define LB_TAG_ASSEMBLER   0x000d
#define LB_TAG_SERIAL   0x000f
#define LB_TAG_CONSOLE   0x0010
#define LB_TAG_CONSOLE_SERIAL8250   0
#define LB_TAG_CONSOLE_VGA   1
#define LB_TAG_CONSOLE_BTEXT   2
#define LB_TAG_CONSOLE_LOGBUF   3
#define LB_TAG_CONSOLE_SROM   4
#define LB_TAG_CONSOLE_EHCI   5
#define LB_TAG_CMOS_OPTION_TABLE   200
#define LB_TAG_OPTION   201
#define CMOS_MAX_NAME_LENGTH   32
#define LB_TAG_OPTION_ENUM   202
#define CMOS_MAX_TEXT_LENGTH   32
#define LB_TAG_OPTION_DEFAULTS   203
#define CMOS_IMAGE_BUFFER_SIZE   128
#define LB_TAG_OPTION_CHECKSUM   204
#define CHECKSUM_NONE   0
#define CHECKSUM_PCBIOS   1

Functions

static uint64_t unpack_lb64 (struct lb_uint64 value)
static struct lb_uint64 pack_lb64 (uint64_t value)


Define Documentation

#define CHECKSUM_NONE   0

Definition at line 234 of file coreboot_tables.h.

#define CHECKSUM_PCBIOS   1

Definition at line 235 of file coreboot_tables.h.

Referenced by lb_cmos_checksum(), main(), and option_checksum_print_fn().

#define CMOS_IMAGE_BUFFER_SIZE   128

Definition at line 219 of file coreboot_tables.h.

Referenced by main(), print_defaults_record(), and test_for_entry_overlaps().

#define CMOS_MAX_NAME_LENGTH   32

Definition at line 189 of file coreboot_tables.h.

Referenced by create_entry(), and process_cmos_table().

#define CMOS_MAX_TEXT_LENGTH   32

Definition at line 205 of file coreboot_tables.h.

Referenced by create_enum(), prepare_cmos_write(), and process_cmos_table().

#define LB_MEM_RAM   1

#define LB_MEM_RESERVED   2

Definition at line 99 of file coreboot_tables.h.

Referenced by add_mainboard_resources(), and memory_print_fn().

#define LB_MEM_TABLE   16

Definition at line 100 of file coreboot_tables.h.

Referenced by memory_print_fn(), valid_area(), and write_coreboot_table().

#define LB_TAG_ASSEMBLER   0x000d

Definition at line 134 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_BUILD   0x0006

Definition at line 127 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_CMOS_OPTION_TABLE   200

Definition at line 166 of file coreboot_tables.h.

Referenced by get_layout_from_cmos_table(), lbrec_tag_to_str(), and main().

#define LB_TAG_COMPILE_BY   0x0008

Definition at line 129 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_COMPILE_DOMAIN   0x000a

Definition at line 131 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_COMPILE_HOST   0x0009

Definition at line 130 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_COMPILE_TIME   0x0007

Definition at line 128 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_COMPILER   0x000b

Definition at line 132 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_CONSOLE   0x0010

Definition at line 151 of file coreboot_tables.h.

Referenced by add_console().

#define LB_TAG_CONSOLE_BTEXT   2

Definition at line 160 of file coreboot_tables.h.

Referenced by lb_console().

#define LB_TAG_CONSOLE_EHCI   5

Definition at line 163 of file coreboot_tables.h.

Referenced by lb_console().

#define LB_TAG_CONSOLE_LOGBUF   3

Definition at line 161 of file coreboot_tables.h.

Referenced by lb_console().

#define LB_TAG_CONSOLE_SERIAL8250   0

Definition at line 158 of file coreboot_tables.h.

Referenced by lb_console().

#define LB_TAG_CONSOLE_SROM   4

Definition at line 162 of file coreboot_tables.h.

Referenced by lb_console().

#define LB_TAG_CONSOLE_VGA   1

Definition at line 159 of file coreboot_tables.h.

Referenced by lb_console().

#define LB_TAG_EXTRA_VERSION   0x0005

Definition at line 126 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_HWRPB   0x0002

Definition at line 109 of file coreboot_tables.h.

Referenced by lbrec_tag_to_str().

#define LB_TAG_LINKER   0x000c

Definition at line 133 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().

#define LB_TAG_MAINBOARD   0x0003

Definition at line 116 of file coreboot_tables.h.

Referenced by lb_mainboard(), lbrec_tag_to_str(), and search_lb_records().

#define LB_TAG_MEMORY   0x0001

Definition at line 92 of file coreboot_tables.h.

Referenced by lb_memory(), and lbrec_tag_to_str().

#define LB_TAG_OPTION   201

#define LB_TAG_OPTION_CHECKSUM   204

#define LB_TAG_OPTION_DEFAULTS   203

Definition at line 213 of file coreboot_tables.h.

Referenced by cmos_opt_table_print_fn().

#define LB_TAG_OPTION_ENUM   202

#define LB_TAG_SERIAL   0x000f

Definition at line 143 of file coreboot_tables.h.

Referenced by lb_serial().

#define LB_TAG_UNUSED   0x0000

Definition at line 90 of file coreboot_tables.h.

Referenced by lb_new_record(), and lbrec_tag_to_str().

#define LB_TAG_VERSION   0x0004

Definition at line 125 of file coreboot_tables.h.

Referenced by lb_strings(), and lbrec_tag_to_str().


Function Documentation

static struct lb_uint64 pack_lb64 ( uint64_t  value  )  [static, read]

Definition at line 59 of file coreboot_tables.h.

References lb_uint64::hi, lb_uint64::lo, and value.

Referenced by lb_cleanup_memory_ranges(), lb_memory_range(), lb_remove_memory_range(), and lb_reserve_table_memory().

Here is the caller graph for this function:

static uint64_t unpack_lb64 ( struct lb_uint64  value  )  [inline, static]

Definition at line 51 of file coreboot_tables.h.

References lb_uint64::hi, and lb_uint64::lo.

Referenced by get_bounce_buffer(), lb_cleanup_memory_ranges(), lb_remove_memory_range(), lb_reserve_table_memory(), memory_print_fn(), print_memory(), and valid_area().

Here is the caller graph for this function:


Generated on Wed Jan 7 14:29:30 2009 for coreboot by  doxygen 1.5.5