intrq.c revision 22defd952063f38887d1d2f9ddb11d93c91f00f5
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/machsystm.h>
#include <sys/machcpuvar.h>
#include <vm/hat_sfmmu.h>
#include <sys/hypervisor_api.h>
/*
* XXX needs to be set by some algorithm that derives this
* from the partition description
*/
int cpu_q_entries = 128;
int dev_q_entries = 128;
/*
* Once the partition description if finallized
* cpu_q_entries and dev_q_entries will be set
* and be garaunteed to be two's power multiples.
*/
#define INTR_CPU_Q 0x3c
#define INTR_DEV_Q 0x3d
#define INTR_REPORT_SIZE 64
/*
* XXX - This needs to be rewritten with prom calls to
* let OBP know the queues are allocated
*/
void
{
}
void
{
int cpu_list_size;
/*
* Allocate mondo data for xcalls.
*/
/*
* Allocate a percpu list of NCPU for xcalls
*/
if (cpu_list_size < INTR_REPORT_SIZE)
/*
* va_to_pa() is too expensive to call for every crosscall
* so we do it here at init time and save it in machcpu.
*/
/*
* Allocate sun4v interrupt and error queues.
*/
/* Allocate resumable queue and its kernel buffer */
/* zero out the memory */
/* Allocate nonresumable queue here */
/* zero out the memory */
}