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:
Karol Herbst 2022-05-31 18:55:03 +02:00 committed by Marge Bot
parent 787fbe85b9
commit 2810d4cf6d

View 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