aux_ch
#define DP_AUX_CH_CTL(aux_ch) _MMIO_PORT(aux_ch, _DPA_AUX_CH_CTL, _DPB_AUX_CH_CTL)
#define DP_AUX_CH_DATA(aux_ch, i) _MMIO(_PORT(aux_ch, _DPA_AUX_CH_DATA1, _DPB_AUX_CH_DATA1) + (i) * 4) /* 5 registers */
#define PCH_DP_AUX_CH_CTL(aux_ch) _MMIO_PORT((aux_ch) - AUX_CH_B, _PCH_DPB_AUX_CH_CTL, _PCH_DPC_AUX_CH_CTL)
#define PCH_DP_AUX_CH_DATA(aux_ch, i) _MMIO(_PORT((aux_ch) - AUX_CH_B, _PCH_DPB_AUX_CH_DATA1, _PCH_DPC_AUX_CH_DATA1) + (i) * 4) /* 5 registers */
return intel_dp->aux_ch == AUX_CH_A ? POWER_DOMAIN_AUX_IO_A :
if (intel_dp->aux_ch == AUX_CH_A)
if (intel_dp->aux_ch != AUX_CH_A && HAS_PCH_LPT_H(dev_priv)) {
static enum aux_ch intel_aux_ch(struct intel_dp *intel_dp)
enum aux_ch aux_ch;
aux_ch = (enum aux_ch) port;
aux_ch_name(aux_ch), port_name(port));
return aux_ch;
aux_ch = AUX_CH_A;
aux_ch = AUX_CH_B;
aux_ch = AUX_CH_C;
aux_ch = AUX_CH_D;
aux_ch = AUX_CH_E;
aux_ch = AUX_CH_F;
aux_ch = AUX_CH_A;
aux_ch_name(aux_ch), port_name(port));
return aux_ch;
switch (intel_dp->aux_ch) {
MISSING_CASE(intel_dp->aux_ch);
enum aux_ch aux_ch = intel_dp->aux_ch;
switch (aux_ch) {
return DP_AUX_CH_CTL(aux_ch);
MISSING_CASE(aux_ch);
enum aux_ch aux_ch = intel_dp->aux_ch;
switch (aux_ch) {
return DP_AUX_CH_DATA(aux_ch, index);
MISSING_CASE(aux_ch);
enum aux_ch aux_ch = intel_dp->aux_ch;
switch (aux_ch) {
return DP_AUX_CH_CTL(aux_ch);
return PCH_DP_AUX_CH_CTL(aux_ch);
MISSING_CASE(aux_ch);
enum aux_ch aux_ch = intel_dp->aux_ch;
switch (aux_ch) {
return DP_AUX_CH_DATA(aux_ch, index);
return PCH_DP_AUX_CH_DATA(aux_ch, index);
MISSING_CASE(aux_ch);
enum aux_ch aux_ch = intel_dp->aux_ch;
switch (aux_ch) {
return DP_AUX_CH_CTL(aux_ch);
MISSING_CASE(aux_ch);
enum aux_ch aux_ch = intel_dp->aux_ch;
switch (aux_ch) {
return DP_AUX_CH_DATA(aux_ch, index);
MISSING_CASE(aux_ch);
intel_dp->aux_ch = intel_aux_ch(intel_dp);
enum aux_ch aux_ch;