Changeset 17 for trunk/hal/generic/hal_remote.h
- Timestamp:
- May 11, 2017, 7:49:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_remote.h
r16 r17 1 1 /* 2 2 * hal_remote.h - Generic Remote Access API definition. 3 * 3 * 4 4 * Authors Mohamed Karaoui (2015) 5 5 * Alain Greiner (2016) 6 6 * 7 7 * Copyright (c) UPMC Sorbonne Universites 8 * 8 * 9 9 * This file is part of ALMOS-MKH. 10 10 * … … 29 29 30 30 ////////////////////////////////////////////////////////////////////////////////////////// 31 // Generic Remote Access API (implementation in hal_remote.c)31 // Generic Remote Access API (implementation in hal_remote.c) 32 32 // 33 33 // Kernel accesses to local memory bank and peripherals can use normal C pointers. … … 76 76 ***************************************************************************************** 77 77 * @ xp : extended pointer to remote data 78 * @ return read value 78 * @ return read value 79 79 ****************************************************************************************/ 80 80 char hal_remote_lb( xptr_t xp ); … … 118 118 * @ old : expected value 119 119 * @ new : new value to be written 120 * @ return true if success / return false if failure 120 * @ return true if success / return false if failure 121 121 ****************************************************************************************/ 122 122 bool_t hal_remote_atomic_cas( xptr_t xp, … … 132 132 * @ return old value (before increment) of the remote integer 133 133 ****************************************************************************************/ 134 uint32_t hal_remote_atomic_add( xptr_t xp, 134 uint32_t hal_remote_atomic_add( xptr_t xp, 135 135 uint32_t incr ); 136 136 … … 143 143 * @ return old value (before increment) of the remote integer 144 144 ****************************************************************************************/ 145 uint32_t hal_remote_atomic_and( xptr_t xp, 145 uint32_t hal_remote_atomic_and( xptr_t xp, 146 146 uint32_t mask ); 147 147 … … 154 154 * @ return old value (before increment) of the remote integer 155 155 ****************************************************************************************/ 156 uint32_t hal_remote_atomic_or( xptr_t xp, 156 uint32_t hal_remote_atomic_or( xptr_t xp, 157 157 uint32_t mask ); 158 158 … … 164 164 * @ incr : increment value. 165 165 * @ old : local buffer address for the read value (before increment) 166 * @ return 0 if atomic / return non-zero if failure 166 * @ return 0 if atomic / return non-zero if failure 167 167 ****************************************************************************************/ 168 168 error_t hal_remote_atomic_try_add( xptr_t xp, … … 179 179 ****************************************************************************************/ 180 180 void hal_remote_memcpy( xptr_t dst, 181 xptr_t src, 181 xptr_t src, 182 182 uint32_t size ); 183 183
Note: See TracChangeset
for help on using the changeset viewer.