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

#include <spi-generic.h>

Collaboration diagram for spi_ctrlr:
Collaboration graph

Data Fields

int(* claim_bus )(const struct spi_slave *slave)
 
void(* release_bus )(const struct spi_slave *slave)
 
int(* setup )(const struct spi_slave *slave)
 
int(* xfer )(const struct spi_slave *slave, const void *dout, size_t bytesout, void *din, size_t bytesin)
 
int(* xfer_vector )(const struct spi_slave *slave, struct spi_op vectors[], size_t count)
 
int(* xfer_dual )(const struct spi_slave *slave, const void *dout, size_t bytesout, void *din, size_t bytesin)
 
uint32_t max_xfer_size
 
uint32_t flags
 
int(* flash_probe )(const struct spi_slave *slave, struct spi_flash *flash)
 
int(* flash_protect )(const struct spi_flash *flash, const struct region *region, const enum ctrlr_prot_type type)
 

Detailed Description

Definition at line 148 of file spi-generic.h.

Field Documentation

◆ claim_bus

int(* spi_ctrlr::claim_bus) (const struct spi_slave *slave)

Definition at line 149 of file spi-generic.h.

Referenced by spi_claim_bus().

◆ flags

uint32_t spi_ctrlr::flags

Definition at line 159 of file spi-generic.h.

Referenced by spi_crop_chunk().

◆ flash_probe

int(* spi_ctrlr::flash_probe) (const struct spi_slave *slave, struct spi_flash *flash)

Definition at line 160 of file spi-generic.h.

Referenced by spi_flash_probe().

◆ flash_protect

int(* spi_ctrlr::flash_protect) (const struct spi_flash *flash, const struct region *region, const enum ctrlr_prot_type type)

Definition at line 162 of file spi-generic.h.

Referenced by spi_flash_ctrlr_protect_region().

◆ max_xfer_size

uint32_t spi_ctrlr::max_xfer_size

Definition at line 158 of file spi-generic.h.

Referenced by spi_crop_chunk().

◆ release_bus

void(* spi_ctrlr::release_bus) (const struct spi_slave *slave)

Definition at line 150 of file spi-generic.h.

Referenced by spi_release_bus().

◆ setup

int(* spi_ctrlr::setup) (const struct spi_slave *slave)

Definition at line 151 of file spi-generic.h.

Referenced by spi_setup_slave().

◆ xfer

int(* spi_ctrlr::xfer) (const struct spi_slave *slave, const void *dout, size_t bytesout, void *din, size_t bytesin)

Definition at line 152 of file spi-generic.h.

Referenced by spi_xfer(), and spi_xfer_single_op().

◆ xfer_dual

int(* spi_ctrlr::xfer_dual) (const struct spi_slave *slave, const void *dout, size_t bytesout, void *din, size_t bytesin)

◆ xfer_vector

int(* spi_ctrlr::xfer_vector) (const struct spi_slave *slave, struct spi_op vectors[], size_t count)

Definition at line 154 of file spi-generic.h.

Referenced by spi_xfer_vector().


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