-
Notifications
You must be signed in to change notification settings - Fork 40
/
onic_lib.h
50 lines (44 loc) · 1.43 KB
/
onic_lib.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright (c) 2020 Xilinx, Inc.
* All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* The full GNU General Public License is included in this distribution in
* the file called "COPYING".
*/
#ifndef __ONIC_LIB_H__
#define __ONIC_LIB_H__
#include "onic.h"
/**
* onic_init_capacity - calculate the number of vectors and queues
* @priv: pointer to driver private data
*
* Return 0 on success, negative on failure
**/
int onic_init_capacity(struct onic_private *priv);
/**
* onic_clear_capacity - reset the number of vectors and queues to zero
* @priv: pointer to driver private data
**/
void onic_clear_capacity(struct onic_private *priv);
/**
* onic_init_interrupt - initialize interrupt resource
* @priv: pointer to driver private data
*
* Return 0 on success, negative on failure
**/
int onic_init_interrupt(struct onic_private *priv);
/**
* onic_clear_interrupt - clear resource for all vectors
* @priv: pointer to driver private data
**/
void onic_clear_interrupt(struct onic_private *priv);
#endif