nouveau/headers: add nvtypes.h
Nvidia does provide an nvtypes.h file within their open-gpu-kernel-modules, but that one is painful to port over to userspace. Just provide the defines we will need instead. Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef _nvtypes_h_
|
||||
#define _nvtypes_h_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef bool NvBool;
|
||||
|
||||
typedef uint8_t NvU8;
|
||||
typedef uint16_t NvU16;
|
||||
typedef uint32_t NvU32;
|
||||
typedef uint64_t NvU64;
|
||||
|
||||
typedef int8_t NvS8;
|
||||
typedef int16_t NvS16;
|
||||
typedef int32_t NvS32;
|
||||
typedef int64_t NvS64;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user