acebus.h revision 03831d35f7499c87d51205817c93e9a8d42c4bae
a237e38e9161f0acd6451439d4a7dd597e66291dth * CDDL HEADER START
a237e38e9161f0acd6451439d4a7dd597e66291dth * The contents of this file are subject to the terms of the
a237e38e9161f0acd6451439d4a7dd597e66291dth * Common Development and Distribution License (the "License").
a237e38e9161f0acd6451439d4a7dd597e66291dth * You may not use this file except in compliance with the License.
a237e38e9161f0acd6451439d4a7dd597e66291dth * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a237e38e9161f0acd6451439d4a7dd597e66291dth * See the License for the specific language governing permissions
a237e38e9161f0acd6451439d4a7dd597e66291dth * and limitations under the License.
a237e38e9161f0acd6451439d4a7dd597e66291dth * When distributing Covered Code, include this CDDL HEADER in each
a237e38e9161f0acd6451439d4a7dd597e66291dth * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a237e38e9161f0acd6451439d4a7dd597e66291dth * If applicable, add the following below this CDDL HEADER, with the
a237e38e9161f0acd6451439d4a7dd597e66291dth * fields enclosed by brackets "[]" replaced with your own identifying
a237e38e9161f0acd6451439d4a7dd597e66291dth * information: Portions Copyright [yyyy] [name of copyright owner]
a237e38e9161f0acd6451439d4a7dd597e66291dth * CDDL HEADER END
a237e38e9161f0acd6451439d4a7dd597e66291dth * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
a237e38e9161f0acd6451439d4a7dd597e66291dth * Use is subject to license terms.
a237e38e9161f0acd6451439d4a7dd597e66291dth#pragma ident "%Z%%M% %I% %E% SMI"
a237e38e9161f0acd6451439d4a7dd597e66291dthextern "C" {
a237e38e9161f0acd6451439d4a7dd597e66291dth * driver state type:
a237e38e9161f0acd6451439d4a7dd597e66291dth * The i86pc specific code fragments are to support the debug of "honeynut"
a237e38e9161f0acd6451439d4a7dd597e66291dth * and "multigrain" prototypes on i86pc platform. Most of the fragments
a237e38e9161f0acd6451439d4a7dd597e66291dth * deal with differences in the interrupt dispatching between the prototypes
a237e38e9161f0acd6451439d4a7dd597e66291dth * and the cheerio ebus. On the prototype boards, all interrupt lines are
a237e38e9161f0acd6451439d4a7dd597e66291dth * tied together. For this case, the nexus driver uses a common interrupt
a237e38e9161f0acd6451439d4a7dd597e66291dth * handler to poll all of its children.
a237e38e9161f0acd6451439d4a7dd597e66291dth#if defined(i86pc)
a237e38e9161f0acd6451439d4a7dd597e66291dth * ebus device interrupt info;
a237e38e9161f0acd6451439d4a7dd597e66291dthtypedef struct {
a3175730a459223fb8f26a2915aa0a31f6b36f98th * driver soft state structure:
a237e38e9161f0acd6451439d4a7dd597e66291dthtypedef struct {
#if defined(i86pc)
#if defined(__sparc)
int intr_map_size;
struct ebus_pci_rangespec {
#define get_acebus_soft_state(i) \
#define alloc_acebus_soft_state(i) \
#define free_acebus_soft_state(i) \
#if defined(DEBUG)
#ifdef __cplusplus