/* * Copyright 2006-2011, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * Alexander von Gluck, kallisti5@unixzen.com */ #ifndef RADEON_HD_CONNECTOR_H #define RADEON_HD_CONNECTOR_H #include #include "accelerant.h" // convert radeon connector to common connector type const int kConnectorConvertLegacy[] = { VIDEO_CONNECTOR_UNKNOWN, VIDEO_CONNECTOR_VGA, VIDEO_CONNECTOR_DVII, VIDEO_CONNECTOR_DVID, VIDEO_CONNECTOR_DVIA, VIDEO_CONNECTOR_SVIDEO, VIDEO_CONNECTOR_COMPOSITE, VIDEO_CONNECTOR_LVDS, VIDEO_CONNECTOR_UNKNOWN, VIDEO_CONNECTOR_UNKNOWN, VIDEO_CONNECTOR_HDMIA, VIDEO_CONNECTOR_HDMIB, VIDEO_CONNECTOR_UNKNOWN, VIDEO_CONNECTOR_UNKNOWN, VIDEO_CONNECTOR_9DIN, VIDEO_CONNECTOR_DP }; const int kConnectorConvert[] = { VIDEO_CONNECTOR_UNKNOWN, VIDEO_CONNECTOR_DVII, VIDEO_CONNECTOR_DVII, VIDEO_CONNECTOR_DVID, VIDEO_CONNECTOR_DVID, VIDEO_CONNECTOR_VGA, VIDEO_CONNECTOR_COMPOSITE, VIDEO_CONNECTOR_SVIDEO, VIDEO_CONNECTOR_UNKNOWN, // YPbPr VIDEO_CONNECTOR_UNKNOWN, // D_CONNECTOR VIDEO_CONNECTOR_9DIN, VIDEO_CONNECTOR_UNKNOWN, // SCART VIDEO_CONNECTOR_HDMIA, VIDEO_CONNECTOR_HDMIB, VIDEO_CONNECTOR_LVDS, VIDEO_CONNECTOR_9DIN, // 7-pin din VIDEO_CONNECTOR_UNKNOWN, // PCIe? VIDEO_CONNECTOR_UNKNOWN, // Crossfire VIDEO_CONNECTOR_UNKNOWN, // HARDCODE_DVI VIDEO_CONNECTOR_DP, VIDEO_CONNECTOR_EDP, VIDEO_CONNECTOR_UNKNOWN, // MXM VIDEO_CONNECTOR_EDP, // LVDS eDP }; status_t gpio_populate(); bool connector_read_edid(uint32 connector, edid1_info* edid); bool connector_read_mode_lvds(uint32 connectorIndex, display_mode* mode); status_t connector_probe(); status_t connector_probe_legacy(); bool connector_is_dp(uint32 connectorIndex); void debug_connectors(); uint16 connector_pick_atom_hpdid(uint32 connectorIndex); #endif /* RADEON_HD_CONNECTOR_H */