sec_crashkey.h 849 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __INTERNAL__SEC_CRASHKEY_H__
  2. #define __INTERNAL__SEC_CRASHKEY_H__
  3. #include <linux/list.h>
  4. #include <linux/notifier.h>
  5. #include <linux/ratelimit.h>
  6. #include <linux/samsung/bsp/sec_key_notifier.h>
  7. #include <linux/samsung/builder_pattern.h>
  8. struct crashkey_kelog {
  9. const struct sec_key_notifier_param *desired;
  10. size_t nr_pattern;
  11. size_t sequence;
  12. unsigned int *used_key;
  13. size_t nr_used_key;
  14. };
  15. struct crashkey_timer {
  16. struct ratelimit_state rs;
  17. int interval;
  18. };
  19. struct crashkey_notify {
  20. struct raw_notifier_head list;
  21. struct notifier_block panic;
  22. const char *panic_msg;
  23. };
  24. struct crashkey_drvdata {
  25. struct builder bd;
  26. struct list_head list;
  27. struct notifier_block nb;
  28. const char *name;
  29. struct crashkey_kelog keylog;
  30. struct crashkey_timer timer;
  31. struct crashkey_notify notify;
  32. };
  33. #endif /* __INTERNAL__SEC_CRASHKEY_H__ */