Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/efsys.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#include "efx_types.h" | #include "efx_types.h" | ||||
/* Common code requires this */ | /* Common code requires this */ | ||||
#if __FreeBSD_version < 800068 | #if __FreeBSD_version < 800068 | ||||
#define memmove(d, s, l) bcopy(s, d, l) | #define memmove(d, s, l) bcopy(s, d, l) | ||||
#endif | #endif | ||||
/* FreeBSD equivalents of Solaris things */ | |||||
#ifndef _NOTE | |||||
#define _NOTE(s) | |||||
#endif | |||||
#ifndef B_FALSE | #ifndef B_FALSE | ||||
#define B_FALSE FALSE | #define B_FALSE FALSE | ||||
#endif | #endif | ||||
#ifndef B_TRUE | #ifndef B_TRUE | ||||
#define B_TRUE TRUE | #define B_TRUE TRUE | ||||
#endif | #endif | ||||
#ifndef IS_P2ALIGNED | #ifndef IS_P2ALIGNED | ||||
▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | #if defined(__i386__) || defined(__amd64__) | ||||
seg->ds_addr = pmap_kextract(mtod(m, vm_offset_t)); | seg->ds_addr = pmap_kextract(mtod(m, vm_offset_t)); | ||||
seg->ds_len = m->m_len; | seg->ds_len = m->m_len; | ||||
#else | #else | ||||
int nsegstmp; | int nsegstmp; | ||||
bus_dmamap_load_mbuf_sg(tag, map, m, seg, &nsegstmp, 0); | bus_dmamap_load_mbuf_sg(tag, map, m, seg, &nsegstmp, 0); | ||||
#endif | #endif | ||||
} | } | ||||
/* Modifiers used for Windows builds */ | |||||
#define __in | |||||
#define __in_opt | |||||
#define __in_ecount(_n) | |||||
#define __in_ecount_opt(_n) | |||||
#define __in_bcount(_n) | |||||
#define __in_bcount_opt(_n) | |||||
#define __out | |||||
#define __out_opt | |||||
#define __out_ecount(_n) | |||||
#define __out_ecount_opt(_n) | |||||
#define __out_bcount(_n) | |||||
#define __out_bcount_opt(_n) | |||||
#define __out_bcount_part(_n, _l) | |||||
#define __out_bcount_part_opt(_n, _l) | |||||
#define __deref_out | |||||
#define __inout | |||||
#define __inout_opt | |||||
#define __inout_ecount(_n) | |||||
#define __inout_ecount_opt(_n) | |||||
#define __inout_bcount(_n) | |||||
#define __inout_bcount_opt(_n) | |||||
#define __inout_bcount_full_opt(_n) | |||||
#define __deref_out_bcount_opt(n) | |||||
#define __checkReturn | |||||
#define __success(_x) | |||||
#define __drv_when(_p, _c) | |||||
/* Code inclusion options */ | /* Code inclusion options */ | ||||
#define EFSYS_OPT_NAMES 1 | #define EFSYS_OPT_NAMES 1 | ||||
#define EFSYS_OPT_SIENA 1 | #define EFSYS_OPT_SIENA 1 | ||||
#define EFSYS_OPT_HUNTINGTON 1 | #define EFSYS_OPT_HUNTINGTON 1 | ||||
▲ Show 20 Lines • Show All 975 Lines • Show Last 20 Lines |