1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Counter interface enum functions
4 * Copyright (C) 2018 William Breathitt Gray
6 #ifndef _COUNTER_ENUM_H_
7 #define _COUNTER_ENUM_H_
9 #include <linux/types.h>
11 struct counter_device;
12 struct counter_signal;
15 ssize_t counter_signal_enum_read(struct counter_device *counter,
16 struct counter_signal *signal, void *priv,
18 ssize_t counter_signal_enum_write(struct counter_device *counter,
19 struct counter_signal *signal, void *priv,
20 const char *buf, size_t len);
22 ssize_t counter_signal_enum_available_read(struct counter_device *counter,
23 struct counter_signal *signal,
24 void *priv, char *buf);
26 ssize_t counter_count_enum_read(struct counter_device *counter,
27 struct counter_count *count, void *priv,
29 ssize_t counter_count_enum_write(struct counter_device *counter,
30 struct counter_count *count, void *priv,
31 const char *buf, size_t len);
33 ssize_t counter_count_enum_available_read(struct counter_device *counter,
34 struct counter_count *count,
35 void *priv, char *buf);
37 ssize_t counter_device_enum_read(struct counter_device *counter, void *priv,
39 ssize_t counter_device_enum_write(struct counter_device *counter, void *priv,
40 const char *buf, size_t len);
42 ssize_t counter_device_enum_available_read(struct counter_device *counter,
43 void *priv, char *buf);
45 #endif /* _COUNTER_ENUM_H_ */