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