/* G2D IRQ query funct if the mission finish IRQ flag was set to 1, then clear the flag and return 1 if the IRQ was set to 0, then return 0  */
__s32 g2d_rot_irq_query(void)
/* G2D IRQ query funct if the mission finish IRQ flag was set to 1, then clear the flag and return 1 if the IRQ was set to 0, then return 0  */
__s32 g2d_rot_irq_query(void)
{
	__u32 tmp;
	tmp = read_wvalue(ROT_INT);
	if (tmp & 0x1) {
		write_wvalue(ROT_INT, tmp);
		return 1;
	}
	return 0;
}