aboutsummaryrefslogtreecommitdiff
path: root/kernel/dma
diff options
context:
space:
mode:
authorChristoph Hellwig2022-07-12 08:43:07 +0200
committerChristoph Hellwig2022-07-18 06:50:18 +0200
commit942a8186eb4451700dadd1d60a2e43ce67605991 (patch)
tree399be111bb333c795a59ef568b9b441a5ba313ec /kernel/dma
parent57e6840cf79a4af84f44af3f8cfeacd8a14a6c6f (diff)
swiotlb: move struct io_tlb_slot to swiotlb.c
No need to expose this structure definition in the header. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma')
-rw-r--r--kernel/dma/swiotlb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 608923e8dab1..39dee4004439 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -62,6 +62,12 @@
#define INVALID_PHYS_ADDR (~(phys_addr_t)0)
+struct io_tlb_slot {
+ phys_addr_t orig_addr;
+ size_t alloc_size;
+ unsigned int list;
+};
+
static bool swiotlb_force_bounce;
static bool swiotlb_force_disable;