Date: Tue, 14 Jul 2026 10:52:40 +0000 From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 8909dd214144 - main - linuxkpi: Add `acpi_video_get_edid()` Message-ID: <6a5614f8.1d394.2763fc21@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=8909dd2141443625418593f6e63990965f5a2780 commit 8909dd2141443625418593f6e63990965f5a2780 Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> AuthorDate: 2026-06-12 14:00:07 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> CommitDate: 2026-07-14 10:52:20 +0000 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 --- sys/compat/linuxkpi/common/include/acpi/acpi_bus.h | 2 +- sys/compat/linuxkpi/common/include/acpi/video.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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_ */home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a5614f8.1d394.2763fc21>
