sys/dev/drm/radeon/rs600.c
/* hpd for digital panel detect/disconnect */
hpd for digital panel detect/disconnect
hpd for digital panel detect / disconnect
bool rs600_hpd_sense(struct radeon_device *rdev, enum radeon_hpd_id hpd)
{
	u32 tmp;
	bool connected = false;
	switch (hpd) {
	case RADEON_HPD_1:
		tmp = RREG32(R_007D04_DC_HOT_PLUG_DETECT1_INT_STATUS);
		if (G_007D04_DC_HOT_PLUG_DETECT1_SENSE(tmp))
			connected = true;
		break;
	case RADEON_HPD_2:
		tmp = RREG32(R_007D14_DC_HOT_PLUG_DETECT2_INT_STATUS);
		if (G_007D14_DC_HOT_PLUG_DETECT2_SENSE(tmp))
			connected = true;
		break;
	default:
		break;
	}
	return connected;
}
bool rs600_hpd_sense ( struct radeon_device * rdev , enum radeon_hpd_id hpd ) { u32 tmp ; bool connected = false ; switch ( hpd ) { case RADEON_HPD_1 : tmp = RREG32 ( R_007D04_DC_HOT_PLUG_DETECT1_INT_STATUS ) ; if ( G_007D04_DC_HOT_PLUG_DETECT1_SENSE ( tmp ) ) connected = true ; break ; case RADEON_HPD_2 : tmp = RREG32 ( R_007D14_DC_HOT_PLUG_DETECT2_INT_STATUS ) ; if ( G_007D14_DC_HOT_PLUG_DETECT2_SENSE ( tmp ) ) connected = true ; break ; default : break ; } return connected ; }
hpd for digital panel detect/disconnect
hpd for digital panel detect / disconnect