diff options
Diffstat (limited to 'snd-alpx/alpx_gpio.h')
-rw-r--r-- | snd-alpx/alpx_gpio.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/snd-alpx/alpx_gpio.h b/snd-alpx/alpx_gpio.h new file mode 100644 index 0000000..90395a0 --- /dev/null +++ b/snd-alpx/alpx_gpio.h @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Support for Digigram AlpX PCI-e boards +* +* Copyright (c) 2024 Digigram Digital (info@digigram.com) +*/ + +#ifndef _ALPX_GPIOS_H +#define _ALPX_GPIOS_H +#include "alpx.h" + +#include <linux/gpio.h> +#include <linux/gpio/driver.h> + +int alpx_gpio_get(struct gpio_chip *chip, unsigned offset); +void alpx_gpio_set(struct gpio_chip *chip, unsigned offset, + int gpio_value); +int alpx_gpio_get_direction(struct gpio_chip *chip, unsigned offset); +int alpx_gpio_direction_output(struct gpio_chip *chip, unsigned offset, + int gpio_value); +int alpx_gpio_direction_input(struct gpio_chip *chip, unsigned offset); +int alpx_gpio_register(struct alpx_device *alpx_dev, const char* card_name); +void alpx_gpio_unregister(struct alpx_device *alpx_dev); + +#endif |