aboutsummaryrefslogtreecommitdiffstats
path: root/include/sec.h
diff options
context:
space:
mode:
authorJoerie de Gram <j.de.gram@gmail.com>2011-07-28 17:28:40 +0200
committerJoerie de Gram <j.de.gram@gmail.com>2011-07-28 17:45:37 +0200
commiteb964932d2708ee1bae9bdae493a4cfc5e59da5d (patch)
treebbc626802de5bddf2fe68ceb64ec03f19a52be52 /include/sec.h
parent6e47b9ecdbe6732482123073aebea221b674917f (diff)
downloadexternal_libsamsung-ipc-eb964932d2708ee1bae9bdae493a4cfc5e59da5d.zip
external_libsamsung-ipc-eb964932d2708ee1bae9bdae493a4cfc5e59da5d.tar.gz
external_libsamsung-ipc-eb964932d2708ee1bae9bdae493a4cfc5e59da5d.tar.bz2
Cleanup, preliminary calling/sms support
Diffstat (limited to 'include/sec.h')
-rw-r--r--include/sec.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/sec.h b/include/sec.h
new file mode 100644
index 0000000..9f50ca6
--- /dev/null
+++ b/include/sec.h
@@ -0,0 +1,53 @@
+/**
+ * This file is part of libmsm-h1.
+ *
+ * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ *
+ * libmsm-h1 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.
+ *
+ * libmsm-h1 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 libmsm-h1. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef __SEC_H__
+#define __SEC_H__
+
+#define MSM_SEC_PIN_STATUS 0x0501
+#define MSM_SEC_PHONE_LOCK 0x0502
+#define MSM_SEC_CHANGE_LOCKING_PW 0x0503
+#define MSM_SEC_SIM_LANG 0x0504
+#define MSM_SEC_RSIM_ACCESS 0x0505
+#define MSM_SEC_GSIM_ACCESS 0x0506
+#define MSM_SEC_SIM_ICC_TYPE 0x0507
+#define MSM_SEC_LOCK_INFO 0x0508
+#define MSM_SEC_ISIM_AUTH 0x0509
+
+#define MSM_SEC_PIN_SIM_INITIALIZING 0x00
+#define MSM_SEC_PIN_SIM_NSIDE_PF_ERROR 0x02
+#define MSM_SEC_PIN_SIM_LOCK_SC 0x03
+#define MSM_SEC_PIN_SIM_LOCK_FD 0x04
+#define MSM_SEC_PIN_SIM_CARD_NOT_PRESENT 0x80
+#define MSM_SEC_PIN_SIM_CARD_ERROR 0x81
+#define MSM_SEC_PIN_SIM_INIT_COMPLETE 0x82
+#define MSM_SEC_PIN_SIM_PB_INIT_COMPLETE 0x83
+
+#define MSM_SEC_PIN_SIM_LOCK_SC_PIN1_REQ 0x01
+#define MSM_SEC_PIN_SIM_LOCK_SC_PUK_REQ 0x02
+#define MSM_SEC_PIN_SIM_LOCK_SC_CARD_BLOCKED 0x05
+
+struct msm_sec_pin_status {
+ unsigned char type;
+ unsigned char key;
+} __attribute__((__packed__));
+
+#endif
+