xref: /netbsd-src/sys/arch/ia64/include/sapicreg.h (revision 833b14845d7033300a08fe412b7027bced7669cf)
1*833b1484Skiyohara /*-
2*833b1484Skiyohara  * Copyright (c) 2001 Doug Rabson
3*833b1484Skiyohara  * All rights reserved.
4*833b1484Skiyohara  *
5*833b1484Skiyohara  * Redistribution and use in source and binary forms, with or without
6*833b1484Skiyohara  * modification, are permitted provided that the following conditions
7*833b1484Skiyohara  * are met:
8*833b1484Skiyohara  * 1. Redistributions of source code must retain the above copyright
9*833b1484Skiyohara  *    notice, this list of conditions and the following disclaimer.
10*833b1484Skiyohara  * 2. Redistributions in binary form must reproduce the above copyright
11*833b1484Skiyohara  *    notice, this list of conditions and the following disclaimer in the
12*833b1484Skiyohara  *    documentation and/or other materials provided with the distribution.
13*833b1484Skiyohara  *
14*833b1484Skiyohara  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*833b1484Skiyohara  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*833b1484Skiyohara  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*833b1484Skiyohara  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*833b1484Skiyohara  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*833b1484Skiyohara  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*833b1484Skiyohara  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*833b1484Skiyohara  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*833b1484Skiyohara  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*833b1484Skiyohara  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*833b1484Skiyohara  * SUCH DAMAGE.
25*833b1484Skiyohara  *
26*833b1484Skiyohara  * $FreeBSD: src/sys/ia64/include/sapicreg.h,v 1.1 2001/10/05 10:30:08 dfr Exp $
27*833b1484Skiyohara  */
28*833b1484Skiyohara 
29*833b1484Skiyohara #ifndef _MACHINE_SAPICREG_H_
30*833b1484Skiyohara #define _MACHINE_SAPICREG_H_
31*833b1484Skiyohara 
32*833b1484Skiyohara /*
33*833b1484Skiyohara  * Offsets from the SAPIC base in memory. Most registers are accessed
34*833b1484Skiyohara  * by indexing using the SAPIC_IO_SELECT register.
35*833b1484Skiyohara  */
36*833b1484Skiyohara #define SAPIC_IO_SELECT		0x00
37*833b1484Skiyohara #define SAPIC_IO_WINDOW		0x10
38*833b1484Skiyohara #define SAPIC_APIC_EOI		0x40
39*833b1484Skiyohara 
40*833b1484Skiyohara /*
41*833b1484Skiyohara  * Indexed registers.
42*833b1484Skiyohara  */
43*833b1484Skiyohara #define SAPIC_ID		0x00
44*833b1484Skiyohara #define SAPIC_VERSION		0x01
45*833b1484Skiyohara #define SAPIC_ARBITRATION_ID	0x02
46*833b1484Skiyohara #define SAPIC_RTE_BASE		0x10
47*833b1484Skiyohara 
48*833b1484Skiyohara #endif /* ! _MACHINE_SAPICREG_H_ */
49