]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/vxge/vxge_info.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / vxge / vxge_info.h
1 /*-
2  * Copyright(c) 2002-2011 Exar Corp.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification are permitted provided the following conditions are met:
7  *
8  *    1. Redistributions of source code must retain the above copyright notice,
9  *       this list of conditions and the following disclaimer.
10  *
11  *    2. Redistributions in binary form must reproduce the above copyright
12  *       notice, this list of conditions and the following disclaimer in the
13  *       documentation and/or other materials provided with the distribution.
14  *
15  *    3. Neither the name of the Exar Corporation nor the names of its
16  *       contributors may be used to endorse or promote products derived from
17  *       this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 /*$FreeBSD$*/
32
33 #ifndef _VXGE_INFO_H_
34 #define _VXGE_INFO_H_
35
36 #include "vxge_cmn.h"
37
38 /* Function declerations */
39
40 void    vxge_get_registers_all(void);
41 int     vxge_get_registers_toc(void);
42 int     vxge_get_registers_vpath(void);
43 int     vxge_get_registers_vpmgmt(void);
44 int     vxge_get_registers_legacy(void);
45 int     vxge_get_registers_srpcim(void);
46 int     vxge_get_registers_mrpcim(void);
47 int     vxge_get_registers_common(void);
48 int     vxge_get_registers_pcicfgmgmt(void);
49
50 int     vxge_get_stats_common(void);
51 int     vxge_get_stats_mrpcim(void);
52 int     vxge_get_stats_driver(int);
53 void    vxge_get_stats_all(void);
54
55 int     vxge_get_hw_info(void);
56 int     vxge_get_pci_config(void);
57 int     vxge_get_port_mode(void);
58 int     vxge_set_port_mode(int);
59
60 int     vxge_get_bw_priority(int, vxge_query_device_info_e);
61 int     vxge_set_bw_priority(int, int, int, vxge_query_device_info_e);
62
63 void    vxge_print_registers(void *);
64 void    vxge_print_registers_toc(void *);
65 void    vxge_print_registers_vpath(void *, int);
66 void    vxge_print_registers_vpmgmt(void *);
67 void    vxge_print_registers_legacy(void *);
68 void    vxge_print_registers_srpcim(void *);
69 void    vxge_print_registers_mrpcim(void *);
70 void    vxge_print_registers_pcicfgmgmt(void *);
71
72 void    vxge_print_hw_info(void *);
73 void    vxge_print_pci_config(void *);
74 void    vxge_print_stats(void *, int);
75 void    vxge_print_stats_drv(void *, int);
76 void    vxge_print_bw_priority(void *);
77 void    vxge_print_port_mode(void *);
78
79 void*   vxge_mem_alloc(u_long);
80
81 extern  vxge_pci_bar0_t reginfo_toc[];
82 extern  vxge_pci_bar0_t reginfo_vpath[];
83 extern  vxge_pci_bar0_t reginfo_legacy[];
84 extern  vxge_pci_bar0_t reginfo_vpmgmt[];
85 extern  vxge_pci_bar0_t reginfo_mrpcim[];
86 extern  vxge_pci_bar0_t reginfo_srpcim[];
87 extern  vxge_pci_bar0_t reginfo_registers[];
88 extern  vxge_pci_bar0_t reginfo_pcicfgmgmt[];
89
90 #endif  /* _VXGE_INFO_H_ */