aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/iavf/iavf_alloc.h
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2018-09-14 20:37:56 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-09-18 18:32:55 -0400
commit66bc8e0f591a4bb00d6d0423dde6ab839045eaf9 (patch)
tree412d0de53a92cb78f90aea3148b861b356c33773 /drivers/net/ethernet/intel/iavf/iavf_alloc.h
parent56184e01c00d6d23609f9f9e52cc731568e8088f (diff)
iavf: finish renaming files to iavf
This finishes the process of renaming the files that make sense to rename (skipping adminq related files that talk to i40e), and fixes up the build and the #includes so that everything builds nicely. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/iavf/iavf_alloc.h')
-rw-r--r--drivers/net/ethernet/intel/iavf/iavf_alloc.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/iavf/iavf_alloc.h b/drivers/net/ethernet/intel/iavf/iavf_alloc.h
new file mode 100644
index 000000000000..bf2753146f30
--- /dev/null
+++ b/drivers/net/ethernet/intel/iavf/iavf_alloc.h
@@ -0,0 +1,31 @@
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2013 - 2018 Intel Corporation. */
3
4#ifndef _IAVF_ALLOC_H_
5#define _IAVF_ALLOC_H_
6
7struct iavf_hw;
8
9/* Memory allocation types */
10enum iavf_memory_type {
11 iavf_mem_arq_buf = 0, /* ARQ indirect command buffer */
12 iavf_mem_asq_buf = 1,
13 iavf_mem_atq_buf = 2, /* ATQ indirect command buffer */
14 iavf_mem_arq_ring = 3, /* ARQ descriptor ring */
15 iavf_mem_atq_ring = 4, /* ATQ descriptor ring */
16 iavf_mem_pd = 5, /* Page Descriptor */
17 iavf_mem_bp = 6, /* Backing Page - 4KB */
18 iavf_mem_bp_jumbo = 7, /* Backing Page - > 4KB */
19 iavf_mem_reserved
20};
21
22/* prototype for functions used for dynamic memory allocation */
23iavf_status iavf_allocate_dma_mem(struct iavf_hw *hw, struct iavf_dma_mem *mem,
24 enum iavf_memory_type type,
25 u64 size, u32 alignment);
26iavf_status iavf_free_dma_mem(struct iavf_hw *hw, struct iavf_dma_mem *mem);
27iavf_status iavf_allocate_virt_mem(struct iavf_hw *hw,
28 struct iavf_virt_mem *mem, u32 size);
29iavf_status iavf_free_virt_mem(struct iavf_hw *hw, struct iavf_virt_mem *mem);
30
31#endif /* _IAVF_ALLOC_H_ */