Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

sah_hardware_interface.c File Reference


Detailed Description

Provides an interface to the SAHARA hardware registers.

Definition in file sah_hardware_interface.c.

#include <sah_driver_common.h>
#include <sah_hardware_interface.h>
#include <sah_memory_mapper.h>
#include <sah_kernel.h>

Go to the source code of this file.

Defines

#define SAH_HDR_LLO   0x01000000
#define SAHARA_BASE_ADDRESS   IO_ADDRESS(SAHA_BASE_ADDR)
#define SAHARA_CDAR_REGISTER
#define SAHARA_CDAR_REGISTER_OFFSET   0x01C
#define SAHARA_COMMAND_REGISTER
#define SAHARA_COMMAND_REGISTER_OFFSET   0x00C
#define SAHARA_CONFIG_REGISTER
#define SAHARA_CONFIG_REGISTER_OFFSET   0x02C
#define SAHARA_CONTROL_REGISTER
#define SAHARA_CONTROL_REGISTER_OFFSET   0x008
#define SAHARA_DAR_REGISTER
#define SAHARA_DAR_REGISTER_OFFSET   0x004
#define SAHARA_ESTATUS_REGISTER
#define SAHARA_ESTATUS_REGISTER_OFFSET   0x014
#define SAHARA_FLT_ADD_REGISTER
#define SAHARA_FLT_ADD_REGISTER_OFFSET   0x018
#define SAHARA_IDAR_REGISTER
#define SAHARA_IDAR_REGISTER_OFFSET   0x020
#define SAHARA_MM_STAT_REGISTER
#define SAHARA_MM_STAT_REGISTER_OFFSET   0x030
#define SAHARA_OSTATUS_REGISTER
#define SAHARA_OSTATUS_REGISTER_OFFSET   0x028
#define SAHARA_STATUS_REGISTER
#define SAHARA_STATUS_REGISTER_OFFSET   0x010
#define SAHARA_VERSION_REGISTER
#define SAHARA_VERSION_REGISTER_OFFSET   0x000

Functions

uint32_t sah_HW_Read_CDAR (void)
 Read SAHARA hardware CDAR Register.
uint32_t sah_HW_Read_Config (void)
 Read SAHARA Configuration Register.
uint32_t sah_HW_Read_Control (void)
 Read SAHARA hardware Control Register.
uint32_t sah_HW_Read_DAR (void)
 Read SAHARA hardware DAR Register.
uint32_t sah_HW_Read_Error_Status (void)
 Read SAHARA hardware Error Status Register.
uint32_t sah_HW_Read_Fault_Address (void)
 Read SAHARA Fault Address Register.
uint32_t sah_HW_Read_IDAR (void)
 Read SAHARA hardware IDAR Register.
uint32_t sah_HW_Read_MM_Status (void)
 Read SAHARA hardware MM Stat Register.
uint32_t sah_HW_Read_Op_Status (void)
 Read SAHARA hardware Op Status Register.
uint32_t sah_HW_Read_Status (void)
 Read SAHARA hardware Status Register.
uint32_t sah_HW_Read_Version (void)
 Read SAHARA hardware Version Register.
int sah_HW_Reset (void)
 SAHARA hardware reset function.
fsl_shw_return_t sah_HW_Set_HA (void)
 SAHARA hardware enable High Assurance mode.
void sah_HW_Write_Command (uint32_t command)
 Write to SAHARA hardware Command Register.
void sah_HW_Write_Config (uint32_t configuration)
 Write to SAHARA hardware Configuration Register.
void sah_HW_Write_Control (uint32_t control)
 Write to SAHARA hardware Control Register.
void sah_HW_Write_DAR (uint32_t pointer)
 Write to SAHARA Descriptor Address Register.
sah_Execute_Status sah_Wait_On_Sahara ()

Variables

uint32_t dar_count
static uint32_t sah_poll_timeout = 0xFFFFFFFF


Generated by  Doxygen 1.6.0   Back to index