/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* CMU-CH Control Block object
*/
#include <sys/ddi_impldefs.h>
#include <sys/machsystm.h>
extern uint64_t xc_tick_jump_limit;
void
{
}
void
{
}
{
}
{
}
static void
{
"pci-%x pcmu_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 pcb_inos[] and
* cb will own its distribution.
*/
void
{
cpu_id = intr_dist_cpuid();
"pci-%x pcmu_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 */
PCMU_CLEAR_INTR_REG_PENDING) && !panicstr) {
/*
* If we have a really large jump in hrtime, it is most
* probably because we entered the debugger (or OBP,
* in general). So, we adjust the timeout accordingly
* to prevent declaring an interrupt timeout. The
* master-interrupt mechanism in OBP should deliver
* the interrupts properly.
*/
intr_timeout += interval;
"pcmu_cb_disable_nintr_reg(%lx,%x) timeout",
break;
}
}
}
}
void
{
imr_p);
}
void
{
}
void
{
int i;
for (i = 0; i < pcb_p->pcb_no_of_inos; i++) {
if (!ino) /* skip non-shared interrupts */
continue;
if (!PCMU_IB_INO_INTR_ISON(imr))
continue;
cpu_id = intr_dist_cpuid();
}
}
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 pcmu_pbm_suspend/resume.
* But it complicates the logic.
*/
for (i = 0; i < inos; i++) {
if (!ino)
continue;
}
}
void
{
int i;
for (i = 0; i < pcb_p->pcb_no_of_inos; i++) {
if (!ino)
continue;
}
}