![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/cpu.h>
#include <arch/mmio.h>
#include <cf9_reset.h>
#include <commonlib/region.h>
#include <console/console.h>
#include <cpu/intel/cpu_ids.h>
#include <fmap.h>
#include <intelblocks/pmclib.h>
#include <soc/bootblock.h>
#include <types.h>
Go to the source code of this file.
Macros | |
#define | FLMSTR1 0x80 |
#define | FLASH_SIGN_OFFSET 0x10 |
#define | FLMSTR_WR_SHIFT_V2 20 |
#define | FLASH_VAL_SIGN 0xFF0A55A |
Functions | |
static bool | is_descriptor_writeable (uint8_t *desc) |
void | configure_descriptor (struct descriptor_byte *bytes, size_t num) |
#define FLASH_SIGN_OFFSET 0x10 |
Definition at line 18 of file update_descriptor.c.
#define FLASH_VAL_SIGN 0xFF0A55A |
Definition at line 20 of file update_descriptor.c.
#define FLMSTR1 0x80 |
Definition at line 15 of file update_descriptor.c.
#define FLMSTR_WR_SHIFT_V2 20 |
Definition at line 19 of file update_descriptor.c.
void configure_descriptor | ( | struct descriptor_byte * | bytes, |
size_t | num | ||
) |
Definition at line 40 of file update_descriptor.c.
References BIOS_DEBUG, BIOS_ERR, descriptor_byte::desired_value, die(), do_full_reset(), fmap_locate_area_as_rdev_rw(), is_descriptor_writeable(), offset, descriptor_byte::offset, pmc_global_reset_enable(), printk, rdev_eraseat(), rdev_readat(), and rdev_writeat().
Referenced by variant_update_descriptor().
Definition at line 23 of file update_descriptor.c.
References BIOS_ERR, BIT, FLASH_SIGN_OFFSET, FLASH_VAL_SIGN, FLMSTR1, FLMSTR_WR_SHIFT_V2, printk, and read32().
Referenced by configure_descriptor().