mirror of
https://github.com/lemonade-sdk/mac_linuxgpu.git
synced 2026-11-23 08:59:28 -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.
33 lines
941 B
C
33 lines
941 B
C
/* linuxu: AS-IS (third_party/linux/include/drm/drm_utils) — vendored verbatim from
|
|
* the pinned 2026 tree; the unmodified third_party/linux/drivers/gpu/drm/*.c is the ABI
|
|
* test. Kernel-only includes resolve to linuxu shadows. */
|
|
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Function prototypes for misc. drm utility functions.
|
|
* Specifically this file is for function prototypes for functions which
|
|
* may also be used outside of drm code (e.g. in fbdev drivers).
|
|
*
|
|
* Copyright (C) 2017 Hans de Goede <[email protected]>
|
|
*/
|
|
|
|
#ifndef __DRM_UTILS_H__
|
|
#define __DRM_UTILS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_edid;
|
|
|
|
int drm_get_panel_orientation_quirk(int width, int height);
|
|
|
|
struct drm_panel_backlight_quirk {
|
|
u16 min_brightness;
|
|
u32 brightness_mask;
|
|
};
|
|
|
|
const struct drm_panel_backlight_quirk *
|
|
drm_get_panel_backlight_quirk(const struct drm_edid *edid);
|
|
|
|
signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
|
|
|
|
#endif
|