Page MenuHomeFreeBSD

linuxkpi: acpi/video.h: Add stubs acpi_video_{register,unregister}
ClosedPublic

Authored by manu on Aug 10 2022, 6:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 22, 3:29 AM
Unknown Object (File)
Sun, Mar 16, 3:40 PM
Unknown Object (File)
Fri, Mar 7, 6:26 PM
Unknown Object (File)
Wed, Mar 5, 4:02 PM
Unknown Object (File)
Tue, Feb 25, 4:13 PM
Unknown Object (File)
Feb 1 2025, 11:41 AM
Unknown Object (File)
Jan 19 2025, 5:59 PM
Unknown Object (File)
Jan 18 2025, 4:14 AM

Details

Summary

Needed by i915.

Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Aug 10 2022, 6:47 AM
bz added inline comments.
sys/compat/linuxkpi/common/include/acpi/video.h
38

Given it's not implemented should we return an error instead of 0, (-ENXIO)?

39

do { } while(0)

sys/compat/linuxkpi/common/include/acpi/video.h
38

It's never tested in i915 but linux does return -ENODEV if compiled without CONFIG_ACPI_VIDEO, we could do the same here.

sys/compat/linuxkpi/common/include/acpi/video.h
38

Sounds good to me an inline with what we do in PCI for some.

Switch to inline function and return -ENODEV for the register one.

This revision is now accepted and ready to land.Aug 11 2022, 11:24 AM