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.
26 lines
576 B
C
26 lines
576 B
C
/* linuxu: AS-IS (third_party/linux/include/drm/amd/isp.h) */
|
|
#ifndef __ISP_H__
|
|
#define __ISP_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
|
|
struct isp_platform_data {
|
|
void *adev;
|
|
u32 asic_type;
|
|
resource_size_t base_rmmio_size;
|
|
};
|
|
|
|
int isp_user_buffer_alloc(struct device *dev, void *dmabuf,
|
|
void **buf_obj, u64 *buf_addr);
|
|
|
|
void isp_user_buffer_free(void *buf_obj);
|
|
|
|
int isp_kernel_buffer_alloc(struct device *dev, u64 size,
|
|
void **buf_obj, u64 *gpu_addr, void **cpu_addr);
|
|
|
|
void isp_kernel_buffer_free(void **buf_obj, u64 *gpu_addr, void **cpu_addr);
|
|
|
|
#endif
|