xref: /titanic_41/usr/src/uts/i86pc/sys/apic_ctlr.h (revision 2917a9c9c3eee6fcaedb239f5f68da01f4ed0da9)
1*2917a9c9Sschwartz /*
2*2917a9c9Sschwartz  * CDDL HEADER START
3*2917a9c9Sschwartz  *
4*2917a9c9Sschwartz  * The contents of this file are subject to the terms of the
5*2917a9c9Sschwartz  * Common Development and Distribution License (the "License").
6*2917a9c9Sschwartz  * You may not use this file except in compliance with the License.
7*2917a9c9Sschwartz  *
8*2917a9c9Sschwartz  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2917a9c9Sschwartz  * or http://www.opensolaris.org/os/licensing.
10*2917a9c9Sschwartz  * See the License for the specific language governing permissions
11*2917a9c9Sschwartz  * and limitations under the License.
12*2917a9c9Sschwartz  *
13*2917a9c9Sschwartz  * When distributing Covered Code, include this CDDL HEADER in each
14*2917a9c9Sschwartz  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2917a9c9Sschwartz  * If applicable, add the following below this CDDL HEADER, with the
16*2917a9c9Sschwartz  * fields enclosed by brackets "[]" replaced with your own identifying
17*2917a9c9Sschwartz  * information: Portions Copyright [yyyy] [name of copyright owner]
18*2917a9c9Sschwartz  *
19*2917a9c9Sschwartz  * CDDL HEADER END
20*2917a9c9Sschwartz  */
21*2917a9c9Sschwartz /*
22*2917a9c9Sschwartz  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*2917a9c9Sschwartz  * Use is subject to license terms.
24*2917a9c9Sschwartz  */
25*2917a9c9Sschwartz 
26*2917a9c9Sschwartz #ifndef _SYS_APIC_CTLR_H
27*2917a9c9Sschwartz #define	_SYS_APIC_CTLR_H
28*2917a9c9Sschwartz 
29*2917a9c9Sschwartz #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*2917a9c9Sschwartz 
31*2917a9c9Sschwartz #ifdef	__cplusplus
32*2917a9c9Sschwartz extern "C" {
33*2917a9c9Sschwartz #endif
34*2917a9c9Sschwartz 
35*2917a9c9Sschwartz /*
36*2917a9c9Sschwartz  * Macros dealing with controller version field returned as part of
37*2917a9c9Sschwartz  * PSM_INTR_OP_APIC_TYPE.
38*2917a9c9Sschwartz  */
39*2917a9c9Sschwartz #define	PSMAT_LOCAL_APIC_VER(ctlr_ver)	((ctlr_ver) & 0xff)
40*2917a9c9Sschwartz #define	PSMAT_IO_APIC_VER(ctlr_ver)	((ctlr_ver) >> 8)
41*2917a9c9Sschwartz 
42*2917a9c9Sschwartz #ifdef	__cplusplus
43*2917a9c9Sschwartz }
44*2917a9c9Sschwartz #endif
45*2917a9c9Sschwartz 
46*2917a9c9Sschwartz #endif	/* _SYS_APIC_CTLR_H */
47