/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* PCI Control Block object
*/
#include <sys/ddi_impldefs.h>
#include <sys/machsystm.h>
#ifdef _STARFIRE
#include <sys/starfire.h>
#endif /* _STARFIRE */
/*LINTLIBRARY*/
void
{
}
void
{
}
static void
{
"pci-%x cb_set_nintr_reg: ino=%x PA=%016llx\n",
}
/*
* enable an internal interrupt source:
* if an interrupt is shared by both sides, record it in cb_inos[] and
* cb will own its distribution.
*/
void
{
cpu_id = intr_dist_cpuid();
#ifdef _STARFIRE
#endif /* _STARFIRE */
"pci-%x cb_enable_nintr: ino=%x cpu_id=%x\n",
}
static void
{
/* mark interrupt invalid in mapping register */
if (wait) {
/* busy wait if there is interrupt being processed */
/* unless panic or timeout for interrupt pending is reached */
start_time = gethrtime();
"pci@%x cb_disable_nintr_reg(%lx,%x) timeout",
break;
}
}
}
}
void
{
#ifdef _STARFIRE
#endif /* _STARFIRE */
}
void
{
}
void
{
int i;
for (i = 0; i < cb_p->cb_no_of_inos; i++) {
if (!ino) /* skip non-shared interrupts */
continue;
if (!IB_INO_INTR_ISON(imr))
continue;
cpu_id = intr_dist_cpuid();
#ifdef _STARFIRE
#else
continue; /* same cpu target, no re-program */
#endif
}
}
void
{
/*
* save the internal interrupts' mapping registers content
*
* The PBM IMR really doesn't need to be saved, as it is
* different per side and is handled by pbm_suspend/resume.
* But it complicates the logic.
*/
for (i = 0; i < inos; i++) {
if (!ino)
continue;
}
}
void
{
int i;
for (i = 0; i < cb_p->cb_no_of_inos; i++) {
if (!ino)
continue;
}
}