Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <mach/common.h>
#include <mach/tnetv107x.h>
Go to the source code of this file.
Data Structures | |
struct | tnetv107x_gpio_regs |
Macros | |
#define | gpio_reg_index(gpio) ((gpio) >> 5) |
#define | gpio_reg_bit(gpio) BIT((gpio) & 0x1f) |
#define | gpio_reg_rmw(reg, mask, val) __raw_writel((__raw_readl(reg) & ~(mask)) | (val), (reg)) |
#define | gpio_reg_set_bit(reg, gpio) gpio_reg_rmw((reg) + gpio_reg_index(gpio), 0, gpio_reg_bit(gpio)) |
#define | gpio_reg_clear_bit(reg, gpio) gpio_reg_rmw((reg) + gpio_reg_index(gpio), gpio_reg_bit(gpio), 0) |
#define | gpio_reg_get_bit(reg, gpio) (__raw_readl((reg) + gpio_reg_index(gpio)) & gpio_reg_bit(gpio)) |
#define | chip2controller(chip) container_of(chip, struct davinci_gpio_controller, chip) |
#define | TNETV107X_GPIO_CTLRS DIV_ROUND_UP(TNETV107X_N_GPIO, 32) |
Functions | |
pure_initcall (tnetv107x_gpio_setup) | |
#define chip2controller | ( | chip | ) | container_of(chip, struct davinci_gpio_controller, chip) |
Definition at line 45 of file gpio-tnetv107x.c.
Definition at line 31 of file gpio-tnetv107x.c.
#define gpio_reg_clear_bit | ( | reg, | |
gpio | |||
) | gpio_reg_rmw((reg) + gpio_reg_index(gpio), gpio_reg_bit(gpio), 0) |
Definition at line 39 of file gpio-tnetv107x.c.
#define gpio_reg_get_bit | ( | reg, | |
gpio | |||
) | (__raw_readl((reg) + gpio_reg_index(gpio)) & gpio_reg_bit(gpio)) |
Definition at line 42 of file gpio-tnetv107x.c.
Definition at line 30 of file gpio-tnetv107x.c.
#define gpio_reg_rmw | ( | reg, | |
mask, | |||
val | |||
) | __raw_writel((__raw_readl(reg) & ~(mask)) | (val), (reg)) |
Definition at line 33 of file gpio-tnetv107x.c.
#define gpio_reg_set_bit | ( | reg, | |
gpio | |||
) | gpio_reg_rmw((reg) + gpio_reg_index(gpio), 0, gpio_reg_bit(gpio)) |
Definition at line 36 of file gpio-tnetv107x.c.
#define TNETV107X_GPIO_CTLRS DIV_ROUND_UP(TNETV107X_N_GPIO, 32) |
Definition at line 48 of file gpio-tnetv107x.c.
pure_initcall | ( | tnetv107x_gpio_setup | ) |