coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bitbang.c File Reference
#include <console/console.h>
#include <delay.h>
#include <spi_bitbang.h>
Include dependency graph for bitbang.c:

Go to the source code of this file.

Macros

#define TRACE   0
 
#define HALF_CLOCK_US   0
 

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)
 

Macro Definition Documentation

◆ HALF_CLOCK_US

#define HALF_CLOCK_US   0

Definition at line 15 of file bitbang.c.

◆ TRACE

#define TRACE   0

Definition at line 8 of file bitbang.c.

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: