blob: 2adbfff7882f5a8ca90eacf5eec3af4b6ff314e0 (
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
|
/*
* This file is part of QMI-RIL.
*
* Copyright (C) 2013-2014 Paul Kocialkowski <contact@paulk.fr>
* Copyright (C) 2017 Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
*
* QMI-RIL is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* QMI-RIL 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.
*
* You should have received a copy of the GNU General Public License
* along with QMI-RIL. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SIM_H_
#define _SIM_H_
#define SIM_COMMAND_READ_BINARY 0xB0
#define SIM_COMMAND_UPDATE_BINARY 0xD6
#define SIM_COMMAND_READ_RECORD 0xB2
#define SIM_COMMAND_UPDATE_RECORD 0xDC
#define SIM_COMMAND_SEEK 0xA2
#define SIM_COMMAND_GET_RESPONSE 0xC0
#define SIM_FILE_STRUCTURE_TRANSPARENT 0x00
#define SIM_FILE_STRUCTURE_LINEAR_FIXED 0x01
#define SIM_FILE_TYPE_MF 0x01
#define SIM_FILE_TYPE_DF 0x02
#define SIM_FILE_TYPE_EF 0x04
struct sim_file_response {
unsigned char rfu12[2];
unsigned short file_size;
unsigned short file_id;
unsigned char file_type;
unsigned char rfu3;
unsigned char access_condition[3];
unsigned char file_status;
unsigned char file_length;
unsigned char file_structure;
unsigned char record_length;
} __attribute__((__packed__));
#endif
|