From c82f06f5611499f3b47ca7a872afc3c9bca328a2 Mon Sep 17 00:00:00 2001 From: Pierre Peiffer Date: Wed, 7 Sep 2011 15:21:05 +0200 Subject: U8500 CM: remove useless files Remove some useless files from the NMF-CM driver. ST-Ericsson ID: 360466 ST-Ericsson Linux next: - Signed-off-by: Pierre Peiffer Change-Id: I05eae0cf823b44b0861bff6aedc5341d5cc1d8d0 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32588 Reviewed-by: Pierre PEIFFER Tested-by: Pierre PEIFFER --- drivers/staging/nmf-cm/ee/api/ee.h | 197 ----------------------------- drivers/staging/nmf-cm/ee/api/ee_type.h | 32 ----- drivers/staging/nmf-cm/ee/api/list.idt | 18 --- drivers/staging/nmf-cm/ee/api/outnotify.h | 14 -- drivers/staging/nmf-cm/ee/api/priority.idt | 24 ---- 5 files changed, 285 deletions(-) delete mode 100644 drivers/staging/nmf-cm/ee/api/ee.h delete mode 100644 drivers/staging/nmf-cm/ee/api/ee_type.h delete mode 100644 drivers/staging/nmf-cm/ee/api/list.idt delete mode 100644 drivers/staging/nmf-cm/ee/api/outnotify.h delete mode 100644 drivers/staging/nmf-cm/ee/api/priority.idt diff --git a/drivers/staging/nmf-cm/ee/api/ee.h b/drivers/staging/nmf-cm/ee/api/ee.h deleted file mode 100644 index bde3cee9425..00000000000 --- a/drivers/staging/nmf-cm/ee/api/ee.h +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright (C) ST-Ericsson SA 2010. All rights reserved. - * This code is ST-Ericsson proprietary and confidential. - * Any use of the code for whatever purpose is subject to - * specific written permission of ST-Ericsson SA. - */ - -/*! - * \defgroup HOSTEE_MODULE Host Execution Engine - */ - -/*! - * \defgroup HOSTEE Host Execution Engine API - * \ingroup HOSTEE_MODULE - */ - -#ifndef HOST_EE_H -#define HOST_EE_H - - -#include - -#include -#include - -#include - -/*! - * \brief Get the version of the NMF Host EE at runtime - * - * This method should be used to query the version number of the - * NMF Component Manager engine at runtime. This is useful when using - * to check if version of the engine linked with application correspond - * to engine used for development. - * - * Such code can be used to check compatibility: \code - t_uint32 nmfversion; - - // Print NMF version - EE_GetVersion(&nmfversion); - LOG("NMF Version %d-%d-%d\n", - VERSION_MAJOR(nmfversion), - VERSION_MINOR(nmfversion), - VERSION_PATCH(nmfversion)); - if(NMF_VERSION != nmfversion) { - LOG("Error: Incompatible API version %d != %d\n", NMF_VERSION, nmfversion); - EXIT(); - } - * \endcode - * - * \param[out] version Internal hardcoded version (use \ref VERSION_MAJOR, \ref VERSION_MINOR, \ref VERSION_PATCH macros to decode it). - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED void EE_GetVersion(t_uint32 *version); - -/*! - * \brief Set the mode of the Host EE. - * - * According the (\ref t_ee_cmd_id) value, this routine allows to modify dynamically the behavior of the Host EE. - * - * \param[in] aCmdID Command ID. - * \param[in] aParam Parameter of command ID if required. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_SetMode(t_ee_cmd_id aCmdID, t_sint32 aParam); - -/*! - * \brief Create a channel for communication between host ee and user. - * - * The purpose of the function is to: - * - create a channel or get a channel, regarding the flag parameter - * - * \param[in] flags Whether the caller want to create a new channel (CHANNEL_PRIVATE) - * or use the shared one (CHANNEL_PRIVATE) (it will be created - * if it does not yet exist) - * \param[out] channel Channel number. - * - * \exception NMF_NO_MORE_MEMORY Not enough memory to create the callback Channel. - * \exception NMF_INVALID_PARAMETER The specified flags is invalid. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_CreateChannel(t_nmf_channel_flag flags, t_nmf_channel *channel); - -/*! - * \brief Flush a channel to allow user to safely close it. - * - * The purpose of the function is to allow safe call of EE_CloseChannel() later on. Calling - * EE_FlushChannel() will allow a blocking call to EE_GetMessage() to exit with an error - * NMF_FLUSH_MESSAGE. After EE_GetMessage() has exit with such a value user must no more - * call EE_GetMessage() and can safely call EE_CloseChannel() that will destroy channel. - * In case of the share channel EE_FlushChannel() will return false for isFlushMessageGenerated if - * it's internal reference counter is not zero, in that case no NMF_FLUSH_MESSAGE error is return - * by EE_GetMessage() and user can immediatly call EE_CloseChannel(). - * In case user know that no usage of channel is done when he want to destroy channel, call to this api - * is optionnal and user can safely call EE_CloseChannel(). - * - * \param[in] channel Channel number - * \param[out] isFlushMessageGenerated Allow user to know if it must wait for NMF_FLUSH_MESSAGE return - * of EE_GetMessage() before calling EE_CloseChannel() - * - * \exception NMF_INVALID_PARAMETER The specified flags is invalid. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_FlushChannel(t_nmf_channel channel, t_bool *isFlushMessageGenerated); - -/*! - * \brief Unregister channel - * - * The purpose of the function is to: - * - destroy a channel from the user to the Host ee. - * - * The user must call EE_UserDone() as many time as EE_UserInit(). - * At the last EE_UserDone() call, the channel is closed and definitely destroyed - * All service callback must be unregistered first. - * - * \param[in] channel Channel number: - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_CloseChannel(t_nmf_channel channel); - -/*! - * \brief Register a service callback to this channel. - * - * \param[in] channel The channel on which the callback must be registered. - * \param[in] handler The given callback. - * \param[in] contextHandler The context associated with this callback. - * - * \exception NMF_NO_MORE_MEMORY Not enough memory to associate service with the Channel. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_RegisterService(t_nmf_channel channel, t_nmf_serviceCallback handler, void *contextHandler); - -/*! - * \brief Unregister a service callback from this channel. - * - * \param[in] channel The channel on which the callback must be registered. - * \param[in] handler The given callback. - * \param[in] contextHandler The context associated with this callback. - * - * \exception NMF_INVALID_PARAMETER The channel or the callback doesn't exist. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_UnregisterService(t_nmf_channel channel, t_nmf_serviceCallback handler, void *contextHandler); - -/*! - * \brief Unregister a notify callback for this channel. - * - * This method will register a callback that will be call each time a message has - * been push in queue of the channel. - * To unregister your callback just register a null notify. - * - * \param[in] channel The channel on which the callback must be registered. - * \param[in] notify The given callback. - * \param[in] contextHandler The context associated with this callback. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_RegisterNotify(t_nmf_channel channel, t_nmf_notify notify, void *contextHandler); - -/*! - * \brief Get received message from specified callback channel. - * - * This method can be used to retrieve callback message from Host ee. Returned message could then - * be dispatch through EE_ExecuteMessage. - * - * \param[in] channel The channel from which the message must be retrieved - * \param[out] clientContext client context. - * \param[out] message Reference on buffer to be unmarshalled. The buffer is allocated internally. - * \param[in] blockable Indicate if the call could blocked or not. - * - * \exception NMF_NO_MESSAGE No waited message. - * \exception NMF_INVALID_PARAMETER At least one input parameters is invalid - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED t_nmf_error EE_GetMessage(t_nmf_channel channel, void **clientContext, char **message, t_bool blockable); - -/*! - * \brief Execute a message. User callback will be execute. - * - * This method allow the message retrieved through EE_GetMessage to the right user callback. - * - * \param[in] itfref Interface reference. - * \param[in] message Reference on buffer to be unmarshalled. - * - * \ingroup HOSTEE - */ -PUBLIC IMPORT_SHARED void EE_ExecuteMessage(void *itfref, char *message); - -#endif diff --git a/drivers/staging/nmf-cm/ee/api/ee_type.h b/drivers/staging/nmf-cm/ee/api/ee_type.h deleted file mode 100644 index 368cd6d29ba..00000000000 --- a/drivers/staging/nmf-cm/ee/api/ee_type.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) ST-Ericsson SA 2010. All rights reserved. - * This code is ST-Ericsson proprietary and confidential. - * Any use of the code for whatever purpose is subject to - * specific written permission of ST-Ericsson SA. - */ - -#ifndef HOST_EE_TYPE_H -#define HOST_EE_TYPE_H - -/*! - * \brief Notify callback method type. - * - * \ingroup HOSTEE - */ -typedef void (*t_nmf_notify)(void *contextHandler); - -/*! - * \brief Definition of the command ID type - */ -typedef t_uint32 t_ee_cmd_id; - -/*! - * \brief Definition of the command ID - */ -typedef enum { - EE_CMD_TRACE_ON, //!< Enable tracing and force network resetting and dumping - EE_CMD_TRACE_OFF //!< Disable tracing -} t_ee_cmd_idDescription; - - -#endif diff --git a/drivers/staging/nmf-cm/ee/api/list.idt b/drivers/staging/nmf-cm/ee/api/list.idt deleted file mode 100644 index a53a39734d8..00000000000 --- a/drivers/staging/nmf-cm/ee/api/list.idt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (C) ST-Ericsson SA 2010. All rights reserved. - * This code is ST-Ericsson proprietary and confidential. - * Any use of the code for whatever purpose is subject to - * specific written permission of ST-Ericsson SA. - */ - -#ifndef LIST_IDT -#define LIST_IDT - -/* linking elem */ -struct _t_list_link { - struct _t_list_link *pNext; -}; -typedef struct _t_list_link t_list_link; - -#endif - diff --git a/drivers/staging/nmf-cm/ee/api/outnotify.h b/drivers/staging/nmf-cm/ee/api/outnotify.h deleted file mode 100644 index c88185fac16..00000000000 --- a/drivers/staging/nmf-cm/ee/api/outnotify.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (C) ST-Ericsson SA 2010. All rights reserved. - * This code is ST-Ericsson proprietary and confidential. - * Any use of the code for whatever purpose is subject to - * specific written permission of ST-Ericsson SA. - */ - -#ifndef OUT_IDT -#define OUT_IDT - -typedef void (*t_nmf_notify)(void *contextHandler); - -#endif - diff --git a/drivers/staging/nmf-cm/ee/api/priority.idt b/drivers/staging/nmf-cm/ee/api/priority.idt deleted file mode 100644 index a276ba57727..00000000000 --- a/drivers/staging/nmf-cm/ee/api/priority.idt +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) ST-Ericsson SA 2010. All rights reserved. - * This code is ST-Ericsson proprietary and confidential. - * Any use of the code for whatever purpose is subject to - * specific written permission of ST-Ericsson SA. - */ - -#ifndef PRIORITY_IDT -#define PRIORITY_IDT - -/** - * 0 : background - * 1 : normal - * 2 : urgent - * 3 : - * 4 : CScall - * 5 : CScall - * 6 : IO (not linked with priority ordering) - */ -#define MAX_SCHEDULER_PRIORITY_NUMBER 7 -#define MAX_SCHEDULER_SUBPRIORITY_NUMBER 4 - -#endif - -- cgit v1.2.3