summaryrefslogtreecommitdiff
path: root/source/LCM/include/t_bulk_protocol.h
diff options
context:
space:
mode:
authorunknown <XSLOSHO@.seavus-dev2.com>2011-11-07 10:14:35 +0100
committerViktor Mladenovski <viktor.mladenovski@seavus.com>2012-05-25 14:38:13 +0200
commite5812923ee1ae1298cb9ebf8a095cc62367a399c (patch)
tree5879aa1d44cc4a7704c86e1efb58059a7b39255b /source/LCM/include/t_bulk_protocol.h
parentc60e5c40802a7f14e9005eb9f462c6f741b1e839 (diff)
Add LCD/LCM compatibility check
LCD/LCM compatibility check added to determine whether PC-LCM is compatible with the LCD. Error handling in LCM is added. Depends-On: I6ad7dc8807cb8c407379fe448f06816904253520 ST-Ericsson ID: 362575 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204 Change-Id: If5b3c993739f93276e2a76b012a1852d687ad746 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36378 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com> Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Diffstat (limited to 'source/LCM/include/t_bulk_protocol.h')
-rw-r--r--source/LCM/include/t_bulk_protocol.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/LCM/include/t_bulk_protocol.h b/source/LCM/include/t_bulk_protocol.h
index 99109e6..38ca8b4 100644
--- a/source/LCM/include/t_bulk_protocol.h
+++ b/source/LCM/include/t_bulk_protocol.h
@@ -35,13 +35,6 @@
/** Defined bulk error in 64 bits format. */
#define BULK_ERROR_64 0xffffffffffffffff
-#ifndef CFG_ENABLE_LOADER_TYPE
-/** Defined Callback functions used for bulk transfer in the LCM on PC side. */
-typedef void (*BulkCommandReqCallback_t)(void *Object_p, uint16 Session, uint32 ChunkSize, uint64 Offset, uint32 Length, boolean ACK_Read);
-typedef void (*BulkDataReqCallback_t)(void *Object_p, uint16 Session, uint32 ChunkSize, uint64 Offset, uint32 Length, uint64 TotalLength, uint32 TransferedLength);
-typedef void (*BulkDataEndOfDump_t)(void *Object_p);
-#endif // CFG_ENABLE_LOADER_TYPE
-
/** Defined bulk commands. */
typedef enum {
CMD_BULK_STATUS = 0x00, /**< Status packet type command. */
@@ -71,7 +64,8 @@ TYPEDEF_ENUM {
WAIT_TX_DONE = 9, /**< Wait all chunks to be sent. */
WRITE_BULK_FINISH = 10, /**< Bulk acknowledge has been received,
finish the write bulk process. */
- WAIT_WRITE_REQUEST = 11 /**< Wait bulk request command. */
+ WAIT_WRITE_REQUEST = 11, /**< Wait bulk request command. */
+ CANCEL_BULK = 12
} ENUM8(TL_BulkProtocolState_t);
/** Defined bulk process states. */
@@ -162,6 +156,15 @@ typedef struct {
current session is in process of sending. */
} BulkHandle_t;
+#ifndef CFG_ENABLE_LOADER_TYPE
+/** Defined Callback functions used for bulk transfer in the LCM on PC side. */
+typedef void (*BulkCommandReqCallback_t)(void *Object_p, uint16 Session, uint32 ChunkSize, uint64 Offset, uint32 Length, boolean ACK_Read);
+typedef void (*BulkDataReqCallback_t)(void *Object_p, uint16 Session, uint32 ChunkSize, uint64 Offset, uint32 Length, uint64 TotalLength, uint32 TransferedLength);
+typedef void (*BulkDataEndOfDump_t)(void *Object_p);
+typedef void (*BulkBuffersRelease_t)(void *Object_p, TL_BulkVectorList_t *BulkVector_p);
+#endif // CFG_ENABLE_LOADER_TYPE
+
+
/** @} */
/** @} */
/** @} */