mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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:
parent
787fbe85b9
commit
2810d4cf6d
1 changed files with 19 additions and 0 deletions
19
src/nouveau/nvidia-headers/nvtypes.h
Normal file
19
src/nouveau/nvidia-headers/nvtypes.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue