コード例 #1
0
TYPE_IR_REG_RESULT ir_reg_irsd_shutdown(void)
{
	TYPE_IR_REG_RESULT w_ret = IR_REG_RESULT_SUCCESS;

	int f_map_hcs1 = 0;

	if (lr388g7_hcs1 != NULL) {
		goto ready;
	}

	f_map_hcs1 = 1;

	if (ir_reg_ioremap_nocache() != IR_REG_RESULT_SUCCESS) {
		w_ret = IR_REG_RESULT_FAIL;
		MSG_IRREG_FATAL("ioremap error\n");
		goto error;
	}

ready:
	ir_reg_gol_irdacc_reset_ena();

error:
	if (f_map_hcs1 == 1) {
		ir_reg_iounmap();
		f_map_hcs1 = 0;
	}

	return (w_ret);
}
コード例 #2
0
TYPE_IR_REG_RESULT ir_reg_irda_hwterm(void)
{
	TYPE_IR_REG_RESULT	w_ret	= IR_REG_RESULT_SUCCESS;




	ir_reg_gol_irdacc_reset_ena();

	return (w_ret);
}
コード例 #3
0
TYPE_IR_REG_RESULT ir_reg_irda_hwterm(void)
{
	TYPE_IR_REG_RESULT	w_ret	= IR_REG_RESULT_SUCCESS;

	ir_reg_led_leda_off();

	ir_reg_led_pwr_sel(IR_LED_POWER_HIGH);

	ir_reg_irdacc_dis();
	ir_reg_gol_irdacc_reset_ena();

	return (w_ret);
}