xref: /haiku/src/add-ons/accelerants/radeon_hd/connector.h (revision 36de623307c7a714fd1b6960728c878f5eb78f81)
1 /*
2  * Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Alexander von Gluck, kallisti5@unixzen.com
7  */
8 #ifndef RADEON_HD_CONNECTOR_H
9 #define RADEON_HD_CONNECTOR_H
10 
11 
12 #include <video_configuration.h>
13 
14 
15 // convert radeon connector to common connector type
16 const int connector_convert_legacy[] = {
17 	VIDEO_CONNECTOR_UNKNOWN,
18 	VIDEO_CONNECTOR_VGA,
19 	VIDEO_CONNECTOR_DVII,
20 	VIDEO_CONNECTOR_DVID,
21 	VIDEO_CONNECTOR_DVIA,
22 	VIDEO_CONNECTOR_SVIDEO,
23 	VIDEO_CONNECTOR_COMPOSITE,
24 	VIDEO_CONNECTOR_LVDS,
25 	VIDEO_CONNECTOR_UNKNOWN,
26 	VIDEO_CONNECTOR_UNKNOWN,
27 	VIDEO_CONNECTOR_HDMIA,
28 	VIDEO_CONNECTOR_HDMIB,
29 	VIDEO_CONNECTOR_UNKNOWN,
30 	VIDEO_CONNECTOR_UNKNOWN,
31 	VIDEO_CONNECTOR_9DIN,
32 	VIDEO_CONNECTOR_DP
33 };
34 
35 const int connector_convert[] = {
36 	VIDEO_CONNECTOR_UNKNOWN,
37 	VIDEO_CONNECTOR_DVII,
38 	VIDEO_CONNECTOR_DVII,
39 	VIDEO_CONNECTOR_DVID,
40 	VIDEO_CONNECTOR_DVID,
41 	VIDEO_CONNECTOR_VGA,
42 	VIDEO_CONNECTOR_COMPOSITE,
43 	VIDEO_CONNECTOR_SVIDEO,
44 	VIDEO_CONNECTOR_UNKNOWN,
45 	VIDEO_CONNECTOR_UNKNOWN,
46 	VIDEO_CONNECTOR_9DIN,
47 	VIDEO_CONNECTOR_UNKNOWN,
48 	VIDEO_CONNECTOR_HDMIA,
49 	VIDEO_CONNECTOR_HDMIB,
50 	VIDEO_CONNECTOR_LVDS,
51 	VIDEO_CONNECTOR_9DIN,
52 	VIDEO_CONNECTOR_UNKNOWN,
53 	VIDEO_CONNECTOR_UNKNOWN,
54 	VIDEO_CONNECTOR_UNKNOWN,
55 	VIDEO_CONNECTOR_DP,
56 	VIDEO_CONNECTOR_EDP,
57 	VIDEO_CONNECTOR_UNKNOWN
58 };
59 
60 
61 int dp_aux_speak(uint8 connectorIndex, uint8 *send, int sendBytes,
62 	uint8 *recv, int recvBytes, uint8 delay, uint8 *ack);
63 status_t gpio_probe();
64 status_t connector_attach_gpio(uint32 id, uint8 hw_line);
65 bool connector_read_edid(uint32 connector, edid1_info *edid);
66 status_t connector_probe();
67 status_t connector_probe_legacy();
68 void debug_connectors();
69 
70 
71 #endif /* RADEON_HD_CONNECTOR_H */
72