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

#include <spi_flash.h>

Collaboration diagram for spi_flash_ops:
Collaboration graph

Data Fields

int(* read )(const struct spi_flash *flash, u32 offset, size_t len, void *buf)
 
int(* write )(const struct spi_flash *flash, u32 offset, size_t len, const void *buf)
 
int(* erase )(const struct spi_flash *flash, u32 offset, size_t len)
 
int(* status )(const struct spi_flash *flash, u8 *reg)
 

Detailed Description

Definition at line 43 of file spi_flash.h.

Field Documentation

◆ erase

int(* spi_flash_ops::erase) (const struct spi_flash *flash, u32 offset, size_t len)

Definition at line 48 of file spi_flash.h.

Referenced by spi_flash_erase().

◆ read

int(* spi_flash_ops::read) (const struct spi_flash *flash, u32 offset, size_t len, void *buf)

Definition at line 44 of file spi_flash.h.

Referenced by spi_flash_read().

◆ status

int(* spi_flash_ops::status) (const struct spi_flash *flash, u8 *reg)

Definition at line 49 of file spi_flash.h.

Referenced by spi_flash_status().

◆ write

int(* spi_flash_ops::write) (const struct spi_flash *flash, u32 offset, size_t len, const void *buf)

Definition at line 46 of file spi_flash.h.

Referenced by spi_flash_write().


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