G2STAT_INT_PEND
if ((bus_space_read_1(iot, ioh, G2STAT) & G2STAT_INT_PEND) == 0)
if ((bus_space_read_1(iot, ioh, G2STAT) & G2STAT_INT_PEND) == 0)
while (bus_space_read_1(iot, ioh, G2STAT) & G2STAT_INT_PEND) {
if (bus_space_read_1(iot, ioh, G2STAT) & G2STAT_INT_PEND)