radeon_hd: Add missing DP STATUS request type

* Name change inline with DP specifications.
This commit is contained in:
Alexander von Gluck IV 2017-09-08 18:00:51 -05:00
parent 807f4d4d5e
commit 66a16010b7
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,7 @@
// AUX i2c Communications
#define DP_AUX_I2C_WRITE 0x0
#define DP_AUX_I2C_READ 0x1
#define DP_AUX_I2C_STATUS 0x2
#define DP_AUX_I2C_WRITE_STATUS_UPDATE 0x2
#define DP_AUX_I2C_MOT 0x4
#define DP_AUX_I2C_REPLY_ACK (0x0 << 2)
#define DP_AUX_I2C_REPLY_NACK (0x1 << 2)

View File

@ -115,6 +115,7 @@ dp_aux_transaction(uint32 connectorIndex, dp_aux_msg* message)
switch(message->request & ~DP_AUX_I2C_MOT) {
case DP_AUX_NATIVE_WRITE:
case DP_AUX_I2C_WRITE:
case DP_AUX_I2C_WRITE_STATUS_UPDATE:
transactionSize += message->size;
break;
}
@ -143,6 +144,7 @@ dp_aux_transaction(uint32 connectorIndex, dp_aux_msg* message)
switch(message->request & ~DP_AUX_I2C_MOT) {
case DP_AUX_NATIVE_WRITE:
case DP_AUX_I2C_WRITE:
case DP_AUX_I2C_WRITE_STATUS_UPDATE:
memcpy(auxMessage + 4, message->buffer, message->size);
result = dp_aux_speak(connectorIndex, auxMessage,
transactionSize, NULL, 0, delay, &ack);