common/cnxk: add interrupt helper API