| * Copyright (c) 2015 Intel Corporation. |
| * SPDX-License-Identifier: Apache-2.0 |
| #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_DW_H_ |
| #define ZEPHYR_DRIVERS_GPIO_GPIO_DW_H_ |
| #include <zephyr/types.h> |
| #include <zephyr/drivers/gpio.h> |
| #include "gpio_dw_registers.h" |
| typedef void (*gpio_config_irq_t)(const struct device *port); |
| /* gpio_driver_config needs to be first */ |
| struct gpio_driver_config common; |
| uint32_t irq_num; /* set to 0 if GPIO port cannot interrupt */ |
| gpio_config_irq_t config_func; |
| /* gpio_driver_data needs to be first */ |
| struct gpio_driver_data common; |
| #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_DW_H_ */ |