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