Changeset 9991c47 in mainline for uspace/lib/c/generic/device/hw_res.c
- Timestamp:
- 2011-11-13T22:18:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8a5962f
- Parents:
- e6def65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
re6def65 r9991c47 84 84 } 85 85 86 int hw_res_dma_channel_setup(async_sess_t *sess, 87 unsigned channel, uint32_t pa, uint16_t size, uint8_t mode) 88 { 89 async_exch_t *exch = async_exchange_begin(sess); 90 if (exch == NULL) 91 return ENOMEM; 92 uint32_t packed = size | (mode << 16); 93 int ret = async_req_4_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE), 94 HW_RES_DMA_CHANNEL_SETUP, channel, pa, packed); 95 async_exchange_end(exch); 96 97 return ret; 98 } 99 86 100 /** @} 87 101 */
Note:
See TracChangeset
for help on using the changeset viewer.