for (i = 0; i < GSCGPIO_NPINS; i++) {
for (i = 0; i < PCAGPIO_NPINS; i++) {
pcagpio_refresh(void *arg){	struct pcagpio_softc *sc = arg;	u_int8_t cmd, in, out, bit;	int i;	iic_acquire_bus(sc->sc_tag, 0);	cmd = PCA9554_IN;	if (iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP,	    sc->sc_addr, &cmd, sizeof cmd, &in, sizeof in, 0))		goto invalid;	cmd = PCA9554_OUT;	if (iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP,	    sc->sc_addr, &cmd, sizeof cmd, &out, sizeof out, 0))		goto invalid;	for (i = 0; i < GSCGPIO_NPINS; i++) {		bit = 1 << i;		if ((sc->sc_control & bit))			sc->sc_sensor[i].value = (in & bit) ? 1 : 0;		else			sc->sc_sensor[i].value = (out & bit) ? 1 : 0;	}invalid:	iic_release_bus(sc->sc_tag, 0);}