Changeset 53a309e in mainline
- Timestamp:
- 2017-10-08T20:42:50Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07cb0108
- Parents:
- d15797d
- Location:
- uspace/drv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
rd15797d r53a309e 163 163 async_sess_t *sess = ddf_dev_parent_sess_get(dsp->sb_dev); 164 164 165 const int ret =hw_res_dma_channel_setup(sess,165 return hw_res_dma_channel_setup(sess, 166 166 dsp->dma16_channel, pa, size, 167 167 DMA_MODE_READ | DMA_MODE_AUTO | DMA_MODE_ON_DEMAND); 168 169 async_hangup(sess);170 return ret;171 168 } 172 169 … … 307 304 // TODO: Assumes DMA 16 308 305 const int remain = hw_res_dma_channel_remain(sess, dsp->dma16_channel); 309 async_hangup(sess);310 306 if (remain >= 0) { 311 307 *pos = dsp->buffer.size - remain; -
uspace/drv/audio/sb16/main.c
rd15797d r53a309e 186 186 hw_res_list_parsed_init(&hw_res); 187 187 const int ret = hw_res_get_list_parsed(parent_sess, &hw_res, 0); 188 async_hangup(parent_sess);189 188 if (ret != EOK) { 190 189 return ret; … … 250 249 251 250 bool enabled = hw_res_enable_interrupt(parent_sess); 252 async_hangup(parent_sess);253 251 254 252 return enabled ? EOK : EIO; -
uspace/drv/bus/usb/ehci/res.c
rd15797d r53a309e 229 229 //TODO unmap registers 230 230 hw_res_list_parsed_clean(&res); 231 async_hangup(parent_sess);232 231 return ret; 233 232 } -
uspace/drv/bus/usb/uhci/main.c
rd15797d r53a309e 111 111 /* See UHCI design guide page 45 for these values. 112 112 * Write all WC bits in USB legacy register */ 113 const int rc = pci_config_space_write_16(parent_sess, 0xc0, 0xaf00); 114 115 async_hangup(parent_sess); 116 return rc; 113 return pci_config_space_write_16(parent_sess, 0xc0, 0xaf00); 117 114 } 118 115
Note:
See TracChangeset
for help on using the changeset viewer.