Page MenuHomeFreeBSD

ofwfb: export RGB offsets with FBIO_GETRGBOFFS
AcceptedPublic

Authored by luporl on Mar 1 2021, 6:22 PM.

Details

Summary

Add a new ioctl to vt to make it possible to export the RGB offsets
set by ofwfb. This is intended to be used by xf86-video-scfb driver,
to properly set the RGB masks, as in
https://github.com/luporl/xf86-video-scfb/commit/dcd019ac6dc38f6c3b135dfa94e87494b749d184.

This fixes wrong colors in X on PowerPC64 (big-endian) machines
using scfb/ofwfb (e.g. Talos II and Blackbird) and also allows
other drivers to export their RGB offsets.

Test Plan

This change, along with the sfcb commit above, was tested on Talos II and Blackbird machines.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 37483
Build 34372: arc lint + arc unit