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

#include <spi_flash.h>

Collaboration diagram for spi_flash:
Collaboration graph

Data Fields

struct spi_slave spi
 
u8 vendor
 
union {
   u8   raw
 
   struct {
      u8   dual_output: 1
 
      u8   dual_io: 1
 
      u8   _reserved: 6
 
   } 
 
flags
 
u16 model
 
u32 size
 
u32 sector_size
 
u32 page_size
 
u8 erase_cmd
 
u8 status_cmd
 
u8 pp_cmd
 
u8 wren_cmd
 
const struct spi_flash_opsops
 
const struct spi_flash_protection_opsprot_ops
 
const struct spi_flash_part_idpart
 

Detailed Description

Definition at line 83 of file spi_flash.h.

Field Documentation

◆ _reserved

u8 spi_flash::_reserved

Definition at line 91 of file spi_flash.h.

◆ dual_io

u8 spi_flash::dual_io

Definition at line 90 of file spi_flash.h.

Referenced by fill_spi_flash(), spi_flash_cmd_read(), and spi_flash_probe().

◆ dual_output

u8 spi_flash::dual_output

Definition at line 89 of file spi_flash.h.

Referenced by fill_spi_flash(), spi_flash_cmd_read(), and spi_flash_probe().

◆ erase_cmd

u8 spi_flash::erase_cmd

Definition at line 98 of file spi_flash.h.

Referenced by fill_spi_flash(), lb_spi_flash(), mtk_spi_flash_probe(), and spi_flash_cmd_erase().

◆ 

union { ... } spi_flash::flags

◆ model

u16 spi_flash::model

Definition at line 94 of file spi_flash.h.

Referenced by fill_spi_flash(), spi_finalize_ops(), and spi_flash_probe().

◆ ops

◆ page_size

u32 spi_flash::page_size

◆ part

const struct spi_flash_part_id* spi_flash::part

Definition at line 105 of file spi_flash.h.

Referenced by fill_spi_flash(), and winbond_get_write_protection().

◆ pp_cmd

u8 spi_flash::pp_cmd

Definition at line 100 of file spi_flash.h.

Referenced by fill_spi_flash(), and spi_flash_cmd_write_page_program().

◆ prot_ops

const struct spi_flash_protection_ops* spi_flash::prot_ops

◆ raw

u8 spi_flash::raw

Definition at line 87 of file spi_flash.h.

◆ sector_size

◆ size

◆ spi

◆ status_cmd

u8 spi_flash::status_cmd

Definition at line 99 of file spi_flash.h.

Referenced by fill_spi_flash(), spi_flash_cmd_status(), and winbond_get_write_protection().

◆ vendor

u8 spi_flash::vendor

Definition at line 85 of file spi_flash.h.

Referenced by fill_spi_flash(), spi_finalize_ops(), and spi_flash_probe().

◆ wren_cmd

u8 spi_flash::wren_cmd

Definition at line 101 of file spi_flash.h.

Referenced by fill_spi_flash(), and spi_flash_cmd_write_page_program().


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