d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/*
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * CDDL HEADER START
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw *
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * The contents of this file are subject to the terms of the
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * Common Development and Distribution License (the "License").
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * You may not use this file except in compliance with the License.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw *
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * or http://www.opensolaris.org/os/licensing.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * See the License for the specific language governing permissions
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * and limitations under the License.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw *
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * When distributing Covered Code, include this CDDL HEADER in each
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * If applicable, add the following below this CDDL HEADER, with the
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * fields enclosed by brackets "[]" replaced with your own identifying
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * information: Portions Copyright [yyyy] [name of copyright owner]
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw *
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * CDDL HEADER END
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/*
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * Copyright (C) 2003-2005 Chelsio Communications. All rights reserved.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#pragma ident "%Z%%M% %I% %E% SMI" /* ulp.h */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#ifndef ULP_H
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ULP_H
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#include "common.h"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwstruct ulp_intr_counts {
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int region_table_parity_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int egress_tp2ulp_data_parity_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int ingress_tp2ulp_data_parity_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_intr;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_e2c_cmd_payload_sync_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_c2e_cmd_payload_sync_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_e2c_fifo_read_empty_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_c2e_fifo_read_empty_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_parity_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_e2c_fifo_write_full_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int pm_c2e_fifo_write_full_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw};
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwstruct peulp;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwstruct peulp *t1_ulp_create(adapter_t * adapter);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_ulp_destroy(struct peulp *ulp);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwint t1_ulp_init(struct peulp *ulp, unsigned int pm_tx_base);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_ulp_intr_enable(struct peulp *ulp);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_ulp_intr_clear(struct peulp *ulp);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_ulp_intr_disable(struct peulp *ulp);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwint t1_ulp_intr_handler(struct peulp *ulp);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwconst struct ulp_intr_counts *t1_ulp_get_intr_counts(struct peulp *ulp);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#endif