Changeset 132ab5d1 in mainline for uspace/lib/c/generic/device/hw_res.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/lib/c/generic/device/hw_res.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
r8bfb163 r132ab5d1 36 36 #include <errno.h> 37 37 #include <async.h> 38 #include < malloc.h>38 #include <stdlib.h> 39 39 40 40 int hw_res_get_resource_list(async_sess_t *sess, … … 140 140 * @param channel DMA channel. 141 141 * 142 * @return Number of bytes remaining in the buffer if positive. 143 * @return Error code if negative. 142 * @param[out] rem Number of bytes remaining in the buffer if positive. 143 * 144 * @return Error code. 144 145 * 145 146 */ 146 int hw_res_dma_channel_remain(async_sess_t *sess, unsigned channel )147 int hw_res_dma_channel_remain(async_sess_t *sess, unsigned channel, size_t *rem) 147 148 { 148 149 async_exch_t *exch = async_exchange_begin(sess); … … 155 156 156 157 if (ret == EOK) 157 returnremain;158 *rem = remain; 158 159 159 160 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.
