xgehal-mgmtaux.h revision 171095
133965Sjdp/*-
233965Sjdp * Copyright (c) 2002-2007 Neterion, Inc.
333965Sjdp * All rights reserved.
433965Sjdp *
533965Sjdp * Redistribution and use in source and binary forms, with or without
633965Sjdp * modification, are permitted provided that the following conditions
733965Sjdp * are met:
833965Sjdp * 1. Redistributions of source code must retain the above copyright
933965Sjdp *    notice, this list of conditions and the following disclaimer.
1033965Sjdp * 2. Redistributions in binary form must reproduce the above copyright
1133965Sjdp *    notice, this list of conditions and the following disclaimer in the
1233965Sjdp *    documentation and/or other materials provided with the distribution.
1333965Sjdp *
1433965Sjdp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1533965Sjdp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1633965Sjdp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1733965Sjdp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1833965Sjdp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1933965Sjdp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2033965Sjdp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2133965Sjdp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2233965Sjdp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2333965Sjdp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2460484Sobrien * SUCH DAMAGE.
2560484Sobrien *
2660484Sobrien * $FreeBSD: head/sys/dev/nxge/include/xgehal-mgmtaux.h 171095 2007-06-29 22:47:18Z sam $
2760484Sobrien */
2860484Sobrien
2960484Sobrien/*
3060484Sobrien *  FileName :    xgehal-mgmtaux.h
3160484Sobrien *
3260484Sobrien *  Description:  management auxiliary API
3360484Sobrien *
3460484Sobrien *  Created:      1 September 2004
3560484Sobrien */
3660484Sobrien
3760484Sobrien#ifndef XGE_HAL_MGMTAUX_H
3860484Sobrien#define XGE_HAL_MGMTAUX_H
3960484Sobrien
4060484Sobrien#include <dev/nxge/include/xgehal-mgmt.h>
4160484Sobrien
4260484Sobrien__EXTERN_BEGIN_DECLS
4360484Sobrien
4460484Sobrien#define XGE_HAL_AUX_SEPA		' '
4560484Sobrien
4660484Sobrienxge_hal_status_e xge_hal_aux_about_read(xge_hal_device_h devh, int bufsize,
4760484Sobrien			char *retbuf, int *retsize);
4860484Sobrien
4960484Sobrienxge_hal_status_e xge_hal_aux_stats_tmac_read(xge_hal_device_h devh, int	bufsize,
5033965Sjdp			char *retbuf, int *retsize);
5160484Sobrien
52xge_hal_status_e xge_hal_aux_stats_rmac_read(xge_hal_device_h devh, int	bufsize,
53			char *retbuf, int *retsize);
54
55xge_hal_status_e xge_hal_aux_stats_sw_dev_read(xge_hal_device_h devh,
56			int bufsize, char *retbuf, int *retsize);
57
58xge_hal_status_e xge_hal_aux_stats_pci_read(xge_hal_device_h devh, int bufsize,
59			char *retbuf, int *retsize);
60
61xge_hal_status_e xge_hal_aux_stats_hal_read(xge_hal_device_h devh, int bufsize,
62			char *retbuf, int *retsize);
63
64xge_hal_status_e xge_hal_aux_bar0_read(xge_hal_device_h	devh,
65			unsigned int offset, int bufsize, char *retbuf,
66			int *retsize);
67
68xge_hal_status_e xge_hal_aux_bar0_write(xge_hal_device_h devh,
69			unsigned int offset, u64 value);
70
71xge_hal_status_e xge_hal_aux_bar1_read(xge_hal_device_h devh,
72			unsigned int offset, int bufsize, char *retbuf,
73			int *retsize);
74
75xge_hal_status_e xge_hal_aux_pci_config_read(xge_hal_device_h devh, int	bufsize,
76			char *retbuf, int *retsize);
77
78xge_hal_status_e xge_hal_aux_stats_herc_enchanced(xge_hal_device_h devh,
79			int bufsize, char *retbuf, int *retsize);
80
81xge_hal_status_e xge_hal_aux_channel_read(xge_hal_device_h devh, int bufsize,
82			char *retbuf, int *retsize);
83
84xge_hal_status_e xge_hal_aux_device_dump(xge_hal_device_h devh);
85
86
87xge_hal_status_e xge_hal_aux_driver_config_read(int bufsize, char *retbuf,
88			int *retsize);
89
90xge_hal_status_e xge_hal_aux_device_config_read(xge_hal_device_h devh,
91			int bufsize, char *retbuf, int *retsize);
92
93__EXTERN_END_DECLS
94
95#endif /* XGE_HAL_MGMTAUX_H */
96