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