aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc.c
Commit message (Collapse)AuthorAgeFilesLines
* External fds polling supportPaul Kocialkowski2014-08-071-3/+3
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GPRS cid count is unsigned integerPaul Kocialkowski2014-07-281-5/+5
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc: Carefully check for name or board name when detecting devicePaul Kocialkowski2014-03-271-1/+11
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Global include pathPaul Kocialkowski2014-02-261-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc_devices: Proper type for count and indexPaul Kocialkowski2014-02-231-4/+9
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc: Consistent coding style and major cleanupPaul Kocialkowski2014-02-151-137/+95
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* rfs: Proper type for size definitionsPaul Kocialkowski2014-02-131-4/+4
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* rfs: Proper IPC functions for nv_data specs, without generic fallback valuesPaul Kocialkowski2014-02-111-0/+70
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Good-looking copyright blocks, with the right order in copyright linesPaul Kocialkowski2014-01-251-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Device detection mechanism improvments and more constitant devices namingPaul Kocialkowski2014-01-131-45/+68
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc.c: Check heandlers data create/destroy pointersPaul Kocialkowski2013-07-031-2/+4
| | | | | Change-Id: I34cc6af9596500d4daf035250b4c25639e813b51 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rework handlers and ipc functions for better consistencyPaul Kocialkowski2013-06-271-179/+131
| | | | | | | | | | | | | | | | | | | | Detailed list of the changes introduced by this commit: * Rename ipc_client_bootstrap_modem to ipc_client_bootstrap * Rename ipc_client_new/free to ipc_client_create/destroy * Rename log_handler to log_callback and change arguments order * Remove handlers common data and fd mechanisms * Set transport, power and gprs common data for handlers * Add data_create and data_destroy handlers * Rework arguments order for handlers * Add poll transport handler * Remove functions types typedefs * Remove dumb ipc_client_send_* functions * Remove ipc_client_gprs_handlers_available * Adapt device files for the new API changes * Adapt modemctrl for the new API changes Change-Id: Ia9ba1045dbbf9f5e31a201aa8629b49019158972 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc.c: Coding style cosmeticsPaul Kocialkowski2013-06-261-48/+27
| | | | | Change-Id: I4a1d423bb84002e71af54daa0f5227b7a2859a63 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc_client_send: Single function with return codePaul Kocialkowski2013-06-261-22/+5
| | | | | Change-Id: I480b2496dabfada37e1ce60ab20401adf02b2e01 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Coding style: Move ; around in for statementsPaul Kocialkowski2013-06-251-2/+2
| | | | | Change-Id: I08cc4a5c404d1b513c56aa1eaeb68dfa6768a4e4 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Add newline and indentation on long functions namesPaul Kocialkowski2013-06-251-9/+16
| | | | | Change-Id: Ie393301a04523816e7aa674e57a4c3a2eb93247e Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Refactor code for consistent coding style and avoid using assertPaul Kocialkowski2013-06-251-3/+2
| | | | | Change-Id: Idca5edb70869e07d35744301b185df02e42f5b4c Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Renamed ipc_private.h to ipc.hPaul Kocialkowski2013-06-251-1/+1
| | | | | Change-Id: Ie80159518b6d7d1a6422d3dc47a903eb7fdad6d8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Moved radio.h and types.h to samsung-ipc.h (API) and protocol.h (IPC protocol).Paul Kocialkowski2013-06-251-1/+1
| | | | | | | Also some minor headers cosmetics. Change-Id: Id2b988b118d956e91827b9b840e3f384424593ae Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Permit explicit board name instead of device namePaul Kocialkowski2012-12-151-10/+10
| | | | | Change-Id: I7ed51c0a35061daeaac302c8bac90a1c3b577e1d Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc: reset client structure after allocation to zeroSimon Busch2012-11-141-0/+2
| | | | | | | | | When we're just allocating memory and do not care about the content of the allocated memory area we can head into cases where the internal parts of the structures are already set with a random value and then causes segfaults cause code peaces are trying to access invalid memory areas. Signed-off-by: Simon Busch <morphis@gravedo.de>
* Fix wrong device detection; we have to check for board_name instead of ↵Simon Busch2012-11-141-1/+1
| | | | | | device name Signed-off-by: Simon Busch <morphis@gravedo.de>
* GPRS: Pass CID to activate/deactivate functionsPaul Kocialkowski2012-11-111-4/+4
| | | | | | | Aries: Use CID to activate/deactivate the corresponding iface Change-Id: Ifd153eda59404921bc6ea12d27f94d5aee7b06ff Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Kernel version in IPC device desc, with detection codePaul Kocialkowski2012-10-131-12/+39
| | | | | Change-Id: Ica8dd604ddaff527436e9ba909ab7d22eda9a875 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* samsung-ipc: cleanup to match common code styleSimon Busch2012-09-211-2/+0
|
* switch to GPLv2+ as license as decided by all authors per mailSimon Busch2012-09-211-1/+1
|
* ipc: don't set a default log handler; should be set only on demandSimon Busch2012-09-201-2/+0
|
* ipc: fix gprs_get_iface functionsPaul Kocialkowski2012-09-101-1/+1
| | | | | Change-Id: Idea112725ca55ea341d11055a332b1c8625e614c Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc: refactor ipc_client_gprs_get_iface method to return iface name instead ↵Simon Busch2012-09-091-3/+3
| | | | | | | of using a parameter Allocating memory and setting a pointer to it for the user via a parameter is kind of unnecessary. It's better to return the pointer instead.
* Merge remote-tracking branch 'astarasikov/merge-24-aug'Simon Busch2012-08-271-1/+3
|\ | | | | | | | | Conflicts: include/Makefile.am
| * Merge tag 'tuna-stc-jb-v1' into morphis-masterAlexander Tarasikov2012-08-241-1/+3
| |\ | | | | | | | | | | | | Conflicts: samsung-ipc/device/maguro/maguro_loader.c
| | * Silently ignore null client/message in ipc logAlexander Tarasikov2012-07-261-1/+3
| | |
* | | Add another method to free space used by a response messageSimon Busch2012-08-241-0/+8
|/ /
* | Simplify open/close handler signatureSimon Busch2012-08-081-2/+2
| |
* | GPRS: Get interface name given the connection ID (cid)Paul Kocialkowski2012-07-081-2/+2
|/ | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Reworked nv_data handling in nv_data_specs, moved some functions to gprs_specsPaul Kocialkowski2012-07-041-10/+10
| | | | | | | | | | | | | | nv_data: * Reworked device-specific nv_data passthrough functions * Moved default values in rfs.h * Added more specific infos (size, chunk size, secret) * Applied to xmm6260 device gprs: * Moved non-io-related gprs handlers to gprs_specs * Applied to crespo, aries and xmm6260 devices Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GPRS: New capabilities structure and related handlerPaul Kocialkowski2012-07-041-0/+10
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Allow EFS path to be overriden per-boardAlexander Tarasikov2012-07-041-0/+2
|
* Function to check if GPRS activation/deactivation functions are availablePaulK2012-06-071-1/+14
| | | | Signed-off-by: PaulK <contact@paulk.fr>
* Introducing device-specific GPRS activation/deactivation functions mechanismPaulK2012-06-061-0/+37
| | | | Signed-off-by: PaulK <contact@paulk.fr>
* Fixed coding style: space after if, for, while, etcPaulK2012-02-011-20/+20
|
* Fixed H1 device and devices-related fixesPaulK2012-02-031-2/+13
|
* Adjust for recent changes to device creation structureSimon Busch2012-02-031-40/+1
| | | | Signed-off-by: Simon Busch <morphis@gravedo.de>
* Merge remote-tracking branch 'origin/paulk/rework-device-specific' into ↵Simon Busch2012-02-031-22/+58
|\ | | | | | | | | | | | | | | | | morphis/rework-device-specific Conflicts: include/radio.h samsung-ipc/ipc.c samsung-ipc/ipc_private.h
| * Modified ipc devices handling to use a table and permit explicit device namePaulK2012-02-031-40/+38
| |
| * Register aries handlers on library initializationSimon Busch2012-01-301-2/+4
| | | | | | | | Signed-off-by: Simon Busch <morphis@gravedo.de>
| * Rework IPC client creation to detect device automatically on startupSimon Busch2012-01-301-4/+55
| | | | | | | | Signed-off-by: Simon Busch <morphis@gravedo.de>
| * Rework device specific code so we can build one library for all devices nowSimon Busch2012-01-301-16/+23
| | | | | | | | Signed-off-by: Simon Busch <morphis@gravedo.de>
* | Register aries handlers on library initializationSimon Busch2012-02-031-2/+5
| | | | | | | | Signed-off-by: Simon Busch <morphis@gravedo.de>
* | Rework IPC client creation to detect device automatically on startupSimon Busch2012-02-031-4/+55
| | | | | | | | Signed-off-by: Simon Busch <morphis@gravedo.de>