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

sah_driver_interface.c File Reference


Detailed Description

Provides a Linux Kernel Module interface to the SAHARA h/w device.

Definition in file sah_driver_interface.c.

#include <sah_driver_common.h>
#include <sah_kernel.h>
#include <sah_memory_mapper.h>
#include <sah_queue_manager.h>
#include <sah_status_manager.h>
#include <sah_interrupt_handler.h>
#include <sah_hardware_interface.h>
#include <fsl_shw_keystore.h>
#include <adaptor.h>
#include <linux/mxc_scc2_driver.h>
#include <linux/proc_fs.h>
#include <mach/spba.h>

Go to the source code of this file.

Defines

#define SAHARA_VERSION2   2
#define SAHARA_VERSION3   3
#define SAHARA_VERSION4   4
#define TEST_MODE_OFF   1
#define TEST_MODE_ON   2

Functions

 DECLARE_WAIT_QUEUE_HEAD (Wait_queue)
uint32_t get_user_smid (void *proc)
static int handle_sah_ioctl_dar (fsl_shw_uco_t *user_ctx, uint32_t user_space_desc)
 Submits converted descriptor chain to sahara.
 OS_DEV_CLOSE (sah_release)
 SAHARA device release function.
 OS_DEV_CLOSE_DCL (sah_release)
 OS_DEV_INIT (sah_init)
 SAHARA device initialisation function.
 OS_DEV_INIT_DCL (sah_init)
 OS_DEV_IOCTL (sah_ioctl)
 SAHARA device IO Control function.
 OS_DEV_IOCTL_DCL (sah_ioctl)
 OS_DEV_MMAP (sah_mmap)
 OS_DEV_MMAP_DCL (sah_mmap)
 OS_DEV_OPEN (sah_open)
 SAHARA device open function.
 OS_DEV_OPEN_DCL (sah_open)
 OS_DEV_SHUTDOWN (sah_cleanup)
 SAHARA device clean-up function.
 OS_DEV_SHUTDOWN_DCL (sah_cleanup)
int sah_blocking_mode (sah_Head_Desc *entry)
 SAHARA PROCFS read function.
fsl_shw_return_t sah_get_results_from_pool (volatile fsl_shw_uco_t *user_ctx, sah_results *arg)
 Extract results from results pool.
int sah_get_results_pointers (fsl_shw_uco_t *user_ctx, uint32_t arg)
 Sets up memory to extract results from results pool.
fsl_shw_return_t sah_handle_deregistration (fsl_shw_uco_t *user_ctx)
 Deregister a user.
static os_error_code sah_handle_get_capabilities (fsl_shw_uco_t *user_ctx, uint32_t info)
fsl_shw_return_t sah_handle_registration (fsl_shw_uco_t *user_ctx)
 Register a user.
static os_error_code sah_handle_scc_decrypt (fsl_shw_uco_t *user_ctx, uint32_t info)
static os_error_code sah_handle_scc_drop_perms (fsl_shw_uco_t *user_ctx, uint32_t info)
static os_error_code sah_handle_scc_encrypt (fsl_shw_uco_t *user_ctx, uint32_t info)
static os_error_code sah_handle_scc_sfree (fsl_shw_uco_t *user_ctx, uint32_t info)
static os_error_code sah_handle_scc_sstatus (fsl_shw_uco_t *user_ctx, uint32_t info)
static os_error_code sah_handle_sk_slot_alloc (uint32_t info)
static os_error_code sah_handle_sk_slot_dealloc (uint32_t info)
static os_error_code sah_handle_sk_slot_decrypt (uint32_t info)
static os_error_code sah_handle_sk_slot_encrypt (uint32_t info)
static os_error_code sah_handle_sk_slot_load (uint32_t info)
static os_error_code sah_handle_sk_slot_read (uint32_t info)
static void sah_user_callback (fsl_shw_uco_t *user_ctx)
void sahara_timeout_handler (unsigned long data)
fsl_shw_return_t system_keystore_get_slot_info (uint64_t owner_id, uint32_t slot, uint32_t *address, uint32_t *slot_size_bytes)

Variables

static unsigned interrupt_registered
static int Major
static os_driver_reg_t reg_handle
uint32_t sah_hw_version
static struct proc_dir_entry * Sahara_procfs_handle
fsl_shw_kso_t system_keystore


Generated by  Doxygen 1.6.0   Back to index