mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
3.6 KiB
67 lines
3.6 KiB
/***************************************************************************** |
|
* * |
|
* File: espi.h * |
|
* $Revision: 1.7 $ * |
|
* $Date: 2005/06/21 18:29:47 $ * |
|
* Description: * |
|
* part of the Chelsio 10Gb Ethernet Driver. * |
|
* * |
|
* This program is free software; you can redistribute it and/or modify * |
|
* it under the terms of the GNU General Public License, version 2, as * |
|
* published by the Free Software Foundation. * |
|
* * |
|
* You should have received a copy of the GNU General Public License along * |
|
* with this program; if not, see <http://www.gnu.org/licenses/>. * |
|
* * |
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * |
|
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * |
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * |
|
* * |
|
* http://www.chelsio.com * |
|
* * |
|
* Copyright (c) 2003 - 2005 Chelsio Communications, Inc. * |
|
* All rights reserved. * |
|
* * |
|
* Maintainers: [email protected] * |
|
* * |
|
* Authors: Dimitrios Michailidis <[email protected]> * |
|
* Tina Yang <[email protected]> * |
|
* Felix Marti <[email protected]> * |
|
* Scott Bardone <[email protected]> * |
|
* Kurt Ottaway <[email protected]> * |
|
* Frank DiMambro <[email protected]> * |
|
* * |
|
* History: * |
|
* * |
|
****************************************************************************/ |
|
|
|
#ifndef _CXGB_ESPI_H_ |
|
#define _CXGB_ESPI_H_ |
|
|
|
#include "common.h" |
|
|
|
struct espi_intr_counts { |
|
unsigned int DIP4_err; |
|
unsigned int rx_drops; |
|
unsigned int tx_drops; |
|
unsigned int rx_ovflw; |
|
unsigned int parity_err; |
|
unsigned int DIP2_parity_err; |
|
}; |
|
|
|
struct peespi; |
|
|
|
struct peespi *t1_espi_create(adapter_t *adapter); |
|
void t1_espi_destroy(struct peespi *espi); |
|
int t1_espi_init(struct peespi *espi, int mac_type, int nports); |
|
|
|
void t1_espi_intr_enable(struct peespi *); |
|
void t1_espi_intr_clear(struct peespi *); |
|
void t1_espi_intr_disable(struct peespi *); |
|
int t1_espi_intr_handler(struct peespi *); |
|
const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi); |
|
|
|
u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait); |
|
int t1_espi_get_mon_t204(adapter_t *, u32 *, u8); |
|
|
|
#endif /* _CXGB_ESPI_H_ */
|
|
|