diff options
Diffstat (limited to 'samsung-ipc/device/xmm6260/xmm6260_ipc.c')
-rw-r--r-- | samsung-ipc/device/xmm6260/xmm6260_ipc.c | 72 |
1 files changed, 9 insertions, 63 deletions
diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.c b/samsung-ipc/device/xmm6260/xmm6260_ipc.c index 0e17af5..7c84003 100644 --- a/samsung-ipc/device/xmm6260/xmm6260_ipc.c +++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.c @@ -39,22 +39,14 @@ #include <radio.h> -#include "xmm6260_ipc.h" #include "ipc_private.h" -#include "modemctl_common.h" - -int i9100_modem_bootstrap(struct ipc_client *client) -{ - return i9100_boot_modem(client); -} - -int i9250_modem_bootstrap(struct ipc_client *client) -{ - return i9250_boot_modem(client); -} +#include "xmm6260_ipc.h" +#include "xmm6260_loader.h" +#include "xmm6260_modemctl.h" +#include "modem_prj.h" -int xmm6260_ipc_send(struct ipc_client *client, struct ipc_message_info *request) +int xmm6260_ipc_fmt_client_send(struct ipc_client *client, struct ipc_message_info *request) { struct ipc_header *hdr; unsigned char *frame; @@ -92,7 +84,7 @@ int xmm6260_ipc_send(struct ipc_client *client, struct ipc_message_info *request return 0; } -int xmm6260_ipc_recv(struct ipc_client *client, struct ipc_message_info *response) +int xmm6260_ipc_fmt_client_recv(struct ipc_client *client, struct ipc_message_info *response) { unsigned char buf[IPC_MAX_XFER] = {}; unsigned char *data; @@ -143,7 +135,7 @@ int xmm6260_ipc_recv(struct ipc_client *client, struct ipc_message_info *respons return 0; } -int xmm6260_rfs_recv(struct ipc_client *client, struct ipc_message_info *response) +int xmm6260_ipc_rfs_client_recv(struct ipc_client *client, struct ipc_message_info *response) { unsigned char buf[IPC_MAX_XFER] = {}; struct rfs_hdr header; @@ -213,7 +205,7 @@ int xmm6260_rfs_recv(struct ipc_client *client, struct ipc_message_info *respons return 0; } -int xmm6260_rfs_send(struct ipc_client *client, struct ipc_message_info *request) +int xmm6260_ipc_rfs_client_send(struct ipc_client *client, struct ipc_message_info *request) { struct rfs_hdr *header = NULL; char *data = NULL; @@ -347,7 +339,7 @@ int xmm6260_ipc_power_off(void *io_data) int xmm6260_ipc_gprs_get_iface(char **iface) { // TODO: depends on CID - asprintf(iface, "rmnet0"); + asprintf(iface, GPRS_IFACE); return 0; } @@ -416,50 +408,4 @@ int xmm6260_ipc_common_data_get_fd(void *io_data) return (int) *(common_data); } -struct ipc_ops xmm6260_i9100_fmt_ops = { - .send = xmm6260_ipc_send, - .recv = xmm6260_ipc_recv, - .bootstrap = i9100_modem_bootstrap, -}; - -struct ipc_ops xmm6260_i9250_fmt_ops = { - .send = xmm6260_ipc_send, - .recv = xmm6260_ipc_recv, - .bootstrap = i9250_modem_bootstrap, -}; - -struct ipc_ops xmm6260_rfs_ops = { - .send = xmm6260_rfs_send, - .recv = xmm6260_rfs_recv, - .bootstrap = NULL, -}; - -struct ipc_handlers xmm6260_default_handlers = { - .read = xmm6260_ipc_read, - .write = xmm6260_ipc_write, - .open = xmm6260_ipc_open, - .close = xmm6260_ipc_close, - .power_on = xmm6260_ipc_power_on, - .power_off = xmm6260_ipc_power_off, - .common_data = NULL, - .common_data_create = xmm6260_ipc_common_data_create, - .common_data_destroy = xmm6260_ipc_common_data_destroy, - .common_data_set_fd = xmm6260_ipc_common_data_set_fd, - .common_data_get_fd = xmm6260_ipc_common_data_get_fd, -}; - -struct ipc_gprs_specs xmm6260_gprs_specs = { - .gprs_get_iface = xmm6260_ipc_gprs_get_iface, - .gprs_get_capabilities = xmm6260_ipc_gprs_get_capabilities, -}; - - -struct ipc_nv_data_specs xmm6260_nv_data_specs = { - .nv_data_path = "/factory/nv_data.bin", - .nv_data_md5_path = "/factory/nv_data.bin.md5", - .nv_state_path = "/factory/.nv_state", - .nv_data_bak_path = "/factory/.nv_data.bak", - .nv_data_md5_bak_path = "/factory/.nv_data.bak.md5", -}; - // vim:ts=4:sw=4:expandtab |