Changeset 301032a in mainline for uspace/lib/c/generic/device/hw_res.c
- Timestamp:
- 2013-08-16T14:08:03Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 537620a8
- Parents:
- c762ad5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
rc762ad5 r301032a 102 102 */ 103 103 int hw_res_dma_channel_setup(async_sess_t *sess, 104 unsigned channel, uint32_t pa, uint 16_t size, uint8_t mode)104 unsigned channel, uint32_t pa, uint32_t size, uint8_t mode) 105 105 { 106 106 async_exch_t *exch = async_exchange_begin(sess); 107 107 if (exch == NULL) 108 108 return ENOMEM; 109 const uint32_t packed = size| (mode << 16);109 const uint32_t packed = (channel & 0xffff) | (mode << 16); 110 110 const int ret = async_req_4_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE), 111 HW_RES_DMA_CHANNEL_SETUP, channel, pa, packed);111 HW_RES_DMA_CHANNEL_SETUP, packed, pa, size); 112 112 async_exchange_end(exch); 113 113
Note:
See TracChangeset
for help on using the changeset viewer.