ixgbe_osdep.h revision 73cd555c10e70dac413ae4b40de8450a291750ac
/*
* 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.
*/
#ifndef _IXGBE_OSDEP_H
#define _IXGBE_OSDEP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/byteorder.h>
#include <sys/dditypes.h>
#include "ixgbe_debug.h"
/* function declarations */
struct ixgbe_hw;
#define usec_delay(x) drv_usecwait(x)
#define false B_FALSE
#define true B_TRUE
#define PCI_COMMAND_REGISTER 0x04
#define PCI_EX_CONF_CAP 0xE0
#define MAX_NUM_UNICAST_ADDRESSES 0x10
#define MAX_NUM_MULTICAST_ADDRESSES 0x1000
#define SPEED_10GB 10000
#define SPEED_1GB 1000
#define SPEED_100 100
#define FULL_DUPLEX 2
#define IXGBE_READ_REG(a, reg) \
do { \
} while (0)
#define msec_delay_irq msec_delay
#define IXGBE_HTONL htonl
typedef boolean_t bool;
struct ixgbe_osdep {
};
#ifdef __cplusplus
}
#endif
#endif /* _IXGBE_OSDEP_H */