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

sah_status_manager.h File Reference


Detailed Description

SAHARA Status Manager Types and Function Prototypes.

Author:
Stuart Holloway (SH)

Definition in file sah_status_manager.h.

#include "sah_driver_common.h"
#include "sahara.h"

Go to the source code of this file.

Defines

#define SAH_EXEC_DONE1_BIT   4
#define SAH_EXEC_STATE_MASK   0x00000007

Enumerations

enum  sah_CHA_Error_Source {
  SAH_CHA_NO_ERROR = 0, SAH_CHA_SKHA_ERROR = 1, SAH_CHA_MDHA_ERROR = 2, SAH_CHA_RNG_ERROR = 3,
  SAH_CHA_PKHA_ERROR = 4
}
enum  sah_CHA_Error_Status {
  SAH_CHA_NO_ERR = 0x000, SAH_CHA_IP_BUF = 0x001, SAH_CHA_ADD_ERR = 0x002, SAH_CHA_MODE_ERR = 0x004,
  SAH_CHA_DATA_SIZE_ERR = 0x008, SAH_CHA_KEY_SIZE_ERR = 0x010, SAH_CHA_PROC_ERR = 0x020, SAH_CHA_CTX_READ_ERR = 0x040,
  SAH_CHA_INTERNAL_HW_ERR = 0x080, SAH_CHA_IP_BUFF_ERR = 0x100, SAH_CHA_OP_BUFF_ERR = 0x200, SAH_CHA_DES_KEY_ERR = 0x400,
  SAH_CHA_RES = 0x800
}
enum  sah_DMA_Error_Size { SAH_DMA_SIZE_BYTE = 0, SAH_DMA_SIZE_HALF_WORD = 1, SAH_DMA_SIZE_WORD = 2, SAH_DMA_SIZE_RES = 3 }
enum  sah_DMA_Error_Status {
  SAH_DMA_NO_ERR = 0, SAH_DMA_AHB_ERR = 2, SAH_DMA_IP_ERR = 4, SAH_DMA_PARITY_ERR = 6,
  SAH_DMA_BOUNDRY_ERR = 8, SAH_DMA_BUSY_ERR = 10, SAH_DMA_RESERVED_ERR = 12, SAH_DMA_INT_ERR = 14
}
enum  sah_Execute_Error {
  SAH_ERR_NONE = 0, SAH_ERR_HEADER = 1, SAH_ERR_DESC_LENGTH = 2, SAH_ERR_DESC_POINTER = 3,
  SAH_ERR_LINK_LENGTH = 4, SAH_ERR_LINK_POINTER = 5, SAH_ERR_INPUT_BUFFER = 6, SAH_ERR_OUTPUT_BUFFER = 7,
  SAH_ERR_OUTPUT_BUFFER_STARVATION = 8, SAH_ERR_INTERNAL_STATE = 9, SAH_ERR_GENERAL_DESCRIPTOR = 10, SAH_ERR_RESERVED_FIELDS = 11,
  SAH_ERR_DESCRIPTOR_ADDRESS = 12, SAH_ERR_LINK_ADDRESS = 13, SAH_ERR_CHA = 14, SAH_ERR_DMA = 15
}
enum  sah_Execute_Status {
  SAH_EXEC_IDLE = 0, SAH_EXEC_BUSY = 1, SAH_EXEC_ERROR1 = 2, SAH_EXEC_FAULT = 3,
  SAH_EXEC_DONE1 = 4, SAH_EXEC_DONE1_BUSY2 = 5, SAH_EXEC_DONE1_ERROR2 = 6, SAH_EXEC_DONE1_DONE2 = 7,
  SAH_EXEC_OPSTAT1 = 0x20
}

Functions

void sah_dpm_close (void)
int sah_dpm_init (void)
sah_Head_Descsah_Find_With_State (sah_Queue_Status status)
 Handle the IDLE state.
unsigned long sah_Handle_Interrupt (sah_Execute_Status hw_status)
 The bulk of the interrupt handling code.
void sah_Queue_Manager_Prime (sah_Head_Desc *entry)
 Prime SAHARA.

Variables

bool sah_dpm_flag


Generated by  Doxygen 1.6.0   Back to index