2 * Copyright(c) 2002-2011 Exar Corp.
5 * Redistribution and use in source and binary forms, with or without
6 * modification are permitted provided the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
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.
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.
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.
38 /* Function declerations */
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);
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);
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);
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);
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 *);
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 *);
79 void* vxge_mem_alloc(u_long);
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[];
90 #endif /* _VXGE_INFO_H_ */