Deleted Added
full compact
ixgbe_osdep.h (179055) ixgbe_osdep.h (185352)
1/******************************************************************************
2
3 Copyright (c) 2001-2008, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8

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

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
1/******************************************************************************
2
3 Copyright (c) 2001-2008, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8

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

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
33/*$FreeBSD: head/sys/dev/ixgbe/ixgbe_osdep.h 179055 2008-05-16 18:46:30Z jfv $*/
33/*$FreeBSD: head/sys/dev/ixgbe/ixgbe_osdep.h 185352 2008-11-26 23:41:18Z jfv $*/
34
35#ifndef _IXGBE_OS_H_
36#define _IXGBE_OS_H_
37
38#include <sys/types.h>
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/mbuf.h>

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

73 #define DEBUGOUT1(S,A)
74 #define DEBUGOUT2(S,A,B)
75 #define DEBUGOUT3(S,A,B,C)
76 #define DEBUGOUT6(S,A,B,C,D,E,F)
77 #define DEBUGOUT7(S,A,B,C,D,E,F,G)
78#endif
79
80#define FALSE 0
34
35#ifndef _IXGBE_OS_H_
36#define _IXGBE_OS_H_
37
38#include <sys/types.h>
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/mbuf.h>

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

73 #define DEBUGOUT1(S,A)
74 #define DEBUGOUT2(S,A,B)
75 #define DEBUGOUT3(S,A,B,C)
76 #define DEBUGOUT6(S,A,B,C,D,E,F)
77 #define DEBUGOUT7(S,A,B,C,D,E,F,G)
78#endif
79
80#define FALSE 0
81#define false 0 /* shared code requires this */
81#define TRUE 1
82#define TRUE 1
83#define true 1
82#define CMD_MEM_WRT_INVALIDATE 0x0010 /* BIT_4 */
83#define PCI_COMMAND_REGISTER PCIR_COMMAND
84
84#define CMD_MEM_WRT_INVALIDATE 0x0010 /* BIT_4 */
85#define PCI_COMMAND_REGISTER PCIR_COMMAND
86
85typedef uint8_t u8;
86typedef uint16_t u16;
87typedef uint32_t u32;
88typedef int32_t s32;
89typedef uint64_t u64;
90typedef boolean_t bool;
87#define IXGBE_HTONL htonl
91
88
89typedef uint8_t u8;
90typedef int8_t s8;
91typedef uint16_t u16;
92typedef uint32_t u32;
93typedef int32_t s32;
94typedef uint64_t u64;
95typedef boolean_t bool;
96
92#define le16_to_cpu
93
94#if defined(__i386__) || defined(__amd64__)
95#define mb() __asm volatile("mfence" ::: "memory")
96#define wmb() __asm volatile("sfence" ::: "memory")
97#define rmb() __asm volatile("lfence" ::: "memory")
98#else
99#define mb()

--- 41 unchanged lines hidden ---
97#define le16_to_cpu
98
99#if defined(__i386__) || defined(__amd64__)
100#define mb() __asm volatile("mfence" ::: "memory")
101#define wmb() __asm volatile("sfence" ::: "memory")
102#define rmb() __asm volatile("lfence" ::: "memory")
103#else
104#define mb()

--- 41 unchanged lines hidden ---