18 #ifndef _COBALT_RTDM_GPIO_H 19 #define _COBALT_RTDM_GPIO_H 21 #include <linux/list.h> 23 #include <rtdm/uapi/gpio.h> 29 struct rtdm_gpio_pin {
31 struct list_head next;
35 struct gpio_desc *desc;
39 struct rtdm_gpio_chip {
42 struct class *devclass;
43 struct list_head next;
45 struct rtdm_gpio_pin pins[0];
48 int rtdm_gpiochip_add(
struct rtdm_gpio_chip *rgc,
52 struct rtdm_gpio_chip *
53 rtdm_gpiochip_alloc(
struct gpio_chip *gc,
56 void rtdm_gpiochip_remove(
struct rtdm_gpio_chip *rgc);
58 int rtdm_gpiochip_add_by_name(
struct rtdm_gpio_chip *rgc,
59 const char *label,
int gpio_subclass);
61 int rtdm_gpiochip_post_event(
struct rtdm_gpio_chip *rgc,
66 int rtdm_gpiochip_scan_of(
struct device_node *from,
67 const char *compat,
int type);
69 int rtdm_gpiochip_scan_array_of(
struct device_node *from,
71 int nentries,
int type);
73 void rtdm_gpiochip_remove_of(
int type);
ipipe_spinlock_t rtdm_lock_t
Lock variable.
Definition: driver.h:551
Real-Time Driver Model for Xenomai, driver API header.
uint64_t nanosecs_abs_t
RTDM type for representing absolute dates.
Definition: rtdm.h:43
RTDM device.
Definition: driver.h:338
RTDM driver.
Definition: driver.h:249