*参照元 [#v732ecb1]
#backlinks

*説明 [#r09cae57]
-パス: [[linux-2.6.33/arch/arm/include/asm/dma-mapping.h]]

-FIXME: これは何?
--説明


**引数 [#obf9545b]
-struct device *dev
--
--[[linux-2.6.33/device]]
-dma_addr_t handle
--
--[[linux-2.6.33/dma_addr_t]]
-unsigned long offset
--
-size_t size
--
-enum dma_data_direction dir
--
--[[linux-2.6.33/dma_data_direction]]


**返り値 [#x800cdde]
-なし


**参考 [#d28e78b9]


*実装 [#nccced0f]
 /**
  * dma_sync_single_range_for_cpu
  * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
  * @handle: DMA address of buffer
  * @offset: offset of region to start sync
  * @size: size of region to sync
  * @dir: DMA transfer direction (same as passed to dma_map_single)
  *
  * Make physical memory consistent for a single streaming mode DMA
  * translation after a transfer.
  *
  * If you perform a dma_map_single() but wish to interrogate the
  * buffer using the cpu, yet do not wish to teardown the PCI dma
  * mapping, you must call this function before doing so.  At the
  * next point you give the PCI dma address back to the card, you
  * must first the perform a dma_sync_for_device, and then the
  * device again owns the buffer.
  */
 static inline void dma_sync_single_range_for_cpu(struct device *dev,
 		dma_addr_t handle, unsigned long offset, size_t size,
 		enum dma_data_direction dir)
 {
 	BUG_ON(!valid_dma_direction(dir));
 
-
--[[linux-2.6.33/valid_dma_direction()]]
-
--[[linux-2.6.33/BUG_ON()]]

 	dmabounce_sync_for_cpu(dev, handle, offset, size, dir);
-
--[[linux-2.6.33/dmabounce_sync_for_cpu()]]

 }


*コメント [#d81cda36]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS