1/*- 2 * Copyright (c) 2010 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/cxgbe/osdep.h 220649 2011-04-15 03:09:27Z np $ |
28 * 29 */ 30 31#ifndef __CXGBE_OSDEP_H_ 32#define __CXGBE_OSDEP_H_ 33 34#include <sys/cdefs.h> 35#include <sys/ctype.h> --- 33 unchanged lines hidden (view full) --- 69#else 70#error "Must set BYTE_ORDER" 71#endif 72 73typedef boolean_t bool; 74#define false FALSE 75#define true TRUE 76 |
77#define mdelay(x) DELAY((x) * 1000) 78#define udelay(x) DELAY(x) 79 80#define __devinit 81#define simple_strtoul strtoul 82#define DIV_ROUND_UP(x, y) howmany(x, y) 83 84#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) --- 67 unchanged lines hidden --- |