Page MenuHomeFreeBSD

ofwfb: export RGB offsets with FBIO_GETRGBOFFS

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



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

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

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