coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spi_bitbang.h File Reference
#include <types.h>
Include dependency graph for spi_bitbang.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  spi_bitbang_ops
 

Functions

int spi_bitbang_claim_bus (const struct spi_bitbang_ops *ops)
 
void spi_bitbang_release_bus (const struct spi_bitbang_ops *ops)
 
int spi_bitbang_xfer (const struct spi_bitbang_ops *ops, const void *dout, size_t bytes_out, void *din, size_t bytes_in)
 

Function Documentation

◆ spi_bitbang_claim_bus()

int spi_bitbang_claim_bus ( const struct spi_bitbang_ops ops)

Definition at line 17 of file bitbang.c.

References ops.

Referenced by spi_ctrlr_claim_bus().

Here is the caller graph for this function:

◆ spi_bitbang_release_bus()

void spi_bitbang_release_bus ( const struct spi_bitbang_ops ops)

Definition at line 23 of file bitbang.c.

References ops.

Referenced by spi_ctrlr_release_bus().

Here is the caller graph for this function:

◆ spi_bitbang_xfer()

int spi_bitbang_xfer ( const struct spi_bitbang_ops ops,
const void dout,
size_t  bytes_out,
void din,
size_t  bytes_in 
)

Definition at line 29 of file bitbang.c.

References BIOS_SPEW, HALF_CLOCK_US, in_byte(), ops, out_byte(), printk, TRACE, and udelay().

Here is the call graph for this function: