/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <hpi_vir.h>
#include <hxge_defs.h>
#include <hxge_impl.h>
/*
* Set up a logical group number that a logical device belongs to.
*/
{
" hpi_fzc_ldg_num_set ld <0x%x>", ld));
}
" hpi_fzc_ldg_num_set ldg <0x%x>", ldg));
}
return (HPI_SUCCESS);
}
/*
* Get device state vectors.
*/
{
int status;
return (status);
}
return (status);
}
return (HPI_SUCCESS);
}
/*
* Get device state vectors.
*/
{
" hpi_ldsv_get Invalid Input ldg <0x%x>", ldg));
}
switch (vector) {
case VECTOR0:
break;
case VECTOR1:
break;
default:
" hpi_ldsv_get Invalid Input: ldsv type <0x%x>", vector));
}
return (HPI_SUCCESS);
}
/*
* Set the mask bits for both ldf0 and ldf1.
*/
{
" hpi_intr_mask_set ld", ld));
}
ldf_mask &= LD_IM_MASK;
"hpi_intr_mask_set: ld %d offset 0x%0x mask 0x%x",
return (HPI_SUCCESS);
}
/*
* Set interrupt timer and arm bit.
*/
{
" hpi_intr_ldg_mgmt_set Invalid Input: ldg <0x%x>", ldg));
}
if (!LD_INTTIMER_VALID(timer)) {
" hpi_intr_ldg_mgmt_set Invalid Input"
" timer <0x%x>", timer));
}
if (arm) {
} else {
}
" hpi_intr_ldg_mgmt_set: ldg %d reg offset 0x%x",
return (HPI_SUCCESS);
}
/*
* Set the timer resolution.
*/
{
if (res > LDGTITMRES_RES_MASK) {
" hpi_fzc_ldg_timer_res_set Invalid Input: res <0x%x>",
res));
return (HPI_FAILURE | HPI_VIR_TM_RES_INVALID);
}
return (HPI_SUCCESS);
}
/*
* Set the system interrupt data.
*/
{
}
" hpi_fzc_sid_set Invalid Input: vector <0x%x>",
}
return (HPI_SUCCESS);
}
/*
*/
{
if (mask) {
}
return (HPI_SUCCESS);
}
/*
* Get the system error stats.
*/
{
return (HPI_SUCCESS);
}