aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sep/sep_driver_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/sep/sep_driver_api.h')
-rw-r--r--drivers/staging/sep/sep_driver_api.h77
1 files changed, 37 insertions, 40 deletions
diff --git a/drivers/staging/sep/sep_driver_api.h b/drivers/staging/sep/sep_driver_api.h
index cdebc217cc9..03986767033 100644
--- a/drivers/staging/sep/sep_driver_api.h
+++ b/drivers/staging/sep/sep_driver_api.h
@@ -42,41 +42,47 @@
----------------------------------------------*/
/*
+ * Note that several members of these structres are only here
+ * for campatability with the middleware; they are not used
+ * by this driver.
+ */
+
+/*
init command struct
*/
-struct sep_driver_init_t {
- /* start of the 1G of the host memory address that SEP can access */
+struct init_stru {
+ /* -not used- address that SEP can access */
u32 *message_addr;
- /* start address of resident */
+ /* -not used- start address of resident */
u32 message_size_in_words;
/* offset of the init message in the sep sram */
u32 sep_sram_addr;
- /* resident size in bytes*/
+ /* -not used- resident size in bytes*/
u32 resident_size_in_bytes;
- /* cache size in bytes*/
+ /* -not used- cache size in bytes*/
u32 cache_size_in_bytes;
- /* ext cache current address */
+ /* -not used- ext cache current address */
void *extcache_addr;
- /* ext cache size in bytes*/
+ /* -not used- ext cache size in bytes*/
u32 extcache_size_in_bytes;
};
-struct sep_driver_realloc_ext_cache_t {
- /* current external cache address */
+struct realloc_ext_struc {
+ /* -not used- current external cache address */
void *ext_cache_addr;
- /* external cache size in bytes*/
+ /* -not used- external cache size in bytes*/
u32 ext_cache_size_in_bytes;
};
-struct sep_driver_alloc_t {
- /* virtual address of allocated space */
+struct alloc_struct {
+ /* offset from start of shared pool area */
u32 offset;
/* number of bytes to allocate */
@@ -85,49 +91,40 @@ struct sep_driver_alloc_t {
/*
*/
-struct sep_driver_build_sync_table_t {
- /* address value of the data in */
+struct bld_syn_tab_struc {
+ /* address value of the data in (user space addr) */
unsigned long app_in_address;
/* size of data in */
u32 data_in_size;
- /* address of the data out */
+ /* address of the data out (user space addr) */
unsigned long app_out_address;
/* the size of the block of the operation - if needed,
every table will be modulo this parameter */
u32 block_size;
- /* distinct user/kernel layout */
+ /* -not used- distinct user/kernel layout */
bool isKernelVirtualAddress;
};
/* command struct for static pool addresses */
-struct sep_driver_static_pool_addr_t {
+struct stat_pool_addr_struc {
/* virtual address of the static pool */
void *static_virt_address;
};
-/* command struct for getiing offset of the physical address from
- the start of the mapped area */
-struct sep_driver_get_mapped_offset_t {
- /* physical address of the static pool */
- unsigned long physical_address;
-
- /* virtual address of the static pool */
- u32 offset;
-};
/* command struct for getting time value and address */
-struct sep_driver_set_caller_id_t {
+struct caller_id_stru {
/* pid of the process */
u32 pid;
/* virtual address of the caller id hash */
- void *callerIdAddress;
+ void *callerIdAddress;
/* caller id hash size in bytes */
u32 callerIdSizeInBytes;
@@ -136,7 +133,7 @@ struct sep_driver_set_caller_id_t {
/*
structure that represents DCB
*/
-struct sep_dcb_t {
+struct sep_dcblock {
/* physical address of the first input mlli */
u32 input_mlli_address;
@@ -173,7 +170,7 @@ struct sep_caller_id_entry {
/*
command structure for building dcb block (currently for ext app only
*/
-struct sep_driver_build_dcb_t {
+struct build_dcb_struc {
/* address value of the data in */
unsigned long app_in_address;
@@ -240,7 +237,7 @@ struct sep_dma_resource {
/* command struct for translating rar handle to bus address
and setting it at predefined location */
-struct sep_driver_rar_handle_to_bus {
+struct rar_hndl_to_bus_stru {
/* rar handle */
void *rar_handle;
@@ -249,7 +246,7 @@ struct sep_driver_rar_handle_to_bus {
/*
structure that represent one entry in the DMA LLI table
*/
-struct sep_lli_entry_t {
+struct sep_lli_entry {
/* physical address */
u32 bus_address;
@@ -274,11 +271,11 @@ struct sep_lli_entry_t {
/* allocate memory in data pool */
#define SEP_IOCALLOCDATAPOLL \
- _IOW(SEP_IOC_MAGIC_NUMBER, 2, struct sep_driver_alloc_t)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 2, struct alloc_struct)
/* create sym dma lli tables */
#define SEP_IOCCREATESYMDMATABLE \
- _IOW(SEP_IOC_MAGIC_NUMBER, 5, struct sep_driver_build_sync_table_t)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 5, struct bld_syn_tab_struc)
/* free dynamic data aalocated during table creation */
#define SEP_IOCFREEDMATABLEDATA \
@@ -286,7 +283,7 @@ struct sep_lli_entry_t {
/* get the static pool area addersses (physical and virtual) */
#define SEP_IOCGETSTATICPOOLADDR \
- _IOR(SEP_IOC_MAGIC_NUMBER, 8, struct sep_driver_static_pool_addr_t)
+ _IOR(SEP_IOC_MAGIC_NUMBER, 8, struct stat_pool_addr_struc)
/* set flow id command */
#define SEP_IOCSETFLOWID \
@@ -306,7 +303,7 @@ struct sep_lli_entry_t {
/* init sep command */
#define SEP_IOCSEPINIT \
- _IOW(SEP_IOC_MAGIC_NUMBER, 13, struct sep_driver_init_t)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 13, struct init_stru)
/* end transaction command */
#define SEP_IOCENDTRANSACTION \
@@ -314,10 +311,10 @@ struct sep_lli_entry_t {
/* reallocate external app */
#define SEP_IOCREALLOCEXTCACHE \
- _IOW(SEP_IOC_MAGIC_NUMBER, 18, struct sep_driver_realloc_ext_cache_t)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 18, struct realloc_ext_struc)
#define SEP_IOCRARPREPAREMESSAGE \
- _IOW(SEP_IOC_MAGIC_NUMBER, 20, struct sep_driver_rar_handle_to_bus)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 20, struct rar_hndl_to_bus_stru)
#define SEP_IOCTLSINGLETONLOCK \
_IO(SEP_IOC_MAGIC_NUMBER, 32)
@@ -326,10 +323,10 @@ struct sep_lli_entry_t {
_IO(SEP_IOC_MAGIC_NUMBER, 33)
#define SEP_IOCTLSETCALLERID \
- _IOW(SEP_IOC_MAGIC_NUMBER, 34, struct sep_driver_set_caller_id_t)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 34, struct caller_id_stru)
#define SEP_IOCPREPAREDCB \
- _IOW(SEP_IOC_MAGIC_NUMBER, 35, struct sep_driver_build_dcb_t)
+ _IOW(SEP_IOC_MAGIC_NUMBER, 35, struct build_dcb_struc)
#define SEP_IOCFREEDCB \
_IO(SEP_IOC_MAGIC_NUMBER, 36)