dim2_sysfs.h 894 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. /* Author: Andrey Shvetsov <andrey.shvetsov@k2l.de> */
  14. #ifndef DIM2_SYSFS_H
  15. #define DIM2_SYSFS_H
  16. #include <linux/kobject.h>
  17. struct medialb_bus {
  18. struct kobject kobj_group;
  19. };
  20. struct dim2_hdm;
  21. int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj);
  22. void dim2_sysfs_destroy(struct medialb_bus *bus);
  23. /*
  24. * callback,
  25. * must deliver MediaLB state as true if locked or false if unlocked
  26. */
  27. bool dim2_sysfs_get_state_cb(void);
  28. #endif /* DIM2_SYSFS_H */