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 "accelerant.h" 17 #include "dp.h" 18 19 20 // Radeon HD specific DisplayPort Configuration Data 21 #define DP_TRAINING_AUX_RD_INTERVAL 0x000e 22 #define DP_TPS3_SUPPORTED (1 << 6) // Stored within MAX_LANE_COUNT 23 24 25 int dp_aux_write(uint32 hwPin, uint16 address, uint8* send, 26 uint8 sendBytes, uint8 delay); 27 int dp_aux_read(uint32 hwPin, uint16 address, uint8* recv, 28 int recvBytes, uint8 delay); 29 status_t dp_aux_set_i2c_byte(uint32 hwPin, uint16 address, 30 uint8* data, bool end); 31 status_t dp_aux_get_i2c_byte(uint32 hwPin, uint16 address, 32 uint8* data, bool end); 33 34 uint32 dp_get_link_clock(uint32 connectorIndex); 35 36 void dp_setup_connectors(); 37 38 status_t dp_link_train(uint8 crtcID, display_mode* mode); 39 status_t dp_link_train_cr(uint32 connectorIndex); 40 41 42 #endif /* RADEON_HD_DISPLAYPORT_H */ 43