Deleted Added
full compact
osdep.h (250090) osdep.h (255005)
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 *
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 250090 2013-04-30 05:32:07Z np $
27 * $FreeBSD: head/sys/dev/cxgbe/osdep.h 255005 2013-08-28 20:45:45Z 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>

--- 4 unchanged lines hidden (view full) ---

40#include <sys/syslog.h>
41#include <dev/pci/pcireg.h>
42
43#define CH_ERR(adap, fmt, ...) log(LOG_ERR, fmt, ##__VA_ARGS__)
44#define CH_WARN(adap, fmt, ...) log(LOG_WARNING, fmt, ##__VA_ARGS__)
45#define CH_ALERT(adap, fmt, ...) log(LOG_ALERT, fmt, ##__VA_ARGS__)
46#define CH_WARN_RATELIMIT(adap, fmt, ...) log(LOG_WARNING, fmt, ##__VA_ARGS__)
47
28 *
29 */
30
31#ifndef __CXGBE_OSDEP_H_
32#define __CXGBE_OSDEP_H_
33
34#include <sys/cdefs.h>
35#include <sys/ctype.h>

--- 4 unchanged lines hidden (view full) ---

40#include <sys/syslog.h>
41#include <dev/pci/pcireg.h>
42
43#define CH_ERR(adap, fmt, ...) log(LOG_ERR, fmt, ##__VA_ARGS__)
44#define CH_WARN(adap, fmt, ...) log(LOG_WARNING, fmt, ##__VA_ARGS__)
45#define CH_ALERT(adap, fmt, ...) log(LOG_ALERT, fmt, ##__VA_ARGS__)
46#define CH_WARN_RATELIMIT(adap, fmt, ...) log(LOG_WARNING, fmt, ##__VA_ARGS__)
47
48#ifndef LINUX_TYPES_DEFINED
48typedef int8_t s8;
49typedef int16_t s16;
50typedef int32_t s32;
51typedef int64_t s64;
52typedef uint8_t u8;
53typedef uint16_t u16;
54typedef uint32_t u32;
55typedef uint64_t u64;

--- 95 unchanged lines hidden (view full) ---

151 while ((c = *s++) != 0) {
152 if (!isspace(c))
153 trim_at = s;
154 }
155 *trim_at = 0;
156
157 return (r);
158}
49typedef int8_t s8;
50typedef int16_t s16;
51typedef int32_t s32;
52typedef int64_t s64;
53typedef uint8_t u8;
54typedef uint16_t u16;
55typedef uint32_t u32;
56typedef uint64_t u64;

--- 95 unchanged lines hidden (view full) ---

152 while ((c = *s++) != 0) {
153 if (!isspace(c))
154 trim_at = s;
155 }
156 *trim_at = 0;
157
158 return (r);
159}
160#endif /* LINUX_TYPES_DEFINED */
159
160#endif
161
162#endif