0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 #ifndef _CXGB_ESPI_H_
0030 #define _CXGB_ESPI_H_
0031
0032 #include "common.h"
0033
0034 struct espi_intr_counts {
0035 unsigned int DIP4_err;
0036 unsigned int rx_drops;
0037 unsigned int tx_drops;
0038 unsigned int rx_ovflw;
0039 unsigned int parity_err;
0040 unsigned int DIP2_parity_err;
0041 };
0042
0043 struct peespi;
0044
0045 struct peespi *t1_espi_create(adapter_t *adapter);
0046 void t1_espi_destroy(struct peespi *espi);
0047 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
0048
0049 void t1_espi_intr_enable(struct peespi *);
0050 void t1_espi_intr_clear(struct peespi *);
0051 void t1_espi_intr_disable(struct peespi *);
0052 int t1_espi_intr_handler(struct peespi *);
0053 const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi);
0054
0055 u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait);
0056 int t1_espi_get_mon_t204(adapter_t *, u32 *, u8);
0057
0058 #endif