1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 #ifndef __DAL_GPIO_INTERFACE_H__
27 #define __DAL_GPIO_INTERFACE_H__
28
29 #include "gpio_types.h"
30 #include "grph_object_defs.h"
31
32 struct gpio;
33
34
35 enum gpio_result dal_gpio_open(
36 struct gpio *gpio,
37 enum gpio_mode mode);
38
39 enum gpio_result dal_gpio_open_ex(
40 struct gpio *gpio,
41 enum gpio_mode mode);
42
43
44 enum gpio_result dal_gpio_get_value(
45 const struct gpio *gpio,
46 uint32_t *value);
47
48
49 enum gpio_result dal_gpio_set_value(
50 const struct gpio *gpio,
51 uint32_t value);
52
53
54 enum gpio_mode dal_gpio_get_mode(
55 const struct gpio *gpio);
56
57
58 enum gpio_result dal_gpio_change_mode(
59 struct gpio *gpio,
60 enum gpio_mode mode);
61
62
63 enum gpio_result dal_gpio_lock_pin(
64 struct gpio *gpio);
65
66
67 enum gpio_result dal_gpio_unlock_pin(
68 struct gpio *gpio);
69
70
71 enum gpio_id dal_gpio_get_id(
72 const struct gpio *gpio);
73
74
75 uint32_t dal_gpio_get_enum(
76 const struct gpio *gpio);
77
78
79 enum gpio_result dal_gpio_set_config(
80 struct gpio *gpio,
81 const struct gpio_config_data *config_data);
82
83
84 enum gpio_result dal_gpio_get_pin_info(
85 const struct gpio *gpio,
86 struct gpio_pin_info *pin_info);
87
88
89 enum sync_source dal_gpio_get_sync_source(
90 const struct gpio *gpio);
91
92
93 enum gpio_pin_output_state dal_gpio_get_output_state(
94 const struct gpio *gpio);
95
96 struct hw_ddc *dal_gpio_get_ddc(struct gpio *gpio);
97
98 struct hw_hpd *dal_gpio_get_hpd(struct gpio *gpio);
99
100 struct hw_generic *dal_gpio_get_generic(struct gpio *gpio);
101
102
103 void dal_gpio_close(
104 struct gpio *gpio);
105
106
107
108
109 #endif