summaryrefslogtreecommitdiffstats
path: root/include/linux/counter_enum.h
blob: 9f917298a88f823015e4cc525c36eab00cfb8ef7 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Counter interface enum functions
 * Copyright (C) 2018 William Breathitt Gray
 */
#ifndef _COUNTER_ENUM_H_
#define _COUNTER_ENUM_H_

#include <linux/types.h>

struct counter_device;
struct counter_signal;
struct counter_count;

ssize_t counter_signal_enum_read(struct counter_device *counter,
				 struct counter_signal *signal, void *priv,
				 char *buf);
ssize_t counter_signal_enum_write(struct counter_device *counter,
				  struct counter_signal *signal, void *priv,
				  const char *buf, size_t len);

ssize_t counter_signal_enum_available_read(struct counter_device *counter,
					   struct counter_signal *signal,
					   void *priv, char *buf);

ssize_t counter_count_enum_read(struct counter_device *counter,
				struct counter_count *count, void *priv,
				char *buf);
ssize_t counter_count_enum_write(struct counter_device *counter,
				 struct counter_count *count, void *priv,
				 const char *buf, size_t len);

ssize_t counter_count_enum_available_read(struct counter_device *counter,
					  struct counter_count *count,
					  void *priv, char *buf);

ssize_t counter_device_enum_read(struct counter_device *counter, void *priv,
				 char *buf);
ssize_t counter_device_enum_write(struct counter_device *counter, void *priv,
				  const char *buf, size_t len);

ssize_t counter_device_enum_available_read(struct counter_device *counter,
					   void *priv, char *buf);

#endif /* _COUNTER_ENUM_H_ */