blob: cc9f37500b0e318c025dc1fed8cf5f4dcd33dd03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018-2022 Marvell International Ltd.
*/
#ifndef __CVMX_PKO3_RESOURCES_H__
#define __CVMX_PKO3_RESOURCES_H__
/*
* Allocate or reserve contiguous list of PKO queues.
*
* @param node is the node number for PKO queues.
* @param level is the PKO queue level.
* @param owner is the owner of PKO queue resources.
* @param base_queue is the PKO queue base number(specify -1 to allocate).
* @param num_queues is the number of PKO queues that have to be reserved or allocated.
* @return returns queue_base if successful or -1 on failure.
*/
int cvmx_pko_alloc_queues(int node, int level, int owner, int base_queue,
int num_queues);
/**
* Free an allocated/reserved PKO queues for a certain level and owner
*
* @param node on which to allocate/reserve PKO queues
* @param level of PKO queue
* @param owner of reserved/allocated resources
* @return 0 on success, -1 on failure
*/
int cvmx_pko_free_queues(int node, int level, int owner);
int __cvmx_pko3_dq_param_setup(unsigned node);
int cvmx_pko3_num_level_queues(enum cvmx_pko3_level_e level);
#endif /* __CVMX_PKO3_RESOURCES_H__ */
|