coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
update_descriptor.c File Reference
#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>
Include dependency graph for update_descriptor.c:

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)
 

Macro Definition Documentation

◆ FLASH_SIGN_OFFSET

#define FLASH_SIGN_OFFSET   0x10

Definition at line 18 of file update_descriptor.c.

◆ FLASH_VAL_SIGN

#define FLASH_VAL_SIGN   0xFF0A55A

Definition at line 20 of file update_descriptor.c.

◆ FLMSTR1

#define FLMSTR1   0x80

Definition at line 15 of file update_descriptor.c.

◆ FLMSTR_WR_SHIFT_V2

#define FLMSTR_WR_SHIFT_V2   20

Definition at line 19 of file update_descriptor.c.

Function Documentation

◆ configure_descriptor()

void configure_descriptor ( struct descriptor_byte bytes,
size_t  num 
)

◆ is_descriptor_writeable()

static bool is_descriptor_writeable ( uint8_t desc)
static

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().

Here is the call graph for this function:
Here is the caller graph for this function: