AU1300_GPIO_BASE
return !!au1300_gpio_get_value(off + AU1300_GPIO_BASE);
au1300_gpio_set_value(off + AU1300_GPIO_BASE, v);
return au1300_gpio_direction_input(off + AU1300_GPIO_BASE);
return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v);
return au1300_gpio_to_irq(off + AU1300_GPIO_BASE);
.base = AU1300_GPIO_BASE,
au1300_gpio_direction_input(gpio + AU1300_GPIO_BASE);
#define AU1300_GPIO_MAX (AU1300_GPIO_BASE + AU1300_GPIO_NUM - 1)
gpio -= AU1300_GPIO_BASE;
gpio -= AU1300_GPIO_BASE;
gpio -= AU1300_GPIO_BASE;
return AU1300_FIRST_INT + (gpio - AU1300_GPIO_BASE);
return (irq - AU1300_FIRST_INT) + AU1300_GPIO_BASE;
ret = ((gpio >= AU1300_GPIO_BASE) && (gpio <= AU1300_GPIO_MAX));