1
2
3
4 #ifndef _IAVF_ALLOC_H_
5 #define _IAVF_ALLOC_H_
6
7 struct iavf_hw;
8
9
10 enum iavf_memory_type {
11 iavf_mem_arq_buf = 0,
12 iavf_mem_asq_buf = 1,
13 iavf_mem_atq_buf = 2,
14 iavf_mem_arq_ring = 3,
15 iavf_mem_atq_ring = 4,
16 iavf_mem_pd = 5,
17 iavf_mem_bp = 6,
18 iavf_mem_bp_jumbo = 7,
19 iavf_mem_reserved
20 };
21
22
23 enum iavf_status iavf_allocate_dma_mem(struct iavf_hw *hw,
24 struct iavf_dma_mem *mem,
25 enum iavf_memory_type type,
26 u64 size, u32 alignment);
27 enum iavf_status iavf_free_dma_mem(struct iavf_hw *hw,
28 struct iavf_dma_mem *mem);
29 enum iavf_status iavf_allocate_virt_mem(struct iavf_hw *hw,
30 struct iavf_virt_mem *mem, u32 size);
31 enum iavf_status iavf_free_virt_mem(struct iavf_hw *hw,
32 struct iavf_virt_mem *mem);
33
34 #endif