@@ -110,11 +110,11 @@ typedef struct spm_ipc_channel {
110
110
struct spm_partition * src_partition ; /* Pointer to the Partition which connects to the Root of Trust Service.*/
111
111
spm_rot_service_t * dst_rot_service ; /* Pointer to the connected Root of Trust Service.*/
112
112
void * rhandle ; /* Reverse handle to be used for this channel.*/
113
- void * msg_ptr ; /* message data sent from user */
114
- struct spm_ipc_channel * next ; /* Next channel in the chain */
113
+ void * msg_ptr ; /* Message data sent from user. */
114
+ struct spm_ipc_channel * next ; /* Next channel in the chain. */
115
115
uint8_t msg_type ; /* The message type.*/
116
116
uint8_t state ; /* The current processing state of the channel.*/
117
- uint8_t is_dropped ;
117
+ uint8_t is_dropped ; /* Indicates whether the channel has been dropped by the partition.*/
118
118
} spm_ipc_channel_t ;
119
119
120
120
/*
@@ -127,7 +127,7 @@ typedef struct spm_active_msg {
127
127
} spm_active_msg_t ;
128
128
129
129
/*
130
- * Structure containing resources and attributes of a Secure Partition .
130
+ * Structure containing resources and attributes of a secure partition .
131
131
*/
132
132
typedef struct spm_partition {
133
133
const int32_t partition_id ; /* The Partition ID.*/
@@ -136,7 +136,7 @@ typedef struct spm_partition {
136
136
const uint32_t flags_interrupts ; /* Mask of all the IRQs & doorbell which the partition supports.*/
137
137
spm_rot_service_t * rot_services ; /* Array of the Partition's Root of Trust Services.*/
138
138
const uint32_t rot_services_count ; /* Number of the Partition's Root of Trust Services.*/
139
- const uint32_t * extern_sids ; /* Array of Root of Trust Service IDs which the partition can connect to.*/
139
+ const uint32_t * extern_sids ; /* Array of Root of Trust Service IDs that the partition can connect to.*/
140
140
const uint32_t extern_sids_count ; /* Number of Root of Trust Services which the partition can connect to.*/
141
141
osMutexId_t mutex ; /* Mutex for all rot_service's queues operations. */
142
142
spm_signal_to_irq_mapper_t irq_mapper ; /* a function which maps signal to irq number*/
@@ -171,19 +171,19 @@ const mem_region_t *get_mem_regions(int32_t partition_id, uint32_t *region_count
171
171
// Platform dependent APIs
172
172
173
173
/*
174
- * Validates a memory block is accessable from a specific partition
174
+ * Validates that a memory block accessible from a specific partition
175
175
*
176
- * @param[in] ptr pointer to the beggining of the memory block.
177
- * @param[in] size size of the memory block in bytes.
178
- * @param[in] accessing_partition which partition is trying to access the memory.
179
- * @return true if the entire memory block is accessable from given partition.
176
+ * @param[in] ptr - Pointer to the beggining of the memory block.
177
+ * @param[in] size - Size of the memory block in bytes.
178
+ * @param[in] accessing_partition - Which partition is trying to access the memory.
179
+ * @return ` true` if the entire memory block is accessable from given partition.
180
180
*/
181
181
bool is_buffer_accessible (const void * ptr , size_t size , spm_partition_t * accessing_partition );
182
182
183
183
/**
184
184
* Alerts NSPE that a proccess (connect or call) has ended.
185
185
*
186
- * @param[in] completion_sem_id semaphore id in NSPE.
186
+ * @param[in] completion_sem_id - semaphore id in NSPE.
187
187
*/
188
188
void nspe_done (osSemaphoreId_t completion_sem_id );
189
189
0 commit comments