/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_MACHINTREG_H
#define _SYS_MACHINTREG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Interrupt Receive Data Registers
* ASI_SDB_INTR_R or ASI_INTR_RECEIVE; ASI 0x7F; VA 0x40, 0x50, 0x60
*/
/*
* Interrupt Receive Status Register
* ASI_INTR_RECEIVE_STATUS; ASI 0x49; VA 0x0
*
* |---------------------------------------------------|
* | RESERVED (Read as 0) | BUSY | PORTID |
* |--------------------------------|------|-----------|
* 63 6 5 4 0
*
*/
/*
* Interrupt Dispatch Data Register
* ASI_SDB_INTR_W or ASI_INTR_DISPATCH; ASI 0x77; VA 0x40, 0x50, 0x60
*/
/*
* Interrupt Dispatch Command Register
* ASI_INTR_DISPATCH or ASI_SDB_INTR_W; ASI 0x77; VA = PORTID<<14|0x70
*
* |------------------------------------------------|
* |---------|-----------------------|--------------|
* 63 19 18 14 13 0
*/
#else /* (JALAPENO || SERRANO) */
/*
* Interrupt Dispatch Command Register
* ASI_INTR_DISPATCH or ASI_SDB_INTR_W; ASI 0x77; VA = PORTID<<14|0x70
*
* |------------------------------------------------|
* |---------|-----------|-----------|--------------|
* 63 29 28 24 23 14 13 0
*/
#endif /* (JALAPENO || SERRANO) */
/*
* Interrupt Dispatch Status Register
* ASI_INTR_DISPATCH_STATUS; ASI 0x48; VA 0x0
*
* |---------------------------------------------------|
* | RESERVED (Read as 0) | NACK | BUSY |
* |-----------------------------------|-------|-------|
* 63 2 1 0 |
*/
/*
*/
#else /* (JALAPENO || SERRANO) */
#endif /* (JALAPENO || SERRANO) */
/*
* Interrupt Number Register
* Every interrupt source has a register associated with it
*
* |---------------------------------------------------|
* |INT_EN | PORTID |RESERVED (Read as 0)| INT_NUMBER|
* | | | | IGN | INO |
* |-------|----------|--------------------|-----|-----|
* | 31 30 26 25 11 10 6 5 0
*/
#ifdef _STARFIRE
/*
* Starfire interrupt group number is 7 bits
* Starfire's IGN (inter group #) is not the same as upaid
*/
#else
/*
* IGN_SIZE can be defined in a platform's makefile. If it is not defined,
* use a default of 5.
*/
#ifndef IGN_SIZE
#endif
#endif /* _STARFIRE */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MACHINTREG_H */