]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/drivers/net/i40e/base/i40e_alloc.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / i40e / base / i40e_alloc.h
CommitLineData
9f95a23c 1/* SPDX-License-Identifier: BSD-3-Clause
f67539c2 2 * Copyright(c) 2001-2020 Intel Corporation
9f95a23c 3 */
7c673cae
FG
4
5#ifndef _I40E_ALLOC_H_
6#define _I40E_ALLOC_H_
7
8struct i40e_hw;
9
10/* Memory allocation types */
11enum i40e_memory_type {
12 i40e_mem_arq_buf = 0, /* ARQ indirect command buffer */
13 i40e_mem_asq_buf = 1,
14 i40e_mem_atq_buf = 2, /* ATQ indirect command buffer */
15 i40e_mem_arq_ring = 3, /* ARQ descriptor ring */
16 i40e_mem_atq_ring = 4, /* ATQ descriptor ring */
17 i40e_mem_pd = 5, /* Page Descriptor */
18 i40e_mem_bp = 6, /* Backing Page - 4KB */
19 i40e_mem_bp_jumbo = 7, /* Backing Page - > 4KB */
20 i40e_mem_reserved
21};
22
23/* prototype for functions used for dynamic memory allocation */
24enum i40e_status_code i40e_allocate_dma_mem(struct i40e_hw *hw,
25 struct i40e_dma_mem *mem,
26 enum i40e_memory_type type,
27 u64 size, u32 alignment);
28enum i40e_status_code i40e_free_dma_mem(struct i40e_hw *hw,
29 struct i40e_dma_mem *mem);
30enum i40e_status_code i40e_allocate_virt_mem(struct i40e_hw *hw,
31 struct i40e_virt_mem *mem,
32 u32 size);
33enum i40e_status_code i40e_free_virt_mem(struct i40e_hw *hw,
34 struct i40e_virt_mem *mem);
35
36#endif /* _I40E_ALLOC_H_ */