2 #ifndef M_EPT_FUNC_TEST_H_
3 #define M_EPT_FUNC_TEST_H_
5 struct command
6 {
7 unsigned int comm_start;
8 unsigned int comm_code;
9 char data[0];
10 }__attribute__((__packed__));
12 struct ept_cmd_data
13 {
14 unsigned int src;
15 unsigned int dst;
16 };
18 struct chnl_cmd_data
19 {
20 char name[32];
21 };
23 /* Command Codes */
25 #define CREATE_EPT 0x00000000
26 #define DELETE_EPT 0x00000001
27 #define CREATE_CHNL 0x00000002
28 #define DELETE_CHNL 0x00000003
29 #define START_ECHO 0x00000004
30 #define STOP_ECHO 0x00000005
31 #define QUERY_FW_NAME 0x00000006
33 #define CMD_START 0xEF56A55A
35 /* Define the main task's stack size */
36 #define STACK_SIZE (NU_MIN_STACK_SIZE * 400)
38 /* Define the main task's priority */
39 #define TASK_PRIORITY 26
41 /* Define the main task's time slice */
42 #define TASK_SLICE 20
44 #define EPT_TEST_ADDR 59
46 #define NUM_TEST_EPS 4
48 #define MAX_RPMSG_BUFF_SIZE 512
49 #define PAYLOAD_MIN_SIZE 1
50 #define PAYLOAD_MAX_SIZE (MAX_RPMSG_BUFF_SIZE - 24)
51 #define NUM_PAYLOADS (PAYLOAD_MAX_SIZE/PAYLOAD_MIN_SIZE)
53 struct _payload {
54 unsigned long num;
55 unsigned long size;
56 char data[0];
57 }__attribute__((__packed__));
60 #endif /* M_EPT_FUNC_TEST_H_ */