pcmu_ib.h revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PCMU_IB_H
#define _SYS_PCMU_IB_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/ddi_subrdefs.h>
typedef uint8_t pcmu_ib_ino_t;
typedef uint16_t pcmu_ib_mondo_t;
/*
* The following structure represents an interrupt entry for an INO.
*/
typedef struct ih {
} ih_t;
/*
* ino structure : one per CMU-CH ino with interrupt registered
*/
typedef struct pcmu_ib_ino_info {
struct pcmu_ib_ino_info *pino_next;
int pino_established; /* ino has been associated with a cpu */
/*
* interrupt block soft state structure:
*/
struct pcmu_ib {
};
#define PCMU_MAX_INO 0x3f
/*
* Only used for fixed or legacy interrupts
*/
#define PCMU_INTR_STATE_DISABLE 0 /* disabled */
#define PCMU_IB_INTR_NOWAIT 0 /* handling intr, no wait */
extern int pcmu_pil[];
/*
* Prototypes
*/
extern void pcmu_ib_intr_dist_all(void *arg,
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PCMU_IB_H */