ivshmem based driver can use this api to judge weather current ivshmem device support irq or not, and use polling mode or irq mode to process the event. Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>