AFI_INTR_CODE
code = bus_read_4(sc->afi_mem_res, AFI_INTR_CODE) & AFI_INTR_CODE_MASK;
bus_write_4(sc->afi_mem_res, AFI_INTR_CODE, 0);