swiotlb: add the swiotlb initialization function with iotlb memory
commitabbceff7d7a884968e876e52578da1db4a4f6b54
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 10 May 2010 19:15:12 +0000 (10 15:15 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 7 Jun 2010 15:59:25 +0000 (7 11:59 -0400)
tree9a78609a90866a3a5313b35208e2e761ce4f3a77
parenteb605a5754d050a25a9f00d718fb173f24c486ef
swiotlb: add the swiotlb initialization function with iotlb memory

This enables the caller to initialize swiotlb with its own iotlb
memory.

See "swiotlb: swiotlb: add swiotlb_tbl_map_single library function" for
full description of patchset.

[v2: changed ..with_tlb to ..with_tbl]

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Albert Herranz <albert_herranz@yahoo.es>
include/linux/swiotlb.h
lib/swiotlb.c