1 /*
2  * dim2_sysfs.h - MediaLB sysfs information
3  *
4  * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9  * GNU General Public License for more details.
10  *
11  * This file is licensed under GPLv2.
12  */
13 
14 /* Author: Andrey Shvetsov <andrey.shvetsov@k2l.de> */
15 
16 #ifndef DIM2_SYSFS_H
17 #define	DIM2_SYSFS_H
18 
19 
20 #include <linux/kobject.h>
21 
22 
23 struct medialb_bus {
24 	struct kobject kobj_group;
25 };
26 
27 struct dim2_hdm;
28 
29 int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj);
30 void dim2_sysfs_destroy(struct medialb_bus *bus);
31 
32 /*
33  * callback,
34  * must deliver MediaLB state as true if locked or false if unlocked
35  */
36 bool dim2_sysfs_get_state_cb(void);
37 
38 
39 #endif	/* DIM2_SYSFS_H */
40