[haiku-development] Re: [RFC] Common accelerant connector language

  • From: "Alexander von Gluck IV" <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 12 May 2016 17:50:22 +0000

May 12 2016 8:29 AM, "François Revol" <revol@xxxxxxx> wrote:

On 12/05/2016 04:28, Alexander von Gluck IV wrote:

Back when I wrote radeon_hd I added a generic connector language
to describe what each video port is.

I'm starting to look into using this same language in intel_extreme.

My hope is that this will be the start of a common language for
multi-head + display type under Haiku. (Screen preflet knows your
monitor is LVDS,VGA,etc)

I think things needs to be more structured though before I tie two
accelerants to it... does the attached patch look like a good
direction for this common accelerant code?

The summary is pretty much turning the series of defines into
a typed enum.

https://dev.haiku-os.org/attachment/ticket/12773/video_connector.diff

Wondering if it'd make sense to reuse an existing enum (ACPI, DMI) ? Or
maybe not...

The encoder stuff could easily be sucked back into the radeon_hd driver as
it really doesn't make sense to the screen preflet.

Which existing enum's are you talking about?
A quick search shows ACPI.h here:
headers/os/drivers/ACPI.h

So something like headers/os/drivers/Display.h?

It seems like the accelerant and BScreen are really close to touching..
Not sure why they never linked up in any way. The only bridge is
the old radeon multimon stuff which operated through video mode flags
(which is super gross no offense to the original author, he worked with
what he had. We can do better though.)
http://cgit.haiku-os.org/haiku/tree/src/preferences/screen/multimon.cpp

 -- Alex

Other related posts: