Go to the documentation of this file.
33 #ifndef __SEP_DRIVER_CONFIG_H__
34 #define __SEP_DRIVER_CONFIG_H__
43 #define SEP_DRIVER_POLLING_MODE 0
47 #define SEP_DRIVER_RECONFIG_MESSAGE_AREA 0
50 #define SEP_DRIVER_ARM_DEBUG_MODE 0
53 #define SEP_START_MSG_TOKEN 0x02558808
59 #define SEP_DRIVER_IN_FLAG 0
62 #define SEP_DRIVER_OUT_FLAG 1
65 #define SEP_DRIVER_ENTRIES_PER_TABLE_IN_SEP 31
68 #define SEP_DRIVER_MIN_DATA_SIZE_PER_TABLE 16
72 #define SEP_DRIVER_OWN_LOCK_FLAG 1
76 #define SEP_DRIVER_DISOWN_LOCK_FLAG 0
79 #define SEP_REQUEST_DAEMON_MAPPED 1
80 #define SEP_REQUEST_DAEMON_UNMAPPED 0
105 #define SEP_DEV_NAME "sep_sec_driver"
106 #define SEP_DEV_SINGLETON "sep_sec_singleton_driver"
107 #define SEP_DEV_DAEMON "sep_req_daemon_driver"
114 #define SEP_DRIVER_MIN_MESSAGE_SIZE_IN_BYTES (5*sizeof(u32))
120 #define SEP_DRIVER_MAX_MESSAGE_SIZE_IN_BYTES (8 * 1024)
123 #define SEP_DRIVER_MESSAGE_SHARED_AREA_SIZE_IN_BYTES (8 * 1024)
126 #define SEP_DRIVER_STATIC_AREA_SIZE_IN_BYTES (4 * 1024)
129 #define SEP_DRIVER_DATA_POOL_SHARED_AREA_SIZE_IN_BYTES (16 * 1024)
132 #define SYNCHRONIC_DMA_TABLES_AREA_SIZE_BYTES (1024 * 29)
135 #define SEP_DRIVER_FLOW_DMA_TABLES_AREA_SIZE_IN_BYTES (1024 * 4)
138 #define SEP_DRIVER_SYSTEM_DATA_MEMORY_SIZE_IN_BYTES (1024 * 3)
141 #define SEP_DRIVER_PRINTF_OFFSET_IN_BYTES (5888)
144 #define SEP_DRIVER_TIME_MEMORY_SIZE_IN_BYTES 8
147 #define SEP_DRIVER_SYSTEM_RAR_MEMORY_SIZE_IN_BYTES 8
151 #define SEP_DRIVER_MMMAP_AREA_SIZE (1024 * 28)
158 #define SEP_DRIVER_MESSAGE_AREA_OFFSET_IN_BYTES 0
161 #define SEP_DRIVER_STATIC_AREA_OFFSET_IN_BYTES \
162 (SEP_DRIVER_MESSAGE_SHARED_AREA_SIZE_IN_BYTES)
165 #define SEP_DRIVER_DATA_POOL_AREA_OFFSET_IN_BYTES \
166 (SEP_DRIVER_STATIC_AREA_OFFSET_IN_BYTES + \
167 SEP_DRIVER_STATIC_AREA_SIZE_IN_BYTES)
170 #define SYNCHRONIC_DMA_TABLES_AREA_OFFSET_BYTES \
171 (SEP_DRIVER_DATA_POOL_AREA_OFFSET_IN_BYTES + \
172 SEP_DRIVER_DATA_POOL_SHARED_AREA_SIZE_IN_BYTES)
175 #define SEP_DRIVER_SYSTEM_DATA_MEMORY_OFFSET_IN_BYTES \
176 (SYNCHRONIC_DMA_TABLES_AREA_OFFSET_BYTES + \
177 SYNCHRONIC_DMA_TABLES_AREA_SIZE_BYTES)
180 #define SEP_DRIVER_SYSTEM_TIME_MEMORY_OFFSET_IN_BYTES \
181 (SEP_DRIVER_SYSTEM_DATA_MEMORY_OFFSET_IN_BYTES)
184 #define SEP_DRIVER_SYSTEM_RAR_MEMORY_OFFSET_IN_BYTES \
185 (SEP_DRIVER_SYSTEM_TIME_MEMORY_OFFSET_IN_BYTES + \
186 SEP_DRIVER_TIME_MEMORY_SIZE_IN_BYTES)
189 #define SEP_CALLER_ID_OFFSET_BYTES \
190 (SEP_DRIVER_SYSTEM_RAR_MEMORY_OFFSET_IN_BYTES + \
191 SEP_DRIVER_SYSTEM_RAR_MEMORY_SIZE_IN_BYTES)
194 #define SEP_DRIVER_SYSTEM_DCB_MEMORY_OFFSET_IN_BYTES \
195 (SEP_DRIVER_SYSTEM_DATA_MEMORY_OFFSET_IN_BYTES + \
199 #define SEP_DRIVER_SYSTEM_EXT_CACHE_ADDR_OFFSET_IN_BYTES \
200 SEP_DRIVER_SYSTEM_RAR_MEMORY_OFFSET_IN_BYTES
203 #define SEP_DRIVER_DATA_POOL_ALLOCATION_OFFSET_IN_BYTES \
204 (SEP_CALLER_ID_OFFSET_BYTES + \
205 SEP_CALLER_ID_HASH_SIZE_IN_BYTES)
208 #define SEP_TIME_VAL_TOKEN 0x12345678
210 #define FAKE_RAR_SIZE (1024*1024)
214 #define SEP_CALLER_ID_HASH_SIZE_IN_BYTES 32
217 #define SEP_CALLER_ID_HASH_SIZE_IN_WORDS 8
220 #define SEP_CALLER_ID_TABLE_NUM_ENTRIES 20
224 #define SEP_MAX_NUM_SYNC_DMA_OPS 16
227 #define SEP_RAR_VAL_TOKEN 0xABABABAB
231 #define SEP_ALREADY_INITIALIZED_ERR 12
234 #define SEP_TRANSACTION_STARTED_LOCK_BIT 0
237 #define SEP_WORKING_LOCK_BIT 1
240 #define SEP_STATIC_POOL_VAL_TOKEN 0xABBAABBA
243 #define SEP_DATA_POOL_POINTERS_VAL_TOKEN 0xEDDEEDDE
246 #define SEP_EXT_CACHE_ADDR_VAL_TOKEN 0xBABABABA
252 #define SUSPEND_DELAY 10
255 #define SCU_DELAY_MAX 50
258 #define SCU_DELAY_ITERATION 10
267 #define SEP_FASTCALL_WRITE_DONE_OFFSET 0
270 #define SEP_LEGACY_MMAP_DONE_OFFSET 1
273 #define SEP_LEGACY_SENDMSG_DONE_OFFSET 2
276 #define SEP_LEGACY_POLL_DONE_OFFSET 3
279 #define SEP_LEGACY_ENDTRANSACTION_DONE_OFFSET 4
286 #define SEP_DOUBLEBUF_USERS_LIMIT 3
289 #define SEP_FC_MAGIC 0xFFAACCAA
296 #define SEP_ENABLE_RUNTIME_PM