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" /* mc4.h */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#ifndef CHELSIO_MC4_H
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define CHELSIO_MC4_H
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#include "common.h"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwstruct pemc4_intr_counts {
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int corr_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int uncorr_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw unsigned int addr_err;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw};
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwstruct pemc4;
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwstruct pemc4 *t1_mc4_create(adapter_t *adapter);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_mc4_destroy(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwint t1_mc4_init(struct pemc4 *mc4, unsigned int clk);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwint t1_mc4_intr_handler(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_mc4_intr_enable(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_mc4_intr_disable(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwvoid t1_mc4_intr_clear(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwunsigned int t1_mc4_get_size(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwint t1_mc4_bd_read(struct pemc4 *mc4, unsigned int start, unsigned int n,
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw u32 *buf);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwconst struct pemc4_intr_counts *t1_mc4_get_intr_counts(struct pemc4 *mc4);
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#endif