/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (C) 2003-2005 Chelsio Communications. All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI" /* ulp.c */
#include "common.h"
#include "regs.h"
#include "ulp.h"
struct peulp {
};
{
/* Only ASIC boards support PL_ULP block. */
pl_intr | F_PL_INTR_ULP);
}
}
{
}
}
{
pl_intr & ~F_PL_INTR_ULP);
}
}
{
if (cause & F_HREG_PAR_ERR)
if (cause & F_EGRS_DATA_PAR_ERR)
if (cause & F_INGRS_DATA_PAR_ERR)
if (cause & F_PM_E2C_SYNC_ERR)
if (cause & F_PM_C2E_SYNC_ERR)
if (cause & F_PM_E2C_EMPTY_ERR)
if (cause & F_PM_C2E_EMPTY_ERR)
if (G_PM_PAR_ERR(cause))
if (cause & F_PM_E2C_WRT_FULL)
if (cause & F_PM_C2E_WRT_FULL)
if (cause & ULP_INTR_MASK)
/* Clear status */
return 0;
}
{
int i;
/*
* Initialize ULP Region Table.
*
* The region table memory has read enable tied to one, so data is
* read out every cycle. The address to this memory is not defined
* at reset and gets set first time when first ulp pdu is handled.
* So after reset an undefined location is accessed, and since it is
* read before any meaningful data is written to it there can be a
* parity error.
*/
for (i = 0; i < 256; i++) {
}
/* region table is not used */
/* enable page size in pagepod */
}
return 0;
}
{
if (ulp)
return ulp;
}
{
}
{
return &ulp->intr_counts;
}