/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_NIUMX_VAR_H
#define _SYS_NIUMX_VAR_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum { /* same sequence as niumx_debug_sym[] */
#if defined(DEBUG)
#else
#define DBG 0 &&
#endif /* DEBUG */
/*
* The following structure represents an interrupt handler control block for
* each interrupt added via ddi_intr_add_handler().
*/
typedef struct niumx_ih {
} niumx_ih_t;
typedef struct niumx_devstate {
int niumx_soft_state;
int niumx_open_count;
int niumx_fm_cap;
/*
* flags for overloading dmai_inuse field of the dma request structure:
*/
/* for "ranges" property */
typedef struct niumx_ranges {
/* IPL of 6 for networking devices */
typedef struct {
/*
* HV INTR API versioning.
*
* Currently NIU nexus driver supports version 1.0
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_NIUMX_VAR_H */