ogpio 133 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_DATA_REG_MASK(ogpio) (1 << ogpio) ogpio 134 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_MODE_REG_VALUE(mode, ogpio) \ ogpio 135 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h (mode << BASIC_MODE_REG_SHIFT(ogpio)) ogpio 136 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_MODE_REG_MASK(ogpio) \ ogpio 137 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h BASIC_MODE_REG_VALUE(0xf, ogpio) ogpio 138 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_MODE_REG_SHIFT(ogpio) (ogpio * 4) ogpio 139 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_MODE_REG_FROM_REG(data, ogpio) \ ogpio 140 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h ((data & BASIC_MODE_REG_MASK(ogpio)) >> BASIC_MODE_REG_SHIFT(ogpio)) ogpio 178 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define EXTENDED_REG_DISABLE(ogpio) (0x2 << ((ogpio * 2) + 16)) ogpio 179 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define EXTENDED_REG_ENABLE(ogpio) (0x1 << ((ogpio * 2) + 16)) ogpio 180 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define EXTENDED_REG_SET(ogpio) (0x2 << (ogpio * 2)) ogpio 181 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define EXTENDED_REG_CLR(ogpio) (0x1 << (ogpio * 2))