aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samsung-ipc/devices/i9300/i9300.h24
-rw-r--r--samsung-ipc/devices/n7100/n7100.h24
-rw-r--r--samsung-ipc/devices/xmm616/xmm616.h24
-rw-r--r--samsung-ipc/devices/xmm626/xmm626.h52
-rw-r--r--samsung-ipc/devices/xmm626/xmm626_hsic.h32
-rw-r--r--samsung-ipc/devices/xmm626/xmm626_mipi.h22
-rw-r--r--samsung-ipc/devices/xmm626/xmm626_sec_modem.h22
7 files changed, 99 insertions, 101 deletions
diff --git a/samsung-ipc/devices/i9300/i9300.h b/samsung-ipc/devices/i9300/i9300.h
index 9e63c4b..f5dfd72 100644
--- a/samsung-ipc/devices/i9300/i9300.h
+++ b/samsung-ipc/devices/i9300/i9300.h
@@ -20,19 +20,19 @@
#ifndef __I9300_H__
#define __I9300_H__
-#define I9300_MODEM_IMAGE_SIZE 0x1000000
-#define I9300_PSI_OFFSET 0x1000
-#define I9300_PSI_SIZE 0xE000
-#define I9300_EBL_OFFSET 0xF000
-#define I9300_EBL_SIZE 0x19000
-#define I9300_SEC_START_OFFSET 0x9FF800
-#define I9300_SEC_START_SIZE 0x800
-#define I9300_FIRMWARE_OFFSET 0x28000
-#define I9300_FIRMWARE_SIZE 0x9D7800
-#define I9300_NV_DATA_OFFSET 0xA00000
-#define I9300_NV_DATA_SIZE 0x200000
+#define I9300_MODEM_IMAGE_SIZE 0x1000000
+#define I9300_PSI_OFFSET 0x1000
+#define I9300_PSI_SIZE 0xE000
+#define I9300_EBL_OFFSET 0xF000
+#define I9300_EBL_SIZE 0x19000
+#define I9300_SEC_START_OFFSET 0x9FF800
+#define I9300_SEC_START_SIZE 0x800
+#define I9300_FIRMWARE_OFFSET 0x28000
+#define I9300_FIRMWARE_SIZE 0x9D7800
+#define I9300_NV_DATA_OFFSET 0xA00000
+#define I9300_NV_DATA_SIZE 0x200000
-#define I9300_MODEM_IMAGE_DEVICE "/dev/block/mmcblk0p7"
+#define I9300_MODEM_IMAGE_DEVICE "/dev/block/mmcblk0p7"
struct i9300_transport_data {
int fd;
diff --git a/samsung-ipc/devices/n7100/n7100.h b/samsung-ipc/devices/n7100/n7100.h
index 5ffd353..47088e1 100644
--- a/samsung-ipc/devices/n7100/n7100.h
+++ b/samsung-ipc/devices/n7100/n7100.h
@@ -20,19 +20,19 @@
#ifndef __N7100_H__
#define __N7100_H__
-#define N7100_MODEM_IMAGE_SIZE 0x1000000
-#define N7100_PSI_OFFSET 0x1000
-#define N7100_PSI_SIZE 0xE000
-#define N7100_EBL_OFFSET 0xF000
-#define N7100_EBL_SIZE 0x19000
-#define N7100_SEC_START_OFFSET 0x9FF800
-#define N7100_SEC_START_SIZE 0x800
-#define N7100_FIRMWARE_OFFSET 0x28000
-#define N7100_FIRMWARE_SIZE 0x9D7800
-#define N7100_NV_DATA_OFFSET 0xA00000
-#define N7100_NV_DATA_SIZE 0x200000
+#define N7100_MODEM_IMAGE_SIZE 0x1000000
+#define N7100_PSI_OFFSET 0x1000
+#define N7100_PSI_SIZE 0xE000
+#define N7100_EBL_OFFSET 0xF000
+#define N7100_EBL_SIZE 0x19000
+#define N7100_SEC_START_OFFSET 0x9FF800
+#define N7100_SEC_START_SIZE 0x800
+#define N7100_FIRMWARE_OFFSET 0x28000
+#define N7100_FIRMWARE_SIZE 0x9D7800
+#define N7100_NV_DATA_OFFSET 0xA00000
+#define N7100_NV_DATA_SIZE 0x200000
-#define N7100_MODEM_IMAGE_DEVICE "/dev/block/mmcblk0p10"
+#define N7100_MODEM_IMAGE_DEVICE "/dev/block/mmcblk0p10"
struct n7100_transport_data {
int fd;
diff --git a/samsung-ipc/devices/xmm616/xmm616.h b/samsung-ipc/devices/xmm616/xmm616.h
index 16ed059..eb3a21b 100644
--- a/samsung-ipc/devices/xmm616/xmm616.h
+++ b/samsung-ipc/devices/xmm616/xmm616.h
@@ -22,19 +22,19 @@
#ifndef __XMM616_H__
#define __XMM616_H__
-#define XMM616_AT "AT"
-#define XMM616_AT_COUNT 20
-#define XMM616_PSI_MAGIC 0x30
-#define XMM616_PSI_ACK 0x01
-#define XMM616_BOOTCORE_VERSION 0xF0
+#define XMM616_AT "AT"
+#define XMM616_AT_COUNT 20
+#define XMM616_PSI_MAGIC 0x30
+#define XMM616_PSI_ACK 0x01
+#define XMM616_BOOTCORE_VERSION 0xF0
-#define XMM616_NV_DATA_PATH "/efs/nv_data.bin"
-#define XMM616_NV_DATA_MD5_PATH "/efs/nv_data.bin.md5"
-#define XMM616_NV_DATA_BACKUP_PATH "/efs/.nv_data.bak"
-#define XMM616_NV_DATA_BACKUP_MD5_PATH "/efs/.nv_data.bak.md5"
-#define XMM616_NV_DATA_SECRET "Samsung_Android_RIL"
-#define XMM616_NV_DATA_SIZE 0x200000
-#define XMM616_NV_DATA_CHUNK_SIZE 0x1000
+#define XMM616_NV_DATA_PATH "/efs/nv_data.bin"
+#define XMM616_NV_DATA_MD5_PATH "/efs/nv_data.bin.md5"
+#define XMM616_NV_DATA_BACKUP_PATH "/efs/.nv_data.bak"
+#define XMM616_NV_DATA_BACKUP_MD5_PATH "/efs/.nv_data.bak.md5"
+#define XMM616_NV_DATA_SECRET "Samsung_Android_RIL"
+#define XMM616_NV_DATA_SIZE 0x200000
+#define XMM616_NV_DATA_CHUNK_SIZE 0x1000
int xmm616_psi_send(struct ipc_client *client, int serial_fd,
const void *psi_data, unsigned short psi_size);
diff --git a/samsung-ipc/devices/xmm626/xmm626.h b/samsung-ipc/devices/xmm626/xmm626.h
index 2648cc1..866b36c 100644
--- a/samsung-ipc/devices/xmm626/xmm626.h
+++ b/samsung-ipc/devices/xmm626/xmm626.h
@@ -20,32 +20,32 @@
#ifndef __XMM626_H__
#define __XMM626_H__
-#define XMM626_AT "ATAT"
-#define XMM626_PSI_PADDING 0xFF
-#define XMM626_PSI_MAGIC 0x30
-#define XMM626_SEC_END_MAGIC 0x0000
-#define XMM626_HW_RESET_MAGIC 0x111001
-#define XMM626_DATA_SIZE 0x1000
-#define XMM626_DATA_SIZE_LIMIT 0x80000
-
-#define XMM626_COMMAND_SET_PORT_CONFIG 0x86
-#define XMM626_COMMAND_SEC_START 0x204
-#define XMM626_COMMAND_SEC_END 0x205
-#define XMM626_COMMAND_HW_RESET 0x208
-#define XMM626_COMMAND_FLASH_SET_ADDRESS 0x802
-#define XMM626_COMMAND_FLASH_WRITE_BLOCK 0x804
-
-#define XMM626_FIRMWARE_ADDRESS 0x60300000
-#define XMM626_NV_DATA_ADDRESS 0x60E80000
-#define XMM626_MPS_DATA_ADDRESS 0x61080000
-
-#define XMM626_NV_DATA_PATH "/efs/nv_data.bin"
-#define XMM626_NV_DATA_MD5_PATH "/efs/nv_data.bin.md5"
-#define XMM626_NV_DATA_BACKUP_PATH "/efs/.nv_data.bak"
-#define XMM626_NV_DATA_BACKUP_MD5_PATH "/efs/.nv_data.bak.md5"
-#define XMM626_NV_DATA_SECRET "Samsung_Android_RIL"
-#define XMM626_NV_DATA_SIZE 0x200000
-#define XMM626_NV_DATA_CHUNK_SIZE 0x1000
+#define XMM626_AT "ATAT"
+#define XMM626_PSI_PADDING 0xFF
+#define XMM626_PSI_MAGIC 0x30
+#define XMM626_SEC_END_MAGIC 0x0000
+#define XMM626_HW_RESET_MAGIC 0x111001
+#define XMM626_DATA_SIZE 0x1000
+#define XMM626_DATA_SIZE_LIMIT 0x80000
+
+#define XMM626_COMMAND_SET_PORT_CONFIG 0x86
+#define XMM626_COMMAND_SEC_START 0x204
+#define XMM626_COMMAND_SEC_END 0x205
+#define XMM626_COMMAND_HW_RESET 0x208
+#define XMM626_COMMAND_FLASH_SET_ADDRESS 0x802
+#define XMM626_COMMAND_FLASH_WRITE_BLOCK 0x804
+
+#define XMM626_FIRMWARE_ADDRESS 0x60300000
+#define XMM626_NV_DATA_ADDRESS 0x60E80000
+#define XMM626_MPS_DATA_ADDRESS 0x61080000
+
+#define XMM626_NV_DATA_PATH "/efs/nv_data.bin"
+#define XMM626_NV_DATA_MD5_PATH "/efs/nv_data.bin.md5"
+#define XMM626_NV_DATA_BACKUP_PATH "/efs/.nv_data.bak"
+#define XMM626_NV_DATA_BACKUP_MD5_PATH "/efs/.nv_data.bak.md5"
+#define XMM626_NV_DATA_SECRET "Samsung_Android_RIL"
+#define XMM626_NV_DATA_SIZE 0x200000
+#define XMM626_NV_DATA_CHUNK_SIZE 0x1000
unsigned char xmm626_crc_calculate(const void *data, size_t size);
diff --git a/samsung-ipc/devices/xmm626/xmm626_hsic.h b/samsung-ipc/devices/xmm626/xmm626_hsic.h
index 6fd374c..b35e1ba 100644
--- a/samsung-ipc/devices/xmm626/xmm626_hsic.h
+++ b/samsung-ipc/devices/xmm626/xmm626_hsic.h
@@ -21,22 +21,22 @@
#ifndef __XMM626_HSIC_H__
#define __XMM626_HSIC_H__
-#define XMM626_HSIC_BOOT0_ACK 0xF0
-#define XMM626_HSIC_PSI_UNKNOWN_COUNT 22
-#define XMM626_HSIC_PSI_CRC_ACK 0x01
-#define XMM626_HSIC_PSI_CRC_ACK_COUNT 2
-#define XMM626_HSIC_PSI_ACK 0xAA00
-#define XMM626_HSIC_EBL_SIZE_ACK 0xCCCC
-#define XMM626_HSIC_EBL_ACK 0xA551
-#define XMM626_HSIC_EBL_CHUNK 0x4000
-#define XMM626_HSIC_PORT_CONFIG_SIZE 0x4C
-#define XMM626_HSIC_SET_PORT_CONFIG_SIZE 0x800
-#define XMM626_HSIC_SEC_START_SIZE 0x4000
-#define XMM626_HSIC_SEC_END_SIZE 0x4000
-#define XMM626_HSIC_HW_RESET_SIZE 0x4000
-#define XMM626_HSIC_FLASH_SET_ADDRESS_SIZE 0x4000
-#define XMM626_HSIC_FLASH_WRITE_BLOCK_SIZE 0x4000
-#define XMM626_HSIC_MODEM_DATA_CHUNK 0x4000
+#define XMM626_HSIC_BOOT0_ACK 0xF0
+#define XMM626_HSIC_PSI_UNKNOWN_COUNT 22
+#define XMM626_HSIC_PSI_CRC_ACK 0x01
+#define XMM626_HSIC_PSI_CRC_ACK_COUNT 2
+#define XMM626_HSIC_PSI_ACK 0xAA00
+#define XMM626_HSIC_EBL_SIZE_ACK 0xCCCC
+#define XMM626_HSIC_EBL_ACK 0xA551
+#define XMM626_HSIC_EBL_CHUNK 0x4000
+#define XMM626_HSIC_PORT_CONFIG_SIZE 0x4C
+#define XMM626_HSIC_SET_PORT_CONFIG_SIZE 0x800
+#define XMM626_HSIC_SEC_START_SIZE 0x4000
+#define XMM626_HSIC_SEC_END_SIZE 0x4000
+#define XMM626_HSIC_HW_RESET_SIZE 0x4000
+#define XMM626_HSIC_FLASH_SET_ADDRESS_SIZE 0x4000
+#define XMM626_HSIC_FLASH_WRITE_BLOCK_SIZE 0x4000
+#define XMM626_HSIC_MODEM_DATA_CHUNK 0x4000
struct xmm626_hsic_psi_header {
unsigned char magic;
diff --git a/samsung-ipc/devices/xmm626/xmm626_mipi.h b/samsung-ipc/devices/xmm626/xmm626_mipi.h
index 961744a..4d389df 100644
--- a/samsung-ipc/devices/xmm626/xmm626_mipi.h
+++ b/samsung-ipc/devices/xmm626/xmm626_mipi.h
@@ -21,17 +21,17 @@
#ifndef __XMM626_MIPI_H__
#define __XMM626_MIPI_H__
-#define XMM626_MIPI_BOOT0_ACK 0xFFFF
-#define XMM626_MIPI_BOOT1_MAGIC 0x02
-#define XMM626_MIPI_BOOT1_ACK 0xAA00
-#define XMM626_MIPI_PSI_ACK 0xDD01
-#define XMM626_MIPI_EBL_SIZE_ACK 0xCCCC
-#define XMM626_MIPI_EBL_ACK 0xA551
-#define XMM626_MIPI_EBL_CHUNK 0xDFC
-#define XMM626_MIPI_MODEM_DATA_CHUNK 0xDF2
-#define XMM626_MIPI_COMMAND_HEADER_MAGIC 0x02
-#define XMM626_MIPI_COMMAND_FOOTER_MAGIC 0x03
-#define XMM626_MIPI_COMMAND_FOOTER_UNKNOWN 0xEAEA
+#define XMM626_MIPI_BOOT0_ACK 0xFFFF
+#define XMM626_MIPI_BOOT1_MAGIC 0x02
+#define XMM626_MIPI_BOOT1_ACK 0xAA00
+#define XMM626_MIPI_PSI_ACK 0xDD01
+#define XMM626_MIPI_EBL_SIZE_ACK 0xCCCC
+#define XMM626_MIPI_EBL_ACK 0xA551
+#define XMM626_MIPI_EBL_CHUNK 0xDFC
+#define XMM626_MIPI_MODEM_DATA_CHUNK 0xDF2
+#define XMM626_MIPI_COMMAND_HEADER_MAGIC 0x02
+#define XMM626_MIPI_COMMAND_FOOTER_MAGIC 0x03
+#define XMM626_MIPI_COMMAND_FOOTER_UNKNOWN 0xEAEA
struct xmm626_mipi_psi_header {
unsigned char padding;
diff --git a/samsung-ipc/devices/xmm626/xmm626_sec_modem.h b/samsung-ipc/devices/xmm626/xmm626_sec_modem.h
index ed2af82..728320e 100644
--- a/samsung-ipc/devices/xmm626/xmm626_sec_modem.h
+++ b/samsung-ipc/devices/xmm626/xmm626_sec_modem.h
@@ -20,18 +20,16 @@
#ifndef __XMM626_SEC_MODEM_H__
#define __XMM626_SEC_MODEM_H__
-#define XMM626_SEC_MODEM_BUFFER_SIZE_MAX 0x80000
-
-#define XMM626_SEC_MODEM_BOOT0_DEVICE "/dev/umts_boot0"
-#define XMM626_SEC_MODEM_BOOT1_DEVICE "/dev/umts_boot1"
-#define XMM626_SEC_MODEM_IPC0_DEVICE "/dev/umts_ipc0"
-#define XMM626_SEC_MODEM_RFS0_DEVICE "/dev/umts_rfs0"
-#define XMM626_SEC_MODEM_LINK_PM_DEVICE "/dev/link_pm"
-#define XMM626_SEC_MODEM_EHCI_POWER_SYSFS "/sys/devices/platform/s5p-ehci/ehci_power"
-#define XMM626_SEC_MODEM_OHCI_POWER_SYSFS "/sys/devices/platform/s5p-ohci/ohci_power"
-
-#define XMM626_SEC_MODEM_GPRS_IFACE_PREFIX "rmnet"
-#define XMM626_SEC_MODEM_GPRS_IFACE_COUNT 3
+#define XMM626_SEC_MODEM_BOOT0_DEVICE "/dev/umts_boot0"
+#define XMM626_SEC_MODEM_BOOT1_DEVICE "/dev/umts_boot1"
+#define XMM626_SEC_MODEM_IPC0_DEVICE "/dev/umts_ipc0"
+#define XMM626_SEC_MODEM_RFS0_DEVICE "/dev/umts_rfs0"
+#define XMM626_SEC_MODEM_LINK_PM_DEVICE "/dev/link_pm"
+#define XMM626_SEC_MODEM_EHCI_POWER_SYSFS "/sys/devices/platform/s5p-ehci/ehci_power"
+#define XMM626_SEC_MODEM_OHCI_POWER_SYSFS "/sys/devices/platform/s5p-ohci/ohci_power"
+
+#define XMM626_SEC_MODEM_GPRS_IFACE_PREFIX "rmnet"
+#define XMM626_SEC_MODEM_GPRS_IFACE_COUNT 3
int xmm626_sec_modem_power(int device_fd, int power);
int xmm626_sec_modem_boot_power(int device_fd, int power);