xref: /illumos-gate/usr/src/uts/common/io/xge/hal/include/xgehal-mgmtaux.h (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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,
34     int bufsize, char *retbuf, int *retsize);
35 
36 xge_hal_status_e xge_hal_aux_stats_tmac_read(xge_hal_device_h devh,
37     int	bufsize, char *retbuf, int *retsize);
38 
39 xge_hal_status_e xge_hal_aux_stats_rmac_read(xge_hal_device_h devh,
40     int	bufsize, 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,
46     int bufsize, char *retbuf, int *retsize);
47 
48 xge_hal_status_e xge_hal_aux_stats_hal_read(xge_hal_device_h devh,
49     int bufsize, 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, int *retsize);
53 
54 xge_hal_status_e xge_hal_aux_bar0_write(xge_hal_device_h devh,
55 			unsigned int offset, u64 value);
56 
57 xge_hal_status_e xge_hal_aux_bar1_read(xge_hal_device_h devh,
58 			unsigned int offset, int bufsize, char *retbuf, int *retsize);
59 
60 xge_hal_status_e xge_hal_aux_pci_config_read(xge_hal_device_h devh,
61     int	bufsize, char *retbuf, int *retsize);
62 
63 xge_hal_status_e xge_hal_aux_stats_herc_enchanced(xge_hal_device_h devh,
64 			int bufsize, char *retbuf, int *retsize);
65 
66 xge_hal_status_e xge_hal_aux_channel_read(xge_hal_device_h devh,
67     int bufsize, char *retbuf, int *retsize);
68 
69 xge_hal_status_e xge_hal_aux_device_dump(xge_hal_device_h devh);
70 
71 
72 xge_hal_status_e xge_hal_aux_driver_config_read(
73     int bufsize, char *retbuf, int *retsize);
74 
75 xge_hal_status_e xge_hal_aux_device_config_read(xge_hal_device_h devh,
76     int bufsize, char *retbuf, int *retsize);
77 
78 __EXTERN_END_DECLS
79 
80 #endif /* XGE_HAL_MGMTAUX_H */
81