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
F171173788: D36102.id109148.diff
Wed, Sep 9, 6:03 AM
F171173782: D36102.id109087.diff
Wed, Sep 9, 6:03 AM
F171173776: D36102.id109517.diff
Wed, Sep 9, 6:03 AM
F171173577: D36102.diff
Wed, Sep 9, 6:00 AM
Unknown Object (File)
Sun, Sep 6, 4:26 AM
Unknown Object (File)
Fri, Sep 4, 5:23 AM
Unknown Object (File)
Thu, Sep 3, 11:39 PM
Unknown Object (File)
Thu, Sep 3, 6:55 AM

Details

Summary

Needed by i915.

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46853
Build 43742: arc lint + arc unit

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