aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-06-12 14:00:07 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-07-14 10:52:20 +0000
commit8909dd2141443625418593f6e63990965f5a2780 (patch)
tree2b08aa949a06016392a3c04f46030f2cfdce6970
parent9c7629d69cebafba3eea6787d3bfc100d60c3b19 (diff)
linuxkpi: Add `acpi_video_get_edid()`
Like the rest of <acpi/video.h>, this function is unimplemented and returns `-ENODEV`. The amdgpu DRM driver started to use it in Linux 6.13. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57576
-rw-r--r--sys/compat/linuxkpi/common/include/acpi/acpi_bus.h2
-rw-r--r--sys/compat/linuxkpi/common/include/acpi/video.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/acpi/acpi_bus.h b/sys/compat/linuxkpi/common/include/acpi/acpi_bus.h
index da50d25a63bb..40dcbd85d6bf 100644
--- a/sys/compat/linuxkpi/common/include/acpi/acpi_bus.h
+++ b/sys/compat/linuxkpi/common/include/acpi/acpi_bus.h
@@ -29,7 +29,7 @@
#ifndef _LINUXKPI_ACPI_ACPI_BUS_H_
#define _LINUXKPI_ACPI_ACPI_BUS_H_
-/* Aliase struct acpi_device to device_t */
+/* Alias struct acpi_device to device_t; repeated in <acpi/video.h> */
#define acpi_device _device
typedef char acpi_device_class[20];
diff --git a/sys/compat/linuxkpi/common/include/acpi/video.h b/sys/compat/linuxkpi/common/include/acpi/video.h
index 64c222bc2429..098bd2339f29 100644
--- a/sys/compat/linuxkpi/common/include/acpi/video.h
+++ b/sys/compat/linuxkpi/common/include/acpi/video.h
@@ -32,6 +32,9 @@
#include <sys/types.h>
#include <sys/errno.h>
+/* Alias struct acpi_device to device_t; repeated from <acpi/acpi_bus.h> */
+#define acpi_device _device
+
#define ACPI_VIDEO_CLASS "video"
#define ACPI_VIDEO_DISPLAY_CRT 1
@@ -77,4 +80,11 @@ acpi_video_backlight_use_native(void)
return (true);
}
+static inline int
+acpi_video_get_edid(struct acpi_device *device, int type, int device_id,
+ void **edid)
+{
+ return (-ENODEV);
+}
+
#endif /* _LINUXKPI_ACPI_VIDEO_H_ */