2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (C) 2003-2005 Chelsio Communications. All rights reserved.
2N/A */
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI" /* espi.h */
2N/A
2N/A#ifndef CHELSIO_ESPI_H
2N/A#define CHELSIO_ESPI_H
2N/A
2N/A#include "common.h"
2N/A
2N/Astruct espi_intr_counts {
2N/A unsigned int DIP4_err;
2N/A unsigned int rx_drops;
2N/A unsigned int tx_drops;
2N/A unsigned int rx_ovflw;
2N/A unsigned int parity_err;
2N/A unsigned int DIP2_parity_err;
2N/A};
2N/A
2N/Astruct peespi;
2N/A
2N/Astruct peespi *t1_espi_create(adapter_t *adapter);
2N/Avoid t1_espi_destroy(struct peespi *espi);
2N/Aint t1_espi_init(struct peespi *espi, int mac_type, int nports);
2N/A
2N/Avoid t1_espi_intr_enable(struct peespi *);
2N/Avoid t1_espi_intr_clear(struct peespi *);
2N/Avoid t1_espi_intr_disable(struct peespi *);
2N/Aint t1_espi_intr_handler(struct peespi *);
2N/Aconst struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi);
2N/A
2N/Avoid t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val);
2N/Au32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait);
2N/Aint t1_espi_get_mon_t204(adapter_t *, u32 *, u8);
2N/A
2N/A#endif
2N/A