blob: 79c18452878c6cb5b65746d45ade027305cf4f1f [file] [log] [blame]
Karthikeyan Ramasubramaniana9859e82012-07-12 13:10:42 -06001/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13#ifndef MSM_QMI_TEST_SERVICE_V01_H
14#define MSM_QMI_TEST_SERVICE_V01_H
15
16#include <mach/msm_qmi_interface.h>
17
18#define TEST_MED_DATA_SIZE_V01 8192
19#define TEST_MAX_NAME_SIZE_V01 255
20
21#define TEST_PING_REQ_MSG_ID_V01 0x20
22#define TEST_DATA_REQ_MSG_ID_V01 0x21
23
24#define TEST_PING_REQ_MAX_MSG_LEN_V01 266
25#define TEST_DATA_REQ_MAX_MSG_LEN_V01 8456
26
27struct test_name_type_v01 {
28 uint32_t name_len;
29 char name[TEST_MAX_NAME_SIZE_V01];
30};
31
32struct test_ping_req_msg_v01 {
33 char ping[4];
34
35 uint8_t client_name_valid;
36 struct test_name_type_v01 client_name;
37};
38
39struct test_ping_resp_msg_v01 {
40 struct qmi_response_type_v01 resp;
41
42 uint8_t pong_valid;
43 char pong[4];
44
45 uint8_t service_name_valid;
46 struct test_name_type_v01 service_name;
47};
48
49struct test_data_req_msg_v01 {
50 uint32_t data_len;
51 uint8_t data[TEST_MED_DATA_SIZE_V01];
52
53 uint8_t client_name_valid;
54 struct test_name_type_v01 client_name;
55};
56
57struct test_data_resp_msg_v01 {
58 struct qmi_response_type_v01 resp;
59
60 uint8_t data_valid;
61 uint32_t data_len;
62 uint8_t data[TEST_MED_DATA_SIZE_V01];
63
64 uint8_t service_name_valid;
65 struct test_name_type_v01 service_name;
66};
67
68extern struct elem_info test_ping_req_msg_v01_ei[];
69extern struct elem_info test_data_req_msg_v01_ei[];
70extern struct elem_info test_ping_resp_msg_v01_ei[];
71extern struct elem_info test_data_resp_msg_v01_ei[];
72
73#endif