Changeset 722912e in mainline
- Timestamp:
- 2012-06-29T13:04:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ea150dc6
- Parents:
- 6843a9c
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dma.h
r6843a9c r722912e 67 67 static inline void *dma_create_buffer24(size_t size) 68 68 { 69 void *free_address = as_get_mappable_page(size);70 if (free_address == 0)71 return NULL;72 69 void *address = 73 as_area_create(free_address, size, AS_AREA_READ | AS_AREA_WRITE); 74 if (address != free_address) 75 return NULL; 70 as_area_create(AS_AREA_ANY, size, AS_AREA_READ | AS_AREA_WRITE); 76 71 bzero(address, size); 77 72 return address; -
uspace/drv/audio/sb16/main.c
r6843a9c r722912e 55 55 /*----------------------------------------------------------------------------*/ 56 56 static driver_ops_t sb_driver_ops = { 57 . add_device= sb_add_device,57 .dev_add = sb_add_device, 58 58 }; 59 59 /*----------------------------------------------------------------------------*/ -
uspace/drv/audio/sb16/mixer.c
r6843a9c r722912e 27 27 */ 28 28 29 #include <assert.h> 29 30 #include <bool.h> 30 31 #include <errno.h> 31 32 #include <libarch/ddi.h> 33 #include <unistd.h> 32 34 33 35 #include "ddf_log.h" -
uspace/lib/c/generic/device/hw_res_parsed.c
r6843a9c r722912e 44 44 assert((res->type == DMA_CHANNEL_8) || (res->type == DMA_CHANNEL_16)); 45 45 46 const intchannel = (res->type == DMA_CHANNEL_8) ?46 const unsigned channel = (res->type == DMA_CHANNEL_8) ? 47 47 res->res.dma_channel.dma8 : res->res.dma_channel.dma16; 48 48 const size_t count = out->dma_channels.count; -
uspace/lib/c/include/device/hw_res_parsed.h
r6843a9c r722912e 100 100 /** List of IRQs */ 101 101 irq_list_t irqs; 102 103 /** List of DMA channels */104 dma_list_t dma_channels;105 102 106 103 /** List of DMA channels */ -
uspace/lib/drv/generic/remote_audio_pcm_buffer.c
r6843a9c r722912e 92 92 &buffer_size, &buffer_id); 93 93 if (ret == EOK) { 94 void *dst = as_get_mappable_page(buffer_size); 95 // FIXME Should we create as_area? 96 // FIXME Do we need to know the flags? 94 void *dst = NULL; 97 95 const int ret = 98 async_share_in_start_0_0(exch, dst, buffer_size);96 async_share_in_start_0_0(exch, buffer_size, &dst); 99 97 if (ret != EOK) { 100 98 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.