blob: 1cca17fa1afd254dbcbf7426f7158567252f3c88 [file] [log] [blame]
Jakub Grajciar6c9b9642018-06-26 12:58:22 +02001/*
2 *------------------------------------------------------------------
3 * Copyright (c) 2018 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *------------------------------------------------------------------
16 */
17
18option version = "1.0.0";
19
20/** \brief
21 @param client_index - opaque cookie to identify the sender
22 @param context - sender context, to match reply w/ request
23 @param pci_addr - pci address as unsigned 32bit integer:
24 0-15 domain, 16-23 bus, 24-28 slot, 29-31 function
25 ddddddddddddddddbbbbbbbbsssssfff
Jakub Grajciar149d0e22018-08-27 10:50:50 +020026 @param rxq_num - number of receive queues
Jakub Grajciar6c9b9642018-06-26 12:58:22 +020027 @param rxq_size - receive queue size
28 @param txq_size - transmit queue size
29*/
30
Jakub Grajciar4e6014f2018-07-24 14:00:41 +020031define avf_create
Jakub Grajciar6c9b9642018-06-26 12:58:22 +020032{
33 u32 client_index;
34 u32 context;
35
36 u32 pci_addr;
37 i32 enable_elog;
Jakub Grajciar149d0e22018-08-27 10:50:50 +020038 u16 rxq_num;
Jakub Grajciar6c9b9642018-06-26 12:58:22 +020039 u16 rxq_size;
40 u16 txq_size;
41};
42
43/** \brief
Jakub Grajciar4e6014f2018-07-24 14:00:41 +020044 @param context - sender context, to match reply w/ request
45 @param retval - return value for request
46 @param sw_if_index - software index for the new avf interface
47*/
48
49define avf_create_reply
50{
51 u32 context;
52 i32 retval;
53 u32 sw_if_index;
54};
55
56/** \brief
Jakub Grajciar6c9b9642018-06-26 12:58:22 +020057 @param client_index - opaque cookie to identify the sender
58 @param context - sender context, to match reply w/ request
59 @param sw_if_index - interface index
60*/
61
62autoreply define avf_delete
63{
64 u32 client_index;
65 u32 context;
66
67 u32 sw_if_index;
68};
69
70/*
71 * Local Variables:
72 * eval: (c-set-style "gnu")
73 * End:
74 */