Searched refs:gpio (Results 1 - 25 of 42) sorted by relevance

12

/seL4-refos-master/projects/util_libs/libplatsupport/arch_include/arm/platsupport/
H A Dgpio.h24 #define GPIOID_PORT(gpio) ((gpio) / 32)
25 #define GPIOID_PIN(gpio) ((gpio) % 32)
27 typedef struct gpio gpio_t;
28 struct gpio { struct
68 * @param gpio_sys Initialized gpio driver instance.
78 * @param gpio[out] Pointer to a gpio_t structure to be initialised.
81 int (*init)(gpio_sys_t *gpio_sys, gpio_id_t id, enum gpio_dir dir, gpio_t *gpio);
86 * @param gpio Initialise
129 gpio_instance_valid(const gpio_t *gpio) argument
155 gpio_clr(gpio_t *gpio) argument
172 gpio_get(gpio_t *gpio) argument
189 gpio_set(gpio_t *gpio) argument
208 gpio_is_pending(gpio_t *gpio) argument
225 gpio_pending_clear(gpio_t *gpio) argument
246 gpio_irq_enable(gpio_t *gpio) argument
263 gpio_irq_disable(gpio_t *gpio) argument
284 gpio_new(gpio_sys_t *gpio_sys, gpio_id_t id, enum gpio_dir dir, gpio_t *gpio) argument
[all...]
H A Dgpio_utils.h16 #include <platsupport/gpio.h>
40 * pointer passed in must be the same as the lifetime of the gpio chain that
44 * @param gpio Initialised gpio_t structure which represents a chain.
47 int gpio_chain_add(gpio_chain_t *chain, gpio_t *gpio);
53 * @param gpio The target GPIO pin to remove from the chain.
56 int gpio_chain_remove(gpio_chain_t *chain, gpio_t *gpio);
H A Dspi.h17 #include <platsupport/gpio.h>
/seL4-refos-master/libs/libplatsupport/arch_include/arm/platsupport/
H A Dgpio.h24 #define GPIOID_PORT(gpio) ((gpio) / 32)
25 #define GPIOID_PIN(gpio) ((gpio) % 32)
27 typedef struct gpio gpio_t;
28 struct gpio { struct
68 * @param gpio_sys Initialized gpio driver instance.
78 * @param gpio[out] Pointer to a gpio_t structure to be initialised.
81 int (*init)(gpio_sys_t *gpio_sys, gpio_id_t id, enum gpio_dir dir, gpio_t *gpio);
86 * @param gpio Initialise
129 gpio_instance_valid(const gpio_t *gpio) argument
155 gpio_clr(gpio_t *gpio) argument
172 gpio_get(gpio_t *gpio) argument
189 gpio_set(gpio_t *gpio) argument
208 gpio_is_pending(gpio_t *gpio) argument
225 gpio_pending_clear(gpio_t *gpio) argument
246 gpio_irq_enable(gpio_t *gpio) argument
263 gpio_irq_disable(gpio_t *gpio) argument
284 gpio_new(gpio_sys_t *gpio_sys, gpio_id_t id, enum gpio_dir dir, gpio_t *gpio) argument
[all...]
H A Dgpio_utils.h16 #include <platsupport/gpio.h>
40 * pointer passed in must be the same as the lifetime of the gpio chain that
44 * @param gpio Initialised gpio_t structure which represents a chain.
47 int gpio_chain_add(gpio_chain_t *chain, gpio_t *gpio);
53 * @param gpio The target GPIO pin to remove from the chain.
56 int gpio_chain_remove(gpio_chain_t *chain, gpio_t *gpio);
H A Dspi.h17 #include <platsupport/gpio.h>
/seL4-refos-master/projects/util_libs/libethdrivers/src/plat/imx6/uboot/
H A Dgpio.h118 * @param gpio GPIO number
122 int gpio_request(unsigned gpio, const char *label);
127 * @param gpio GPIO number
130 int gpio_free(unsigned gpio);
135 * @param gpio GPIO number
138 int gpio_direction_input(unsigned gpio, ps_io_ops_t *io_ops);
143 * @param gpio GPIO number
147 int gpio_direction_output(unsigned gpio, int value, ps_io_ops_t *io_ops);
153 * @param gpio GPIO number
156 int gpio_get_value(unsigned gpio);
[all...]
H A Dmxc_gpio.c32 #include "gpio.h"
86 static int mxc_gpio_direction(unsigned int gpio, argument
89 unsigned int port = GPIO_TO_PORT(gpio);
97 gpio &= 0x1f;
113 l |= 1 << gpio;
116 l &= ~(BIT(gpio));
123 int gpio_set_value(unsigned gpio, int value) argument
125 unsigned int port = GPIO_TO_PORT(gpio);
133 gpio &= 0x1f;
139 l |= 1 << gpio;
148 gpio_get_value(unsigned gpio) argument
167 gpio_request(unsigned gpio, const char *label) argument
176 gpio_free(unsigned gpio) argument
181 gpio_direction_input(unsigned gpio, ps_io_ops_t *io_ops) argument
186 gpio_direction_output(unsigned gpio, int value, ps_io_ops_t *io_ops) argument
[all...]
/seL4-refos-master/libs/libplatsupport/mach_include/zynq/platsupport/mach/
H A Dgpio.h15 #include <platsupport/gpio.h>
/seL4-refos-master/libs/libplatsupport/src/plat/imx7/
H A Dgpio.c14 #include <platsupport/gpio.h>
/seL4-refos-master/projects/util_libs/libplatsupport/mach_include/zynq/platsupport/mach/
H A Dgpio.h15 #include <platsupport/gpio.h>
/seL4-refos-master/projects/util_libs/libplatsupport/src/plat/imx7/
H A Dgpio.c14 #include <platsupport/gpio.h>
/seL4-refos-master/projects/util_libs/libplatsupport/src/plat/tk1/
H A Dgpio.c17 #include <platsupport/gpio.h>
18 #include <platsupport/plat/gpio.h>
174 enum gpio_pin gpio, enum gpio_dir mode)
178 gpio, GPIO_CNF);;
180 gpio, GPIO_OE);
215 if (val & BIT(GPIO_BIT(gpio))) {
219 if (cnf_val & BIT(GPIO_BIT(gpio) + PORT_NBITS)) {
225 gpio);
229 val |= BIT(GPIO_BIT(gpio));
233 if ((val & BIT(GPIO_BIT(gpio)))
173 gpio_set_direction(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_dir mode) argument
254 gpio_set_interrupt_type(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_dir dir) argument
288 gpio_interrupt_enable(gpio_sys_t *gpio_sys, enum gpio_pin gpio, bool enable) argument
305 tegra_set_level(gpio_t *gpio, enum gpio_level level) argument
335 tegra_read_level(gpio_t *gpio) argument
361 gpio_int_clear(gpio_sys_t *gpio_sys, enum gpio_pin gpio) argument
381 gpio_check_pending(gpio_sys_t *gpio_sys, enum gpio_pin gpio) argument
391 tegra_pending_status(gpio_t *gpio, bool clear) argument
411 tegra_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
446 tegra_gpio_int_enable_disable(gpio_t *gpio, bool enable) argument
491 gpio_set_pad_mode(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_pad_mode mode, enum gpio_dir dir) argument
[all...]
H A Dmux_gpio_priv.h14 #include <platsupport/gpio.h>
15 #include <platsupport/plat/gpio.h>
25 enum gpio_pin gpio, enum gpio_pad_mode mode, enum gpio_dir dir);
/seL4-refos-master/libs/libplatsupport/src/plat/tk1/
H A Dgpio.c17 #include <platsupport/gpio.h>
18 #include <platsupport/plat/gpio.h>
174 enum gpio_pin gpio, enum gpio_dir mode)
178 gpio, GPIO_CNF);;
180 gpio, GPIO_OE);
215 if (val & BIT(GPIO_BIT(gpio))) {
219 if (cnf_val & BIT(GPIO_BIT(gpio) + PORT_NBITS)) {
225 gpio);
229 val |= BIT(GPIO_BIT(gpio));
233 if ((val & BIT(GPIO_BIT(gpio)))
173 gpio_set_direction(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_dir mode) argument
254 gpio_set_interrupt_type(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_dir dir) argument
288 gpio_interrupt_enable(gpio_sys_t *gpio_sys, enum gpio_pin gpio, bool enable) argument
305 tegra_set_level(gpio_t *gpio, enum gpio_level level) argument
335 tegra_read_level(gpio_t *gpio) argument
361 gpio_int_clear(gpio_sys_t *gpio_sys, enum gpio_pin gpio) argument
381 gpio_check_pending(gpio_sys_t *gpio_sys, enum gpio_pin gpio) argument
391 tegra_pending_status(gpio_t *gpio, bool clear) argument
411 tegra_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
446 tegra_gpio_int_enable_disable(gpio_t *gpio, bool enable) argument
491 gpio_set_pad_mode(gpio_sys_t *gpio_sys, enum gpio_pin gpio, enum gpio_pad_mode mode, enum gpio_dir dir) argument
[all...]
H A Dmux_gpio_priv.h14 #include <platsupport/gpio.h>
15 #include <platsupport/plat/gpio.h>
25 enum gpio_pin gpio, enum gpio_pad_mode mode, enum gpio_dir dir);
/seL4-refos-master/projects/util_libs/libplatsupport/src/mach/exynos/
H A Dmux.c17 #include <platsupport/gpio.h>
18 #include <platsupport/plat/gpio.h>
217 static inline mux_sys_t *gpio_get_mux(const gpio_t *gpio) argument
219 assert(gpio);
220 return gpio_sys_get_mux(gpio->gpio_sys);
223 static struct mux_cfg *get_gpio_cfg(gpio_t *gpio) argument
226 assert(gpio);
227 mux = gpio_get_mux(gpio);
228 return get_mux_cfg(mux, GPIOID_PORT(gpio->id));
231 static struct mux_bank *gpio_get_bank(gpio_t *gpio) argument
249 gpio_is_gpx(gpio_t *gpio) argument
256 gpio_get_xextint_idx(gpio_t *gpio) argument
268 gpio_get_extint_idx(gpio_t *gpio) argument
311 exynos_pending_status(gpio_t *gpio, bool clear) argument
346 exynos_gpio_int_configure(gpio_t *gpio, int int_con) argument
396 exynos_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
426 exynos_gpio_set_level(gpio_t *gpio, enum gpio_level level) argument
438 exynos_gpio_read_level(gpio_t *gpio) argument
[all...]
/seL4-refos-master/libs/libplatsupport/src/mach/exynos/
H A Dmux.c17 #include <platsupport/gpio.h>
18 #include <platsupport/plat/gpio.h>
217 static inline mux_sys_t *gpio_get_mux(const gpio_t *gpio) argument
219 assert(gpio);
220 return gpio_sys_get_mux(gpio->gpio_sys);
223 static struct mux_cfg *get_gpio_cfg(gpio_t *gpio) argument
226 assert(gpio);
227 mux = gpio_get_mux(gpio);
228 return get_mux_cfg(mux, GPIOID_PORT(gpio->id));
231 static struct mux_bank *gpio_get_bank(gpio_t *gpio) argument
249 gpio_is_gpx(gpio_t *gpio) argument
256 gpio_get_xextint_idx(gpio_t *gpio) argument
268 gpio_get_extint_idx(gpio_t *gpio) argument
311 exynos_pending_status(gpio_t *gpio, bool clear) argument
346 exynos_gpio_int_configure(gpio_t *gpio, int int_con) argument
396 exynos_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
426 exynos_gpio_set_level(gpio_t *gpio, enum gpio_level level) argument
438 exynos_gpio_read_level(gpio_t *gpio) argument
[all...]
/seL4-refos-master/libs/libplatsupport/src/arch/arm/
H A Dgpio_utils.c87 int gpio_chain_add(gpio_chain_t *chain, gpio_t *gpio) argument
89 if (!chain || !gpio) {
94 int error = list_append(&chain->pin_list, (void *) gpio);
102 int gpio_chain_remove(gpio_chain_t *chain, gpio_t *gpio) argument
104 if (!chain || !gpio) {
109 int not_found = list_remove(&chain->pin_list, gpio, gpio_chain_comparator);
118 gpio_t *gpio = data; local
130 int val = gpio_get(gpio);
137 gpio_set(gpio);
139 gpio_clr(gpio);
[all...]
H A Di2c_bitbang.c16 /* To extend support, provide platform specific i2c.h and gpio.h and delay.c */
37 pin_l(struct i2c_bb* d, int gpio) argument
40 gpio_new(d->gpio_sys, gpio, GPIO_DIR_OUT, &g);
45 pin_r(struct i2c_bb* d, int gpio) argument
48 gpio_new(d->gpio_sys, gpio, GPIO_DIR_IN, &g);
53 pin_h(struct i2c_bb* d, int gpio) argument
55 pin_r(d, gpio);
/seL4-refos-master/projects/util_libs/libplatsupport/src/arch/arm/
H A Dgpio_utils.c87 int gpio_chain_add(gpio_chain_t *chain, gpio_t *gpio) argument
89 if (!chain || !gpio) {
94 int error = list_append(&chain->pin_list, (void *) gpio);
102 int gpio_chain_remove(gpio_chain_t *chain, gpio_t *gpio) argument
104 if (!chain || !gpio) {
109 int not_found = list_remove(&chain->pin_list, gpio, gpio_chain_comparator);
118 gpio_t *gpio = data; local
130 int val = gpio_get(gpio);
137 gpio_set(gpio);
139 gpio_clr(gpio);
[all...]
H A Di2c_bitbang.c16 /* To extend support, provide platform specific i2c.h and gpio.h and delay.c */
37 pin_l(struct i2c_bb* d, int gpio) argument
40 gpio_new(d->gpio_sys, gpio, GPIO_DIR_OUT, &g);
45 pin_r(struct i2c_bb* d, int gpio) argument
48 gpio_new(d->gpio_sys, gpio, GPIO_DIR_IN, &g);
53 pin_h(struct i2c_bb* d, int gpio) argument
55 pin_r(d, gpio);
/seL4-refos-master/libs/libplatsupport/src/plat/imx6/
H A Dgpio.c16 #include <platsupport/gpio.h>
17 #include <platsupport/plat/gpio.h>
59 volatile static struct imx6_gpio_regs *imx6_gpio_get_bank(gpio_t *gpio) argument
63 assert(gpio);
64 assert(gpio->gpio_sys);
65 assert(gpio->gpio_sys->priv);
66 gpio_priv = (struct imx6_gpio *)gpio->gpio_sys->priv;
67 port = GPIOID_PORT(gpio->id);
73 static int imx6_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
79 assert(gpio);
118 imx6_gpio_set_level(gpio_t *gpio, enum gpio_level level) argument
141 imx6_gpio_read_level(gpio_t *gpio) argument
[all...]
/seL4-refos-master/projects/util_libs/libplatsupport/src/plat/imx6/
H A Dgpio.c16 #include <platsupport/gpio.h>
17 #include <platsupport/plat/gpio.h>
59 volatile static struct imx6_gpio_regs *imx6_gpio_get_bank(gpio_t *gpio) argument
63 assert(gpio);
64 assert(gpio->gpio_sys);
65 assert(gpio->gpio_sys->priv);
66 gpio_priv = (struct imx6_gpio *)gpio->gpio_sys->priv;
67 port = GPIOID_PORT(gpio->id);
73 static int imx6_gpio_init(gpio_sys_t *gpio_sys, int id, enum gpio_dir dir, gpio_t *gpio) argument
79 assert(gpio);
118 imx6_gpio_set_level(gpio_t *gpio, enum gpio_level level) argument
141 imx6_gpio_read_level(gpio_t *gpio) argument
[all...]
/seL4-refos-master/libs/libplatsupport/plat_include/imx6/platsupport/plat/
H A Dgpio.h16 #include <platsupport/gpio.h>
66 * @param[in] bankX A virtual mapping for gpio bank X.
69 * @param[out] gpio_sys A handle to a gpio subsystem to populate.

Completed in 98 milliseconds

12