aboutsummaryrefslogtreecommitdiff
path: root/u300-ril-oem-msg.h
blob: 555597eec3f888e9c096d01e500bfedcd21cbf8f (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* ST-Ericsson U300 RIL
**
** Copyright (C) ST-Ericsson AB 2008-2010
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
** Based on reference-ril by The Android Open Source Project.
**
** Heavily modified for ST-Ericsson U300 modems.
** Author: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
*/

#ifndef U300_RIL_OEM_MSG_H
#define U300_RIL_OEM_MSG_H 1

#include "utils/String8.h"

#define U300_RIL_OEM_SIG        (0x73742D65) /*'st-e'*/

struct u300_ril_oem_hdr {
    uint32_t sig;                /* = U300_RIL_OEM_SIG */
    uint32_t msg_id;
};

/* Needs to be in sync with com.stericsson.telephony.OemRil */
enum u300_ril_oem_msg_id {
    U300_RIL_OEM_MSG_UNSOL_FREQUENCY_REPORT         = -3,

    U300_RIL_OEM_MSG_PING                           = 1,
    U300_RIL_OEM_MSG_NETWORK_SEARCH_AND_SET         = 2,
    U300_RIL_OEM_MSG_REQUEST_FREQUENCY_REPORT       = 3,
    U300_RIL_OEM_MSG_UPDATE_FREQUENCY_SUBSCRIPTION  = 4,
    U300_RIL_OEM_MSG_OPEN_LOGICAL_CHANNEL           = 5,
    U300_RIL_OEM_MSG_CLOSE_LOGICAL_CHANNEL          = 6,
    U300_RIL_OEM_MSG_UICC_LOGICAL_CHANNEL_ACCESS    = 7,
    U300_RIL_OEM_MSG_SIM_ACCESS                     = 8,
    U300_RIL_OEM_MSG_FAST_DORMANCY                  = 9,
    U300_RIL_OEM_MSG_LAST, /* Should be last */
};


#ifdef U300_RIL_OEM_MSG_SELFTEST
/* ping */

struct u300_ril_oem_ping_request {
    android::String8  val_string;
    uint32_t val_i32;
};

struct u300_ril_oem_ping_response {
    android::String8  val_string;
    uint32_t val_i32;
};
#endif /* #ifdef U300_RIL_OEM_MSG_SELFTEST */

/* network_search_and_set */
/* network_search_and_set_request has no arguments */
/* network_search_and_set_request has no return value */

/* frequency subscription */

struct u300_ril_oem_frequency_subscription_request {
    uint32_t enabled;
};

struct u300_ril_oem_open_logical_channel_request {
    android::String8 application_id_string;
};

struct u300_ril_oem_open_logical_channel_response {
    uint32_t session_id;
};

struct u300_ril_oem_close_logical_channel_request {
    uint32_t channel_session_id;
};

struct u300_ril_oem_uicc_logical_channel_access_request {
    uint32_t channel_session_id_val_i32;
    android::String8 command_val_string;
};

struct u300_ril_oem_uicc_logical_channel_access_response {
    android::String8 response_val_string;
};

struct u300_ril_oem_sim_access_request {
  android::String8 command_val_string;
};

struct u300_ril_oem_sim_access_response {
    android::String8 response_val_string;
};

/* fast dormancy */
/* fast_dormancy_request has no arguments */
/* fast_dormancy_request has no return value */

#endif