xref: /haiku/src/add-ons/accelerants/radeon_hd/displayport.h (revision 1b6bc2675fe3691538c8764ab016593f3b06ca53)
1 /*
2  * Copyright 2011, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Alexander von Gluck IV, kallisti5@unixzen.com
7  */
8 #ifndef RADEON_HD_DISPLAYPORT_H
9 #define RADEON_HD_DISPLAYPORT_H
10 
11 
12 #include <create_display_modes.h>
13 #include <stdint.h>
14 #include <SupportDefs.h>
15 
16 #include "displayport_reg.h"
17 
18 
19 int dp_aux_write(uint32 hwPin, uint16 address, uint8* send,
20 	uint8 sendBytes, uint8 delay);
21 int dp_aux_read(uint32 hwPin, uint16 address, uint8* recv,
22 	int recvBytes, uint8 delay);
23 status_t dp_aux_set_i2c_byte(uint32 hwPin, uint16 address,
24 	uint8* data, bool end);
25 status_t dp_aux_get_i2c_byte(uint32 hwPin, uint16 address,
26 	uint8* data, bool end);
27 
28 uint32 dp_get_lane_count(uint32 connectorIndex, display_mode* mode);
29 uint32 dp_get_link_clock(uint32 connectorIndex);
30 uint32 dp_get_link_clock_encode(uint32 dpLinkClock);
31 uint32 dp_get_link_clock_decode(uint32 dpLinkClock);
32 
33 void dp_setup_connectors();
34 status_t dp_link_train(uint8 crtcID, display_mode* mode);
35 
36 
37 #endif /* RADEON_HD_DISPLAYPORT_H */
38