aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/device/xmm6260/modemctl_common.h
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-02 12:55:22 +0400
committerPaul Kocialkowski <contact@paulk.fr>2012-07-04 17:53:02 +0200
commit2454f7265a17afa73273dc09019adb90f77c0007 (patch)
treef0b6ea5be3baa2332a33d604f97fbfe616b042b2 /samsung-ipc/device/xmm6260/modemctl_common.h
parent3ee91dd1a20083d571718e2ee07570ac2c8cfe7c (diff)
downloadexternal_libsamsung-ipc-2454f7265a17afa73273dc09019adb90f77c0007.zip
external_libsamsung-ipc-2454f7265a17afa73273dc09019adb90f77c0007.tar.gz
external_libsamsung-ipc-2454f7265a17afa73273dc09019adb90f77c0007.tar.bz2
Update firmware loader to the latest version, fix makefiles for
maguro/galaxys2
Diffstat (limited to 'samsung-ipc/device/xmm6260/modemctl_common.h')
-rw-r--r--samsung-ipc/device/xmm6260/modemctl_common.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/samsung-ipc/device/xmm6260/modemctl_common.h b/samsung-ipc/device/xmm6260/modemctl_common.h
index 8817d94..2f0d770 100644
--- a/samsung-ipc/device/xmm6260/modemctl_common.h
+++ b/samsung-ipc/device/xmm6260/modemctl_common.h
@@ -110,6 +110,15 @@ int modemctl_link_set_enabled(fwloader_context *ctx, bool enabled);
int modemctl_wait_link_ready(fwloader_context *ctx);
/*
+ * @brief Poll the modem until it gets online or times out
+ *
+ * @param ctx [in] firmware loader context
+ * @return Negative value indicating error code
+ * @return ioctl call result
+ */
+int modemctl_wait_modem_online(fwloader_context *ctx);
+
+/*
* @brief Sets the modem power
*
* @param ctx [in] firmware loader context
@@ -145,4 +154,14 @@ int boot_modem_i9100(void);
*/
int boot_modem_i9250(void);
+/*
+ * @brief Calculate the checksum for the XMM6260 bootloader protocol
+ *
+ * @param data [in] the data to calculate the checksum for
+ * @param offset [in] number of bytes to skip
+ * @param length [in] length of data in bytes
+ * @return checksum value
+ */
+unsigned char calculateCRC(void* data, size_t offset, size_t length);
+
#endif //__MODEMCTL_COMMON_H__