xref: /freebsd/sys/dev/mana/mana_sysctl.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1*ce110ea1SWei Hu /*-
2*ce110ea1SWei Hu  * SPDX-License-Identifier: BSD-2-Clause
3*ce110ea1SWei Hu  *
4*ce110ea1SWei Hu  * Copyright (c) 2015-2020 Amazon.com, Inc. or its affiliates.
5*ce110ea1SWei Hu  * All rights reserved.
6*ce110ea1SWei Hu  *
7*ce110ea1SWei Hu  * Redistribution and use in source and binary forms, with or without
8*ce110ea1SWei Hu  * modification, are permitted provided that the following conditions
9*ce110ea1SWei Hu  * are met:
10*ce110ea1SWei Hu  *
11*ce110ea1SWei Hu  * 1. Redistributions of source code must retain the above copyright
12*ce110ea1SWei Hu  *    notice, this list of conditions and the following disclaimer.
13*ce110ea1SWei Hu  *
14*ce110ea1SWei Hu  * 2. Redistributions in binary form must reproduce the above copyright
15*ce110ea1SWei Hu  *    notice, this list of conditions and the following disclaimer in the
16*ce110ea1SWei Hu  *    documentation and/or other materials provided with the distribution.
17*ce110ea1SWei Hu  *
18*ce110ea1SWei Hu  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19*ce110ea1SWei Hu  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20*ce110ea1SWei Hu  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21*ce110ea1SWei Hu  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22*ce110ea1SWei Hu  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23*ce110ea1SWei Hu  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24*ce110ea1SWei Hu  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25*ce110ea1SWei Hu  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26*ce110ea1SWei Hu  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27*ce110ea1SWei Hu  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28*ce110ea1SWei Hu  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29*ce110ea1SWei Hu  *
30*ce110ea1SWei Hu  */
31*ce110ea1SWei Hu 
32*ce110ea1SWei Hu #ifndef MANA_SYSCTL_H
33*ce110ea1SWei Hu #define MANA_SYSCTL_H
34*ce110ea1SWei Hu 
35*ce110ea1SWei Hu #include <sys/param.h>
36*ce110ea1SWei Hu #include <sys/types.h>
37*ce110ea1SWei Hu #include <sys/sysctl.h>
38*ce110ea1SWei Hu #include <sys/systm.h>
39*ce110ea1SWei Hu 
40*ce110ea1SWei Hu #include "mana.h"
41*ce110ea1SWei Hu 
42*ce110ea1SWei Hu void mana_sysctl_add_port(struct mana_port_context *apc);
43*ce110ea1SWei Hu void mana_sysctl_add_queues(struct mana_port_context *apc);
44*ce110ea1SWei Hu void mana_sysctl_free_queues(struct mana_port_context *apc);
45*ce110ea1SWei Hu 
46*ce110ea1SWei Hu #endif /* !(MANA_SYSCTL_H) */
47