2 * Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Alexander von Gluck, kallisti5@unixzen.com
8 #ifndef RADEON_HD_CONNECTOR_H
9 #define RADEON_HD_CONNECTOR_H
12 #include <video_configuration.h>
14 #include "accelerant.h"
17 // convert radeon connector to common connector type
18 const int kConnectorConvertLegacy
[] = {
19 VIDEO_CONNECTOR_UNKNOWN
,
24 VIDEO_CONNECTOR_SVIDEO
,
25 VIDEO_CONNECTOR_COMPOSITE
,
27 VIDEO_CONNECTOR_UNKNOWN
,
28 VIDEO_CONNECTOR_UNKNOWN
,
29 VIDEO_CONNECTOR_HDMIA
,
30 VIDEO_CONNECTOR_HDMIB
,
31 VIDEO_CONNECTOR_UNKNOWN
,
32 VIDEO_CONNECTOR_UNKNOWN
,
37 const int kConnectorConvert
[] = {
38 VIDEO_CONNECTOR_UNKNOWN
,
44 VIDEO_CONNECTOR_COMPOSITE
,
45 VIDEO_CONNECTOR_SVIDEO
,
46 VIDEO_CONNECTOR_UNKNOWN
,
47 VIDEO_CONNECTOR_UNKNOWN
,
49 VIDEO_CONNECTOR_UNKNOWN
,
50 VIDEO_CONNECTOR_HDMIA
,
51 VIDEO_CONNECTOR_HDMIB
,
54 VIDEO_CONNECTOR_UNKNOWN
,
55 VIDEO_CONNECTOR_UNKNOWN
,
56 VIDEO_CONNECTOR_UNKNOWN
,
59 VIDEO_CONNECTOR_UNKNOWN
63 status_t
gpio_populate();
64 bool connector_read_edid(uint32 connector
, edid1_info
* edid
);
65 bool connector_read_mode_lvds(uint32 connectorIndex
, display_mode
* mode
);
67 status_t
connector_probe();
68 status_t
connector_probe_legacy();
69 bool connector_is_dp(uint32 connectorIndex
);
70 void debug_connectors();
72 uint16
connector_pick_atom_hpdid(uint32 connectorIndex
);
75 #endif /* RADEON_HD_CONNECTOR_H */