Files
mac_linuxgpu/linuxu/headers/linux/const.h
T
geramyloveless 953cf0149c mac_linuxgpu: upstream Linux amdgpu on macOS
Runs the unmodified upstream Linux amdgpu and amdkfd drivers on Apple
Silicon Macs inside a DriverKit system extension, for AMD GPUs attached
over Thunderbolt. The Linux sources come from a pinned submodule and are
compiled against linuxu, a userspace implementation of the Linux kernel
APIs they use. Includes the HSA runtime, the host installer app, the
setup and firmware fetch scripts, and the offline test suite.
2026-10-02 18:49:17 -07:00

21 lines
567 B
C

/* linuxu: EDITED (third_party/linux/include/linux/const.h) — vdso/const.h inlined */
#ifndef _LINUX_CONST_H
#define _LINUX_CONST_H
/* shim: drop the vdso dependency; provide the same macros */
#include <linux/types.h>
/* Preserve suffixes on constants used by unchanged Linux size tables. */
#define __AC(x, suffix) (x ## suffix)
#define _AC(x, suffix) __AC(x, suffix)
#define UL(x) (_UL(x))
#define ULL(x) (_ULL(x))
#define const_true(x) (bool)(x)
#define const_false(x) (!(bool)(x))
#define type_max(type) ((type)~(type)0)
#endif /* _LINUX_CONST_H */