7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz/*
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * CDDL HEADER START
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz *
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * The contents of this file are subject to the terms of the
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * Common Development and Distribution License, Version 1.0 only
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * (the "License"). You may not use this file except in compliance
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * with the License.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz *
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * or http://www.opensolaris.org/os/licensing.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * See the License for the specific language governing permissions
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * and limitations under the License.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz *
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * When distributing Covered Code, include this CDDL HEADER in each
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * If applicable, add the following below this CDDL HEADER, with the
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * fields enclosed by brackets "[]" replaced with your own identifying
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * information: Portions Copyright [yyyy] [name of copyright owner]
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz *
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * CDDL HEADER END
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz/*
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * Use is subject to license terms.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#ifndef _SYS_MACH_INTR_H
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#define _SYS_MACH_INTR_H
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#pragma ident "%Z%%M% %I% %E% SMI"
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz/*
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * Platform-dependent interrupt data structures
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz *
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * This file should not be included by code that purports to be
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * platform-independent.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz *
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#ifdef __cplusplus
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzextern "C" {
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#endif
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#ifdef _KERNEL
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz/*
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * Platform dependent data which hangs off the ih_private field of a
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz * ddi_intr_handle_impl_t
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartztypedef struct ihdl_plat {
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz struct intrspec *ip_ispecp; /* intr spec */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz kstat_t *ip_ksp; /* Kstat pointer */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz uint64_t ip_ticks; /* Interrupt ticks for this device */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz} ihdl_plat_t;
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#endif /* _KERNEL */
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#ifdef __cplusplus
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz}
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#endif
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#endif /* _SYS_MACH_INTR_H */