Debian Codegraph @

drivers/dahdi/oct612x/oct612x.h

raw symbols SCIP
1 /*
2 * Octasic OCT6100 Interface
3 *
4 * Copyright (C) 2013 Digium, Inc.
5 *
6 * All rights reserved.
7 *
8 */
9
10 /*
11 * See http://www.asterisk.org for more information about
12 * the Asterisk project. Please do not directly contact
13 * any of the maintainers of this project for assistance;
14 * the project provides a web site, mailing lists and IRC
15 * channels for your use.
16 *
17 * This program is free software, distributed under the terms of
18 * the GNU General Public License Version 2 as published by the
19 * Free Software Foundation. See the LICENSE file included with
20 * this program for more details.
21 */
22 #ifndef __OCT612X_H__
23 #define __OCT612X_H__
24
25 #include <oct6100api/oct6100_api.h>
26
27 struct oct612x_context;
28
29 /**
30 * struct oct612x_ops - Callbacks used by oct612x library to talk to part.
31 *
32 */
33 struct oct612x_ops {
34 int (*write)(struct oct612x_context *context, u32 address, u16 value);
35 int (*read)(struct oct612x_context *context, u32 address, u16 *value);
36 int (*write_smear)(struct oct612x_context *context, u32 address,
37 u16 value, size_t count);
38 int (*write_burst)(struct oct612x_context *context, u32 address,
39 const u16 *value, size_t count);
40 int (*read_burst)(struct oct612x_context *context, u32 address,
41 u16 *value, size_t count);
42 };
43
44 struct oct612x_context {
45 const struct oct612x_ops *ops;
46 struct device *dev;
47 };
48
49 #endif /* __OCT612X_H__ */