mirror of
https://github.com/lemonade-sdk/mac_linuxgpu.git
synced 2026-11-22 23:57:31 -10:00
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.
21 lines
567 B
C
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 */
|