ide: turn set_irq() method into write_devctl() method