Changes in uspace/lib/c/generic/device/hw_res.c [c19a5a59:d51838f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
rc19a5a59 rd51838f 36 36 #include <errno.h> 37 37 #include <async.h> 38 #include < stdlib.h>38 #include <malloc.h> 39 39 40 40 int hw_res_get_resource_list(async_sess_t *sess, … … 140 140 * @param channel DMA channel. 141 141 * 142 * @param[out] rem Number of bytes remaining in the buffer if positive. 143 * 144 * @return Error code. 142 * @return Number of bytes remaining in the buffer if positive. 143 * @return Error code if negative. 145 144 * 146 145 */ 147 int hw_res_dma_channel_remain(async_sess_t *sess, unsigned channel , size_t *rem)146 int hw_res_dma_channel_remain(async_sess_t *sess, unsigned channel) 148 147 { 149 148 async_exch_t *exch = async_exchange_begin(sess); … … 156 155 157 156 if (ret == EOK) 158 *rem =remain;157 return remain; 159 158 160 159 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.