• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include <linux/kobject.h>
20 
21 struct medialb_bus {
22 	struct kobject kobj_group;
23 };
24 
25 struct dim2_hdm;
26 
27 int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj);
28 void dim2_sysfs_destroy(struct medialb_bus *bus);
29 
30 /*
31  * callback,
32  * must deliver MediaLB state as true if locked or false if unlocked
33  */
34 bool dim2_sysfs_get_state_cb(void);
35 
36 #endif	/* DIM2_SYSFS_H */
37