omgpio_pin_dir_read
int omgpio_pin_dir_read(struct omgpio_softc *, unsigned int);
if(omgpio_pin_dir_read(sc, pin) == OMGPIO_DIR_IN)