/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* This file is part of the Chelsio T4 support code.
*
* Copyright (C) 2010-2013 Chelsio Communications. All rights reserved.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in this
* release for licensing terms and conditions.
*/
#ifndef __CXGBE_OSDEP_H
#define __CXGBE_OSDEP_H
#include <sys/byteorder.h>
#include <sys/sysmacros.h>
#include <sys/inttypes.h>
#undef u
#define __devinit
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof (x) / sizeof ((x)[0]))
#endif
typedef boolean_t bool;
#define true B_TRUE
#define false B_FALSE
#if defined(__sparc)
#define __BIG_ENDIAN_BITFIELD
#else
#define __LITTLE_ENDIAN_BITFIELD
#endif
#define AUTONEG_DISABLE 0
#define DUPLEX_HALF 0
int ilog2(long x);
unsigned char *strstrip(unsigned char *s);
#endif /* __CXGBE_OSDEP_H */