3
* oFono - Open Source Telephony
5
* Copyright (C) 2008-2012 Intel Corporation. All rights reserved.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
#define QMI_UIM_READ_TRANSPARENT 32 /* Read data */
23
#define QMI_UIM_READ_RECORD 33 /* Read one or more records */
24
#define QMI_UIM_WRITE_TRANSPARENT 34 /* Write data */
25
#define QMI_UIM_WRITE_RECORD 35 /* Write a record */
26
#define QMI_UIM_GET_FILE_ATTRIBUTES 36 /* Get file attributes */
28
#define QMI_UIM_EVENT_REGISTRATION 46 /* Register for indications */
29
#define QMI_UIM_GET_CARD_STATUS 47 /* Get card status */
32
/* Register for indications */
33
#define QMI_UIM_PARAM_EVENT_MASK 0x01 /* uint32 */
34
#define QMI_UIM_RESULT_EVENT_MASK 0x10 /* uint32 */
36
#define QMI_UIM_RESULT_CARD_STATUS 0x10
37
struct qmi_uim_card_status {
38
uint16_t index_gw_pri;
39
uint16_t index_1x_pri;
40
uint16_t index_gw_sec;
41
uint16_t index_1x_sec;
43
} __attribute__((__packed__));
45
struct qmi_uim_slot_info {
52
} __attribute__((__packed__));
54
struct qmi_uim_app_info1 {
58
uint8_t perso_feature;
59
uint8_t perso_retries;
60
uint8_t perso_unblock_retries;
63
} __attribute__((__packed__));
65
struct qmi_uim_app_info2 {
73
} __attribute__((__packed__));
75
struct qmi_uim_file_attributes {
82
uint16_t sec_read_mask;
84
uint16_t sec_write_mask;
86
uint16_t sec_increase_mask;
87
uint8_t sec_deactivate;
88
uint16_t sec_deactivate_mask;
90
uint16_t sec_activate_mask;
93
} __attribute__((__packed__));