Wrap sys/endian.h usage with __FreeBSD_version >= 480000.
Obtained from: i865-agp-0-1-branchmain
parent
4a55e75e97
commit
4dee75ff58
|
@ -55,7 +55,9 @@
|
|||
#include <machine/pmap.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#if __FreeBSD_version >= 480000
|
||||
#include <sys/endian.h>
|
||||
#endif
|
||||
#include <sys/mman.h>
|
||||
#include <sys/rman.h>
|
||||
#include <sys/memrange.h>
|
||||
|
@ -83,6 +85,7 @@
|
|||
#else
|
||||
#define __REALLY_HAVE_MTRR 0
|
||||
#endif
|
||||
|
||||
#define __REALLY_HAVE_SG (__HAVE_SG)
|
||||
|
||||
#if __REALLY_HAVE_AGP
|
||||
|
@ -275,8 +278,13 @@ typedef struct drm_chipinfo
|
|||
char *name;
|
||||
} drm_chipinfo_t;
|
||||
|
||||
#if __FreeBSD_version >= 480000
|
||||
#define cpu_to_le32(x) htole32(x)
|
||||
#define le32_to_cpu(x) le32toh(x)
|
||||
#else
|
||||
#define cpu_to_le32(x) (x)
|
||||
#define le32_to_cpu(x) (x)
|
||||
#endif
|
||||
|
||||
typedef unsigned long dma_addr_t;
|
||||
typedef u_int32_t atomic_t;
|
||||
|
|
|
@ -55,7 +55,9 @@
|
|||
#include <machine/pmap.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#if __FreeBSD_version >= 480000
|
||||
#include <sys/endian.h>
|
||||
#endif
|
||||
#include <sys/mman.h>
|
||||
#include <sys/rman.h>
|
||||
#include <sys/memrange.h>
|
||||
|
@ -83,6 +85,7 @@
|
|||
#else
|
||||
#define __REALLY_HAVE_MTRR 0
|
||||
#endif
|
||||
|
||||
#define __REALLY_HAVE_SG (__HAVE_SG)
|
||||
|
||||
#if __REALLY_HAVE_AGP
|
||||
|
@ -275,8 +278,13 @@ typedef struct drm_chipinfo
|
|||
char *name;
|
||||
} drm_chipinfo_t;
|
||||
|
||||
#if __FreeBSD_version >= 480000
|
||||
#define cpu_to_le32(x) htole32(x)
|
||||
#define le32_to_cpu(x) le32toh(x)
|
||||
#else
|
||||
#define cpu_to_le32(x) (x)
|
||||
#define le32_to_cpu(x) (x)
|
||||
#endif
|
||||
|
||||
typedef unsigned long dma_addr_t;
|
||||
typedef u_int32_t atomic_t;
|
||||
|
|
Loading…
Reference in New Issue