xref: /illumos-gate/usr/src/uts/common/io/xge/hal/include/xgehal-mgmtaux.h (revision 4fceebdf03eeac0d7c58a4f70cc19b00a8c40a73)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  *
21  * Copyright (c) 2002-2006 Neterion, Inc.
22  */
23 
24 #ifndef XGE_HAL_MGMTAUX_H
25 #define XGE_HAL_MGMTAUX_H
26 
27 #include "xgehal-mgmt.h"
28 
29 __EXTERN_BEGIN_DECLS
30 
31 #define XGE_HAL_AUX_SEPA		' '
32 
33 xge_hal_status_e xge_hal_aux_about_read(xge_hal_device_h devh, int bufsize,
34 			char *retbuf, int *retsize);
35 
36 xge_hal_status_e xge_hal_aux_stats_tmac_read(xge_hal_device_h devh, int	bufsize,
37 			char *retbuf, int *retsize);
38 
39 xge_hal_status_e xge_hal_aux_stats_rmac_read(xge_hal_device_h devh, int	bufsize,
40 			char *retbuf, int *retsize);
41 
42 xge_hal_status_e xge_hal_aux_stats_sw_dev_read(xge_hal_device_h devh,
43 			int bufsize, char *retbuf, int *retsize);
44 
45 xge_hal_status_e xge_hal_aux_stats_pci_read(xge_hal_device_h devh, int bufsize,
46 			char *retbuf, int *retsize);
47 
48 xge_hal_status_e xge_hal_aux_stats_hal_read(xge_hal_device_h devh, int bufsize,
49 			char *retbuf, int *retsize);
50 
51 xge_hal_status_e xge_hal_aux_bar0_read(xge_hal_device_h	devh,
52 			unsigned int offset, int bufsize, char *retbuf,
53 			int *retsize);
54 
55 xge_hal_status_e xge_hal_aux_bar0_write(xge_hal_device_h devh,
56 			unsigned int offset, u64 value);
57 
58 xge_hal_status_e xge_hal_aux_bar1_read(xge_hal_device_h devh,
59 			unsigned int offset, int bufsize, char *retbuf,
60 			int *retsize);
61 
62 xge_hal_status_e xge_hal_aux_pci_config_read(xge_hal_device_h devh, int	bufsize,
63 			char *retbuf, int *retsize);
64 
65 xge_hal_status_e xge_hal_aux_stats_herc_enchanced(xge_hal_device_h devh,
66 			int bufsize, char *retbuf, int *retsize);
67 
68 xge_hal_status_e xge_hal_aux_channel_read(xge_hal_device_h devh, int bufsize,
69 			char *retbuf, int *retsize);
70 
71 xge_hal_status_e xge_hal_aux_device_dump(xge_hal_device_h devh);
72 
73 
74 xge_hal_status_e xge_hal_aux_driver_config_read(int bufsize, char *retbuf,
75 			int *retsize);
76 
77 xge_hal_status_e xge_hal_aux_device_config_read(xge_hal_device_h devh,
78 			int bufsize, char *retbuf, int *retsize);
79 
80 __EXTERN_END_DECLS
81 
82 #endif /* XGE_HAL_MGMTAUX_H */
83