From cd73cccda79542b02113909d350009fb7d27b333 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 21 Aug 2011 16:00:45 +0000 Subject: [PATCH] * add a new generic video electronics define, this seems like it could be useful for more then just radeon_hd. * idea from linux drm driver * feedback / flames welcome * can move into radeon_hd private defines if requested git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42662 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../graphics/common/video_electronics.h | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 headers/private/graphics/common/video_electronics.h diff --git a/headers/private/graphics/common/video_electronics.h b/headers/private/graphics/common/video_electronics.h new file mode 100644 index 0000000000..c7fe20735f --- /dev/null +++ b/headers/private/graphics/common/video_electronics.h @@ -0,0 +1,72 @@ +/* + * Copyright 2011, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Alexander von Gluck, kallisti5@unixzen.com + */ +#ifndef _VIDEO_ELECTRONICS_H +#define _VIDEO_ELECTRONICS_H + + +// Video connector types +#define VIDEO_CONNECTOR_UNKNOWN 0x00 +#define VIDEO_CONNECTOR_VGA 0x01 +#define VIDEO_CONNECTOR_DVII 0x02 +#define VIDEO_CONNECTOR_DVID 0x03 +#define VIDEO_CONNECTOR_DVIA 0x04 +#define VIDEO_CONNECTOR_COMPOSITE 0x05 +#define VIDEO_CONNECTOR_SVIDEO 0x06 +#define VIDEO_CONNECTOR_LVDS 0x07 +#define VIDEO_CONNECTOR_COMPONENT 0x08 +#define VIDEO_CONNECTOR_9DIN 0x09 +#define VIDEO_CONNECTOR_DP 0x0A +#define VIDEO_CONNECTOR_EDP 0x0B +#define VIDEO_CONNECTOR_HDMIA 0x0C +#define VIDEO_CONNECTOR_HDMIB 0x0D +#define VIDEO_CONNECTOR_TV 0x0E + + +const struct video_connectors { + uint32 type; + const char* name; +} kVideoConnector[] = { + {VIDEO_CONNECTOR_UNKNOWN, "Unknown"}, + {VIDEO_CONNECTOR_VGA, "VGA" }, + {VIDEO_CONNECTOR_DVII, "DVI-I"}, + {VIDEO_CONNECTOR_DVID, "DVI-D"}, + {VIDEO_CONNECTOR_DVIA, "DVI-A"}, + {VIDEO_CONNECTOR_COMPOSITE, "Composite"}, + {VIDEO_CONNECTOR_SVIDEO, "S-Video"}, + {VIDEO_CONNECTOR_LVDS, "LVDS"}, + {VIDEO_CONNECTOR_COMPONENT, "Component"}, + {VIDEO_CONNECTOR_9DIN, "DIN"}, + {VIDEO_CONNECTOR_DP, "DisplayPort"}, + {VIDEO_CONNECTOR_EDP, "Embedded DisplayPort"}, + {VIDEO_CONNECTOR_HDMIA, "HDMI A"}, + {VIDEO_CONNECTOR_HDMIB, "HDMI B"}, + {VIDEO_CONNECTOR_TV, "TV"}, +}; + + +// Video encoder types +#define VIDEO_ENCODER_NONE 0x00 +#define VIDEO_ENCODER_DAC 0x01 +#define VIDEO_ENCODER_TMDS 0x02 +#define VIDEO_ENCODER_LVDS 0x03 +#define VIDEO_ENCODER_TVDAC 0x04 + + +const struct video_encoders { + uint32 type; + const char* name; +} kVideoEncoder[] = { + {VIDEO_ENCODER_NONE, "None"}, + {VIDEO_ENCODER_DAC, "DAC"}, + {VIDEO_ENCODER_TMDS, "TMDS"}, + {VIDEO_ENCODER_LVDS, "LVDS"}, + {VIDEO_ENCODER_TVDAC, "TV"}, +}; + + +#endif /* _VIDEO_ELECTRONICS_H */