NVIDIA Common Definitions
Description: This file contains standard definitions used by various interfaces.
Definition in file nvcommon.h.
|
| union | NvData32Rec |
| | Union that can be used to view a 32-bit word as your choice of a 32-bit unsigned integer, a 32-bit signed integer, or an IEEE single-precision float. More...
|
| |
| union | NvData64Rec |
| | Generic data representation for both 32 and 64 bits data. More...
|
| |
| struct | NvPointRec |
| | This structure is used to determine a location on a 2-dimensional object, where the coordinate (0,0) is located at the top-left of the object. More...
|
| |
| struct | NvPointF32Rec |
| |
| struct | NvRectRec |
| | This structure is used to define a 2-dimensional rectangle where the rectangle is bottom right exclusive (that is, the right most column, and the bottom row of the rectangle is not included). More...
|
| |
| struct | NvRectF32Rec |
| | This structure is used to define a 2-dimensional rectangle relative to some containing rectangle. More...
|
| |
| struct | NvSizeRec |
| | This structure is used to define a 2-dimensional surface where the surface is determined by it's height and width in pixels. More...
|
| |
|
| #define | NV_FORCE_INLINE NV_FORCEINLINE |
| | Include headers that provide NULL, size_t, offsetof, and [u]intptr_t. More...
|
| |
| #define | NV_ALIGN NV_ALIGN_BYTES |
| |
| #define | NVOS_IS_WINDOWS_X86 0 |
| |
| #define | NVOS_IS_LINUX_KERNEL 0 |
| |
| #define | NV_MIN_F32 (1.1754944e-38f) |
| | Min/Max values for NvF32. More...
|
| |
| #define | NV_MAX_F32 (3.4028234e+38f) |
| |
| #define | NV_ALIGN_POINTER(t, f) t f |
| | Declares a 64-bit aligned pointer. More...
|
| |
| #define | NV_DEBUG_CODE(x) |
| | Function attributes are lumped in here too. More...
|
| |
| #define | NV_ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
| | Macro for determining the size of an array. More...
|
| |
| #define | NV_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| | Macro for taking min or max of a pair of numbers. More...
|
| |
| #define | NV_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| |
| #define | NV_OFFSETOF(type, member) ((NvUPtr)(&(((type *)0)->member))) |
| | Macro for determining the offset of "member" in "type". More...
|
| |
| #define | NV_SIZEOF(s, e) (sizeof(((s*)0)->e)) |
| | Macro for determining the size of an element e in struct s. More...
|
| |
| #define | NV_LOWEST_BIT_ONLY(v) ((NvU32)(v) & (NvU32)-(NvS32)(v)) |
| | Get just the lowest bit of the 32 bit number. More...
|
| |
| #define | NV_IS_POWER_OF_2(v) (NV_LOWEST_BIT_ONLY(v) == (NvU32)(v)) |
| | True if unsigned int v is a power of 2. More...
|
| |
| #define | NV_WAIT_INFINITE 0xFFFFFFFF |
| | By convention, we use this value to represent an infinite wait interval in APIs that expect a timeout argument. More...
|
| |
| #define | NV_ANALYSIS_ASSUME(x) |
| | Macro to help with MSVC Code Analysis false positives. More...
|
| |
| #define | NvDiv64(dividend, divisor) NvDiv64Inline(dividend, divisor) |
| |
|
| typedef NvU64 | NvPhysAddr64 |
| | A physical address type sized such that it matches the addressing support of the hardware modules with which HW drivers typically interfaces. More...
|
| |
| typedef NvU32 | NvRmPhysAddr |
| | This is deprecated and shouldn't be used. More...
|
| |
| typedef union NvData32Rec | NvData32 |
| | Union that can be used to view a 32-bit word as your choice of a 32-bit unsigned integer, a 32-bit signed integer, or an IEEE single-precision float. More...
|
| |
| typedef union NvData64Rec | NvData64 |
| | Generic data representation for both 32 and 64 bits data. More...
|
| |
| typedef struct NvPointRec | NvPoint |
| | This structure is used to determine a location on a 2-dimensional object, where the coordinate (0,0) is located at the top-left of the object. More...
|
| |
| typedef struct NvPointF32Rec | NvPointF32 |
| |
| typedef struct NvRectRec | NvRect |
| | This structure is used to define a 2-dimensional rectangle where the rectangle is bottom right exclusive (that is, the right most column, and the bottom row of the rectangle is not included). More...
|
| |
| typedef struct NvRectF32Rec | NvRectF32 |
| | This structure is used to define a 2-dimensional rectangle relative to some containing rectangle. More...
|
| |
| typedef struct NvSizeRec | NvSize |
| | This structure is used to define a 2-dimensional surface where the surface is determined by it's height and width in pixels. More...
|
| |