/*
* CDDL HEADER START
*
* Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
* 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:
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When using or redistributing this file, you may do so under the
* License only. No other modification of this header is permitted.
*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms of the CDDL.
*/
#ifndef _IGB_OSDEP_H
#define _IGB_OSDEP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/dditypes.h>
#include "igb_debug.h"
#ifdef IGB_DEBUG
#else
#define DEBUGFUNC(F)
#endif
#define false B_FALSE
#define true B_TRUE
#define FALSE false
#define TRUE true
/*
* Constants used in setting flow control thresholds
*/
/* PHY Extended Status Register */
/* VMDq MODE supported by hardware */
#define E1000_VMDQ_OFF 0
/* VMDq based on packet destination MAC address */
/* VMDq based on packet destination MAC address and RSS */
/* The default queue in each VMDqs */
(value))
typedef boolean_t bool;
/*
* igb only uses the first two of the ddi_acc_handle_t, the latter end up coming
* from the common code for devices that igb doesn't support. For now, we end up
* bringing in those other two handles just for making life easier for sharin
* code.
*/
struct igb_osdep {
};
/* Shared Code Mutex Defines */
#ifdef __sparc /* on SPARC, use only memory-mapped routines */
#else /* on x86, use port io routines */
reg); \
val); \
}
#endif /* __sparc */
#ifdef __cplusplus
}
#endif
#endif /* _IGB_OSDEP_H */