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>
This commit is contained in:
parent
57e6840cf7
commit
942a8186eb
2 changed files with 7 additions and 5 deletions
|
@ -101,11 +101,7 @@ struct io_tlb_mem {
|
||||||
unsigned int nareas;
|
unsigned int nareas;
|
||||||
unsigned int area_nslabs;
|
unsigned int area_nslabs;
|
||||||
struct io_tlb_area *areas;
|
struct io_tlb_area *areas;
|
||||||
struct io_tlb_slot {
|
struct io_tlb_slot *slots;
|
||||||
phys_addr_t orig_addr;
|
|
||||||
size_t alloc_size;
|
|
||||||
unsigned int list;
|
|
||||||
} *slots;
|
|
||||||
};
|
};
|
||||||
extern struct io_tlb_mem io_tlb_default_mem;
|
extern struct io_tlb_mem io_tlb_default_mem;
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,12 @@
|
||||||
|
|
||||||
#define INVALID_PHYS_ADDR (~(phys_addr_t)0)
|
#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_bounce;
|
||||||
static bool swiotlb_force_disable;
|
static bool swiotlb_force_disable;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue