blob: 1deef7e11fc31efab47720b6c8215c783e46ef95 (
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
|
#ifndef __QMI_STRUCT_H
#define __QMI_STRUCT_H
struct qmux {
uint16_t len;
uint8_t flags;
uint8_t service;
uint8_t client;
} __packed;
struct tlv {
uint8_t type;
uint16_t len;
uint8_t data[];
} __packed;
struct qmi_ctl {
uint8_t transaction;
uint16_t message;
uint16_t tlv_len;
struct tlv tlv[];
} __packed;
struct qmi_svc {
uint16_t transaction;
uint16_t message;
uint16_t tlv_len;
struct tlv tlv[];
} __packed;
struct qmi_msg {
uint8_t marker;
struct qmux qmux;
uint8_t flags;
union {
struct qmi_ctl ctl;
struct qmi_svc svc;
};
} __packed;
#endif
|