*参照元 [#l63e04aa]
#backlinks

*説明 [#q1c8b074]
-パス: [[linux-4.4.1/lib/swiotlb.c]]

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


**引数 [#o66cd27f]
-struct device *hwdev
-
--[[linux-4.4.1/device]]
-phys_addr_t phys
-
--[[linux-4.4.1/phys_addr_t]]
-size_t size
--
-enum dma_data_direction dir
-
--[[linux-4.4.1/dma_data_direction]]


**返り値 [#mc8cd822]
-phys_addr_t
--
--[[linux-4.4.1/phys_addr_t]]


**参考 [#i8e87ce1]


*実装 [#z5f78448]
 /*
  * Allocates bounce buffer and returns its kernel virtual address.
  */
 
 static phys_addr_t
 map_single(struct device *hwdev, phys_addr_t phys, size_t size,
            enum dma_data_direction dir)
 {
         dma_addr_t start_dma_addr = phys_to_dma(hwdev, io_tlb_start);
 
-
--[[linux-4.4.1/dma_addr_t]]
--[[linux-4.4.1/phys_to_dma()]]
--[[linux-4.4.1/io_tlb_start(global)]]

         return swiotlb_tbl_map_single(hwdev, start_dma_addr, phys, size, dir);
-
--[[linux-4.4.1/swiotlb_tbl_map_single()]]

 }


*コメント [#b295b570]


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