aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc/marvell/octeontx2-npa/npa_api.h
blob: 728cbfdeabc1c08bb83ded52d226f2f4a3e5a87d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0
 * Marvell OcteonTx2 NPA driver
 *
 * Copyright (C) 2020 Marvell.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/* Initializa aura pool pair */
int npa_aura_pool_init(int pool_size, int buf_size, u32 *aura_handle,
		       struct device *owner);
/* Teardown aura pool pair */
int npa_aura_pool_fini(const u32 aura_handle, struct device *owner);
u64 npa_alloc_buf(u32 aura);
void npa_free_buf(u32 aura, u64 buf);
/* Get PF function used for aura */
u16 npa_pf_func(u32 aura);