Subversion Repositories Kolibri OS

Rev

Rev 5128 | Rev 6104 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5128 Rev 5271
Line 98... Line 98...
98
	int r = 0;
98
	int r = 0;
Line 99... Line 99...
99
 
99
 
Line 100... Line 100...
100
	memset(&args, 0, sizeof(args));
100
	memset(&args, 0, sizeof(args));
-
 
101
 
Line 101... Line 102...
101
 
102
	mutex_lock(&chan->mutex);
Line 102... Line 103...
102
	mutex_lock(&chan->mutex);
103
	mutex_lock(&rdev->mode_info.atom_context->scratch_mutex);
Line 111... Line 112...
111
	args.v1.ucChannelID = chan->rec.i2c_id;
112
	args.v1.ucChannelID = chan->rec.i2c_id;
112
	args.v1.ucDelay = delay / 10;
113
	args.v1.ucDelay = delay / 10;
113
	if (ASIC_IS_DCE4(rdev))
114
	if (ASIC_IS_DCE4(rdev))
114
		args.v2.ucHPD_ID = chan->rec.hpd;
115
		args.v2.ucHPD_ID = chan->rec.hpd;
Line 115... Line 116...
115
 
116
 
Line 116... Line 117...
116
	atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
117
	atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args);
Line 117... Line 118...
117
 
118
 
118
	*ack = args.v1.ucReplyStatus;
119
	*ack = args.v1.ucReplyStatus;
Line 145... Line 146...
145
	if (recv && recv_size)
146
	if (recv && recv_size)
146
		radeon_atom_copy_swap(recv, base + 16, recv_bytes, false);
147
		radeon_atom_copy_swap(recv, base + 16, recv_bytes, false);
Line 147... Line 148...
147
 
148
 
148
	r = recv_bytes;
149
	r = recv_bytes;
-
 
150
done:
149
done:
151
	mutex_unlock(&rdev->mode_info.atom_context->scratch_mutex);
Line 150... Line 152...
150
	mutex_unlock(&chan->mutex);
152
	mutex_unlock(&chan->mutex);
151
 
153
 
Line 230... Line 232...
230
	WARN(ret, "drm_dp_aux_register() failed with error %d\n", ret);
232
	WARN(ret, "drm_dp_aux_register() failed with error %d\n", ret);
231
}
233
}
Line 232... Line 234...
232
 
234
 
Line 233... Line 235...
233
/***** general DP utility functions *****/
235
/***** general DP utility functions *****/
234
 
236
 
Line 235... Line 237...
235
#define DP_VOLTAGE_MAX         DP_TRAIN_VOLTAGE_SWING_1200
237
#define DP_VOLTAGE_MAX         DP_TRAIN_VOLTAGE_SWING_LEVEL_3
236
#define DP_PRE_EMPHASIS_MAX    DP_TRAIN_PRE_EMPHASIS_9_5
238
#define DP_PRE_EMPHASIS_MAX    DP_TRAIN_PRE_EMPH_LEVEL_3
237
 
239
 
238
static void dp_get_adjust_train(u8 link_status[DP_LINK_STATUS_SIZE],
240
static void dp_get_adjust_train(u8 link_status[DP_LINK_STATUS_SIZE],