xref: /titanic_50/usr/src/uts/i86pc/sys/mach_intr.h (revision 7a364d25fde47aa82704b12b5251bf7fac37f02e)
1*7a364d25Sschwartz /*
2*7a364d25Sschwartz  * CDDL HEADER START
3*7a364d25Sschwartz  *
4*7a364d25Sschwartz  * The contents of this file are subject to the terms of the
5*7a364d25Sschwartz  * Common Development and Distribution License, Version 1.0 only
6*7a364d25Sschwartz  * (the "License").  You may not use this file except in compliance
7*7a364d25Sschwartz  * with the License.
8*7a364d25Sschwartz  *
9*7a364d25Sschwartz  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7a364d25Sschwartz  * or http://www.opensolaris.org/os/licensing.
11*7a364d25Sschwartz  * See the License for the specific language governing permissions
12*7a364d25Sschwartz  * and limitations under the License.
13*7a364d25Sschwartz  *
14*7a364d25Sschwartz  * When distributing Covered Code, include this CDDL HEADER in each
15*7a364d25Sschwartz  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7a364d25Sschwartz  * If applicable, add the following below this CDDL HEADER, with the
17*7a364d25Sschwartz  * fields enclosed by brackets "[]" replaced with your own identifying
18*7a364d25Sschwartz  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7a364d25Sschwartz  *
20*7a364d25Sschwartz  * CDDL HEADER END
21*7a364d25Sschwartz  */
22*7a364d25Sschwartz /*
23*7a364d25Sschwartz  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*7a364d25Sschwartz  * Use is subject to license terms.
25*7a364d25Sschwartz  */
26*7a364d25Sschwartz 
27*7a364d25Sschwartz #ifndef _SYS_MACH_INTR_H
28*7a364d25Sschwartz #define	_SYS_MACH_INTR_H
29*7a364d25Sschwartz 
30*7a364d25Sschwartz #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*7a364d25Sschwartz 
32*7a364d25Sschwartz /*
33*7a364d25Sschwartz  * Platform-dependent interrupt data structures
34*7a364d25Sschwartz  *
35*7a364d25Sschwartz  * This file should not be included by code that purports to be
36*7a364d25Sschwartz  * platform-independent.
37*7a364d25Sschwartz  *
38*7a364d25Sschwartz  */
39*7a364d25Sschwartz 
40*7a364d25Sschwartz #ifdef __cplusplus
41*7a364d25Sschwartz extern "C" {
42*7a364d25Sschwartz #endif
43*7a364d25Sschwartz 
44*7a364d25Sschwartz #ifdef _KERNEL
45*7a364d25Sschwartz 
46*7a364d25Sschwartz /*
47*7a364d25Sschwartz  * Platform dependent data which hangs off the ih_private field of a
48*7a364d25Sschwartz  * ddi_intr_handle_impl_t
49*7a364d25Sschwartz  */
50*7a364d25Sschwartz typedef struct ihdl_plat {
51*7a364d25Sschwartz 	struct intrspec *ip_ispecp;	/* intr spec */
52*7a364d25Sschwartz 	kstat_t		*ip_ksp;	/* Kstat pointer */
53*7a364d25Sschwartz 	uint64_t	ip_ticks;	/* Interrupt ticks for this device */
54*7a364d25Sschwartz } ihdl_plat_t;
55*7a364d25Sschwartz 
56*7a364d25Sschwartz #endif /* _KERNEL */
57*7a364d25Sschwartz 
58*7a364d25Sschwartz #ifdef __cplusplus
59*7a364d25Sschwartz }
60*7a364d25Sschwartz #endif
61*7a364d25Sschwartz 
62*7a364d25Sschwartz #endif	/* _SYS_MACH_INTR_H */
63