unsigned short rv; unsigned short bit = (1 << pin);
u_int16_t rv; u_int16_t bit = (1 << pin);
scoop_gpio_pin_read(struct scoop_softc *sc, int pin){	unsigned short rv;	unsigned short bit = (1 << pin);	rv = bus_space_read_2(sc->sc_iot, sc->sc_ioh, SCOOP_GPWR);	return (rv & bit) != 0 ? 1 : 0;}