OpenBIC
OpenSource Bridge-IC
plat_spi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _flash_copy_info_
 

Macros

#define CPLD_ADDR   0x21
 
#define CPLD_SPI_OOB_CONTROL_REG   0x0B
 
#define CPLD_SPI_OOB_FROM_CPU   0x02
 
#define CPLD_SPI_OOB_FROM_BIC   0x0B
 
#define FLASH_COPY_STACK_SIZE   1024
 

Typedefs

typedef struct _flash_copy_info_ FLASH_COPY_INFO
 

Enumerations

enum  flash_copy_status { COPY_STATUS_IDEL = 0 , COPY_STATUS_BUSY }
 
enum  flash_copy_completion_code {
  COPY_FLASH_SUCCESS = 0 , COPY_FLASH_UNSUPPORTED_TYPE = 0x80 , COPY_FLASH_INIT_FAIL , COPY_FLASH_OUT_OF_RANGE ,
  COPY_FLASH_MALLOC_FAIL , COPY_FLASH_WRITE_ERROR , COPY_FLASH_READ_ERROR
}
 

Functions

uint8_t start_flash_copy (uint8_t copy_type, uint32_t src_offset, uint32_t dest_offset, uint32_t length)
 
void get_flash_copy_info (FLASH_COPY_INFO *copy_info)
 

Macro Definition Documentation

◆ CPLD_ADDR

#define CPLD_ADDR   0x21

◆ CPLD_SPI_OOB_CONTROL_REG

#define CPLD_SPI_OOB_CONTROL_REG   0x0B

◆ CPLD_SPI_OOB_FROM_BIC

#define CPLD_SPI_OOB_FROM_BIC   0x0B

◆ CPLD_SPI_OOB_FROM_CPU

#define CPLD_SPI_OOB_FROM_CPU   0x02

◆ FLASH_COPY_STACK_SIZE

#define FLASH_COPY_STACK_SIZE   1024

Typedef Documentation

◆ FLASH_COPY_INFO

Enumeration Type Documentation

◆ flash_copy_completion_code

Enumerator
COPY_FLASH_SUCCESS 
COPY_FLASH_UNSUPPORTED_TYPE 
COPY_FLASH_INIT_FAIL 
COPY_FLASH_OUT_OF_RANGE 
COPY_FLASH_MALLOC_FAIL 
COPY_FLASH_WRITE_ERROR 
COPY_FLASH_READ_ERROR 

◆ flash_copy_status

Enumerator
COPY_STATUS_IDEL 
COPY_STATUS_BUSY 

Function Documentation

◆ get_flash_copy_info()

void get_flash_copy_info ( FLASH_COPY_INFO copy_info)

◆ start_flash_copy()

uint8_t start_flash_copy ( uint8_t  copy_type,
uint32_t  src_offset,
uint32_t  dest_offset,
uint32_t  length 
)