Files
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

39 lines
820 B
C

/* linuxu: SHIM (third_party/linux/include/linux/kmsg_dump.h)
*
* kmsg dump subsystem — the host build never runs dumpers; the struct
* and register/unregister surface are provided so vendored drm headers
* (drm_plane.h) compile.
*/
#ifndef __LINUX_KMSG_DUMP_H
#define __LINUX_KMSG_DUMP_H
#include <linux/list.h>
enum kmsg_dump_on_panic {
KMSG_DUMP_ON_PANIC,
KMSG_DUMP_ON_OOPS,
KMSG_DUMP_NOOP,
};
struct kmsg_dump_detail;
struct kmsg_dumper {
struct list_head list;
void (*dump)(struct kmsg_dumper *dumper, struct kmsg_dump_detail *detail);
enum kmsg_dump_on_panic level;
};
static inline int kmsg_dump_register(struct kmsg_dumper *dumper)
{
(void)dumper;
return 0;
}
static inline int kmsg_dump_unregister(struct kmsg_dumper *dumper)
{
(void)dumper;
return 0;
}
#endif /* __LINUX_KMSG_DUMP_H */