GI_GATE2_MODE
if (!(mode & GI_GATE2_MODE))
unsigned int mode_bits = GI_GATE2_MODE;
GI_GATE2_POL_INVERT | GI_GATE2_MODE, mode_bits);