![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <spi_flash.h>
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_ops * | ops |
const struct spi_flash_protection_ops * | prot_ops |
const struct spi_flash_part_id * | part |
Definition at line 83 of file spi_flash.h.
u8 spi_flash::_reserved |
Definition at line 91 of file spi_flash.h.
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().
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().
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 |
Referenced by fill_spi_flash(), spi_flash_cmd_read(), and spi_flash_probe().
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().
const struct spi_flash_ops* spi_flash::ops |
Definition at line 102 of file spi_flash.h.
Referenced by fast_spi_flash_probe(), fill_spi_flash(), mtk_spi_flash_probe(), spi_flash_erase(), spi_flash_programmer_probe(), spi_flash_read(), spi_flash_status(), and spi_flash_write().
u32 spi_flash::page_size |
Definition at line 97 of file spi_flash.h.
Referenced by fast_spi_flash_probe(), fill_spi_flash(), get_xfer_len(), and spi_flash_cmd_write_page_program().
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().
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().
const struct spi_flash_protection_ops* spi_flash::prot_ops |
Definition at line 104 of file spi_flash.h.
Referenced by fill_spi_flash(), spi_flash_is_write_protected(), and spi_flash_set_write_protected().
u8 spi_flash::raw |
Definition at line 87 of file spi_flash.h.
u32 spi_flash::sector_size |
Definition at line 96 of file spi_flash.h.
Referenced by fast_spi_flash_probe(), fill_spi_flash(), ich_hwseq_erase(), lb_spi_flash(), mtk_spi_flash_probe(), nor_erase(), spi_flash_cmd_erase(), spi_flash_probe(), and spi_flash_programmer_probe().
u32 spi_flash::size |
Definition at line 95 of file spi_flash.h.
Referenced by fast_spi_flash_probe(), fill_spi_flash(), ich_hwseq_read(), ich_hwseq_write(), lb_spi_flash(), mtk_spi_flash_probe(), OemS3Saved_MTRR_Storage(), spi_eraseat(), spi_flash_ctrlr_protect_region(), spi_flash_is_write_protected(), spi_flash_probe(), spi_flash_programmer_probe(), spi_flash_set_write_protected(), spi_readat(), spi_writeat(), and winbond_get_write_protection().
struct spi_slave spi_flash::spi |
Definition at line 74 of file spi_flash.h.
Referenced by fast_spi_flash_probe(), fill_spi_flash(), ich_hwseq_erase(), mtk_spi_flash_probe(), spi_flash_cmd_erase(), spi_flash_cmd_poll_bit(), spi_flash_cmd_read(), spi_flash_cmd_status(), spi_flash_cmd_write_page_program(), spi_flash_ctrlr_protect_region(), spi_flash_probe(), spi_flash_programmer_probe(), sst_byte_write(), sst_disable_writing(), sst_enable_writing(), sst_enable_writing_status(), sst_write_ai(), winbond_flash_cmd_status(), and winbond_get_write_protection().
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().
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().
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().