coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_response_flash_info_1 Struct Reference

struct ec_response_flash_info_1 - Response to the flash info v1 command. More...

#include <ec_commands.h>

Collaboration diagram for ec_response_flash_info_1:
Collaboration graph

Data Fields

uint32_t flash_size
 
uint32_t write_block_size
 
uint32_t erase_block_size
 
uint32_t protect_block_size
 
uint32_t write_ideal_size
 
uint32_t flags
 

Detailed Description

struct ec_response_flash_info_1 - Response to the flash info v1 command.

@flash_size: Usable flash size in bytes. @write_block_size: Write block size. Write offset and size must be a multiple of this. @erase_block_size: Erase block size. Erase offset and size must be a multiple of this. @protect_block_size: Protection block size. Protection offset and size must be a multiple of this. @write_ideal_size: Ideal write size in bytes. Writes will be fastest if size is exactly this and offset is a multiple of this. For example, an EC may have a write buffer which can do half-page operations if data is aligned, and a slower word-at-a-time write mode. @flags: Flags; see EC_FLASH_INFO_*

Version 1 returns the same initial fields as version 0, with additional fields following.

gcc anonymous structs don't seem to get along with the __packed directive; if they did we'd define the version 0 structure as a sub-structure of this one.

Version 2 supports flash banks of different sizes: The caller specified the number of banks it has preallocated (num_banks_desc) The EC returns the number of banks describing the flash memory. It adds banks descriptions up to num_banks_desc.

Definition at line 1598 of file ec_commands.h.

Field Documentation

◆ erase_block_size

uint32_t ec_response_flash_info_1::erase_block_size

Definition at line 1602 of file ec_commands.h.

◆ flags

uint32_t ec_response_flash_info_1::flags

Definition at line 1607 of file ec_commands.h.

◆ flash_size

uint32_t ec_response_flash_info_1::flash_size

Definition at line 1600 of file ec_commands.h.

◆ protect_block_size

uint32_t ec_response_flash_info_1::protect_block_size

Definition at line 1603 of file ec_commands.h.

◆ write_block_size

uint32_t ec_response_flash_info_1::write_block_size

Definition at line 1601 of file ec_commands.h.

◆ write_ideal_size

uint32_t ec_response_flash_info_1::write_ideal_size

Definition at line 1606 of file ec_commands.h.


The documentation for this struct was generated from the following file: