What is the meaning of Aferidoiro?

chute of a watermill and wooden trap which regulates the flux through it

Source: wiktionary.org