/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_ACEBUS_H
#define _SYS_ACEBUS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* driver state type:
*/
/*
* The i86pc specific code fragments are to support the debug of "honeynut"
* and "multigrain" prototypes on i86pc platform. Most of the fragments
* deal with differences in the interrupt dispatching between the prototypes
* and the cheerio ebus. On the prototype boards, all interrupt lines are
* tied together. For this case, the nexus driver uses a common interrupt
* handler to poll all of its children.
*/
#if defined(i86pc)
/*
* ebus device interrupt info;
*/
typedef struct {
char *name;
#endif
struct ebus_intr_map {
};
struct ebus_intr_map_mask {
};
/*
* driver soft state structure:
*/
typedef struct {
int nreg;
int range_cnt;
#if defined(i86pc)
#endif
#if defined(__sparc)
/* Interrupt support */
int intr_map_size;
#endif
/*
* definition of ebus reg spec entry:
*/
typedef struct {
/* EBUS range entry */
struct ebus_pci_rangespec {
};
/*
* use macros for soft state and driver properties:
*/
#define get_acebus_soft_state(i) \
#define alloc_acebus_soft_state(i) \
#define free_acebus_soft_state(i) \
/*
* register offsets and lengths:
*/
/*
* timing control register settings:
*/
#if defined(DEBUG)
static void
#else
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_ACEBUS_H */