e1000_osdep.h revision 25f2d433de915875c8393f0b0dc14aa155997ad0
/*
* This file is provided under a CDDLv1 license. When using or
* redistributing this file, you may do so under this license.
* In redistributing this file this license must be included
* and no other modification of this header file is permitted.
*
* CDDL LICENSE SUMMARY
*
* Copyright(c) 1999 - 2007 Intel Corporation. All rights reserved.
*
* The contents of this file are subject to the terms of Version
* 1.0 of the Common Development and Distribution License (the "License").
*
* You should have received a copy of the License with this software.
* You can obtain a copy of the License at
* See the License for the specific language governing permissions
* and limitations under the License.
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms of the CDDLv1.
*/
#ifndef _E1000_OSDEP_H
#define _E1000_OSDEP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include "e1000g_debug.h"
/*
* === BEGIN CONTENT FORMERLY IN FXHW.H ===
*/
#define usec_delay(x) drv_usecwait(x)
#ifdef E1000G_DEBUG
#define DEBUGOUT(S) \
#define DEBUGOUT1(S, A) \
#define DEBUGOUT2(S, A, B) \
#define DEBUGOUT3(S, A, B, C) \
#define DEBUGFUNC(F) \
#else
#define DEBUGOUT(S)
#define DEBUGOUT1(S, A)
#define DEBUGOUT2(S, A, B)
#define DEBUGOUT3(S, A, B, C)
#define DEBUGFUNC(F)
#endif
#define FALSE 0
#define TRUE 1
#define PCI_COMMAND_REGISTER 0x04
#define PCI_EX_CONF_CAP 0xE0
#define RECEIVE_BUFFER_ALIGN_SIZE 256
#define E1000_MDALIGN 4096
#define E1000_ERT_2048 0x100
/* PHY Extended Status Register */
#ifdef NO_82542_SUPPORT
(value))
#else /* NO_82542_SUPPORT */
{\
value); \
else \
value); \
}
{\
value); \
else \
}
((offset) << 2))))
#endif /* NO_82542_SUPPORT */
/*
* === END CONTENT FORMERLY IN FXHW.H ===
*/
#define msec_delay_irq msec_delay
typedef ULONG NDIS_STATUS;
typedef ULONG E1000_32_BIT_PHYSICAL_ADDRESS,
typedef uint64_t E1000_64_BIT_PHYSICAL_ADDRESS,
struct e1000g_osdep {
};
#ifdef __sparc /* on SPARC, use only memory-mapped routines */
#define E1000_WRITE_REG_IO E1000_WRITE_REG
#else /* on x86, use port io routines */
#endif /* __sparc */
#ifdef __cplusplus
}
#endif
#endif /* _E1000_OSDEP_H */