FreeCalypso > hg > tcs211-pirelli
comparison gpf/INC/p_frame.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:509db1a7b7b8 |
|---|---|
| 1 /* | |
| 2 +------------------------------------------------------------------------------ | |
| 3 | File: frm_primitives.h | |
| 4 +------------------------------------------------------------------------------ | |
| 5 | Copyright 2002 Texas Instruments Berlin, AG | |
| 6 | All rights reserved. | |
| 7 | | |
| 8 | This file is confidential and a trade secret of Texas | |
| 9 | Instruments Berlin, AG | |
| 10 | The receipt of or possession of this file does not convey | |
| 11 | any rights to reproduce or disclose its contents or to | |
| 12 | manufacture, use, or sell anything it may describe, in | |
| 13 | whole, or in part, without the specific written consent of | |
| 14 | Texas Instruments Berlin, AG. | |
| 15 +----------------------------------------------------------------------------- | |
| 16 | Purpose : Definitions for frame primitives. | |
| 17 +----------------------------------------------------------------------------- | |
| 18 */ | |
| 19 | |
| 20 #ifndef FRM_PRIMITIVES_H | |
| 21 #define FRM_PRIMITIVES_H | |
| 22 | |
| 23 #define FRM_ERROR_IND 0xC000001E /* SAP NR: 30 (0x1e), PRIM NR 0 */ | |
| 24 #define FRM_WARNING_IND 0xC001001E /* SAP NR: 30 (0x1e), PRIM NR 1 */ | |
| 25 | |
| 26 /* maximum length of a string in frame primitives */ | |
| 27 #define FRM_PRIM_STR_SIZE 100 | |
| 28 | |
| 29 /* spontaneuous frame output */ | |
| 30 typedef struct | |
| 31 { | |
| 32 U32 error_code; | |
| 33 char error_string [ FRM_PRIM_STR_SIZE ]; | |
| 34 } T_FRM_ERROR_IND; | |
| 35 | |
| 36 typedef struct | |
| 37 { | |
| 38 U32 warning_code; | |
| 39 char warning_string [ FRM_PRIM_STR_SIZE ]; | |
| 40 } T_FRM_WARNING_IND; | |
| 41 | |
| 42 #if 0 | |
| 43 /* frame status requests and confirmations */ | |
| 44 | |
| 45 /* register destination for error/warning indications */ | |
| 46 | |
| 47 typedef struct | |
| 48 { | |
| 49 char name [ RESOURCE_NAMELEN ]; | |
| 50 } T_FRM_REGISTER_REQ; | |
| 51 | |
| 52 typedef struct | |
| 53 { | |
| 54 char name [ RESOURCE_NAMELEN ]; | |
| 55 } T_FRM_REGISTER_CNF; | |
| 56 | |
| 57 /* task status */ | |
| 58 | |
| 59 typedef struct | |
| 60 { | |
| 61 U32 task_id; | |
| 62 } T_FRM_TASK_STATUS_REQ; | |
| 63 | |
| 64 typedef struct | |
| 65 { | |
| 66 char name [ RESOURCE_NAMELEN ]; | |
| 67 U32 priority; | |
| 68 U32 stacksize; | |
| 69 U32 unused_stack; | |
| 70 } T_FRM_TASK_DATA; | |
| 71 | |
| 72 typedef struct | |
| 73 { | |
| 74 T_FRM_TASK_DATA task [ MAX_OS_TASKS ];; | |
| 75 } T_FRM_TASK_STATUS_CNF; | |
| 76 | |
| 77 /* partition status */ | |
| 78 | |
| 79 typedef struct | |
| 80 { | |
| 81 U32 partition_group_id; | |
| 82 } T_FRM_PARTITION_STATUS_REQ; | |
| 83 | |
| 84 typedef struct | |
| 85 { | |
| 86 T_FRM_PARTITION_DATA p_pool [ MAX_POOL_GROUPS*MAX_POOLS_PER_GROUP ]; | |
| 87 } T_FRM_PARTITION_STATUS_CNF; | |
| 88 | |
| 89 typedef struct | |
| 90 { | |
| 91 U32 partition_pool_id; | |
| 92 U32 partition_size | |
| 93 U32 available; | |
| 94 U32 allocated; | |
| 95 } T_FRM_PARTITION_DATA; | |
| 96 | |
| 97 /* memory status */ | |
| 98 typedef struct | |
| 99 { | |
| 100 U32 memory_pool_id; | |
| 101 } T_FRM_MEMORY_STATUS_REQ; | |
| 102 | |
| 103 typedef struct | |
| 104 { | |
| 105 U32 memory_pool_id; | |
| 106 U32 pool_size | |
| 107 U32 available; | |
| 108 U32 allocated; | |
| 109 } T_FRM_MEMORY_DATA; | |
| 110 | |
| 111 typedef struct | |
| 112 { | |
| 113 T_FRM_MEMORY_DATA m_pool [ MAX_MEMORY_POOLS }; | |
| 114 } T_FRM_MEMORY_STATUS_CNF; | |
| 115 | |
| 116 /* timer status */ | |
| 117 | |
| 118 typedef struct | |
| 119 { | |
| 120 U32 timer_id; | |
| 121 } T_FRM_TIMER_STATUS_REQ; | |
| 122 | |
| 123 typedef struct | |
| 124 { | |
| 125 U32 max_timer; | |
| 126 U32 max_simul_available_timer; | |
| 127 U32 max_simul_running_timer; | |
| 128 } T_FRM_TIMER_STATUS_CNF; | |
| 129 | |
| 130 /* semaphore status */ | |
| 131 | |
| 132 typedef struct | |
| 133 { | |
| 134 U32 semaphore_id; | |
| 135 } T_FRM_SEMAPHORE_STATUS_REQ; | |
| 136 | |
| 137 typedef struct | |
| 138 { | |
| 139 } T_FRM_SEMAPHORE_STATUS_CNF; | |
| 140 #endif | |
| 141 | |
| 142 #endif /* FRM_PRIMITIVES_H */ | |
| 143 | |
| 144 | |
| 145 |
