xref: /dflybsd-src/sys/platform/pc64/apic/apicvar.h (revision aaea8fd38687ebe012024c20a7d5b8e15c61d3b3)
1c8fe38aeSMatthew Dillon /*-
2c8fe38aeSMatthew Dillon  * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org>
3c8fe38aeSMatthew Dillon  * Copyright (c) 2008 The DragonFly Project.
4c8fe38aeSMatthew Dillon  * All rights reserved.
5c8fe38aeSMatthew Dillon  *
6c8fe38aeSMatthew Dillon  * Redistribution and use in source and binary forms, with or without
7c8fe38aeSMatthew Dillon  * modification, are permitted provided that the following conditions
8c8fe38aeSMatthew Dillon  * are met:
9c8fe38aeSMatthew Dillon  * 1. Redistributions of source code must retain the above copyright
10c8fe38aeSMatthew Dillon  *    notice, this list of conditions and the following disclaimer.
11c8fe38aeSMatthew Dillon  * 2. Redistributions in binary form must reproduce the above copyright
12c8fe38aeSMatthew Dillon  *    notice, this list of conditions and the following disclaimer in the
13c8fe38aeSMatthew Dillon  *    documentation and/or other materials provided with the distribution.
14c8fe38aeSMatthew Dillon  * 3. Neither the name of the author nor the names of any co-contributors
15c8fe38aeSMatthew Dillon  *    may be used to endorse or promote products derived from this software
16c8fe38aeSMatthew Dillon  *    without specific prior written permission.
17c8fe38aeSMatthew Dillon  *
18c8fe38aeSMatthew Dillon  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19c8fe38aeSMatthew Dillon  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20c8fe38aeSMatthew Dillon  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21c8fe38aeSMatthew Dillon  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22c8fe38aeSMatthew Dillon  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23c8fe38aeSMatthew Dillon  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24c8fe38aeSMatthew Dillon  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25c8fe38aeSMatthew Dillon  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26c8fe38aeSMatthew Dillon  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27c8fe38aeSMatthew Dillon  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28c8fe38aeSMatthew Dillon  * SUCH DAMAGE.
29c8fe38aeSMatthew Dillon  *
30c8fe38aeSMatthew Dillon  * $FreeBSD: src/sys/i386/include/apicvar.h,v 1.5 2003/11/14 22:21:30 peter Exp $
31c8fe38aeSMatthew Dillon  * $DragonFly: src/sys/platform/pc64/apic/apicvar.h,v 1.1 2008/08/29 17:07:12 dillon Exp $
32c8fe38aeSMatthew Dillon  */
33c8fe38aeSMatthew Dillon 
34c8fe38aeSMatthew Dillon #ifndef _MACHINE_APICVAR_H_
35c8fe38aeSMatthew Dillon #define _MACHINE_APICVAR_H_
36c8fe38aeSMatthew Dillon 
37c8fe38aeSMatthew Dillon /*
388a4f8756SSepherosa Ziehau  * Size of APIC ID list.
398a4f8756SSepherosa Ziehau  * Also used a MAX size of various other arrays.
408a4f8756SSepherosa Ziehau  */
418a4f8756SSepherosa Ziehau #define NAPICID		256
428a4f8756SSepherosa Ziehau 
43*740024d3SSepherosa Ziehau /*
44*740024d3SSepherosa Ziehau  * APICID must be less than this value
45*740024d3SSepherosa Ziehau  * 255 is for "broadcast to all APICs"
46*740024d3SSepherosa Ziehau  */
47*740024d3SSepherosa Ziehau #define APICID_MAX	255
48*740024d3SSepherosa Ziehau 
49c8fe38aeSMatthew Dillon #endif /* _MACHINE_APICVAR_H_ */
50