fingerprint.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) 2017, Samsung Electronics Co. Ltd. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef FINGERPRINT_H_
  16. #define FINGERPRINT_H_
  17. #undef DEBUG /* If you need pr_debug logs, changes this difinition */
  18. #undef pr_fmt
  19. #define pr_fmt(fmt) "fps_%s: " fmt, __func__
  20. #include "fingerprint_sysfs.h"
  21. #if defined(CONFIG_FINGERPRINT_SECURE) && !defined(CONFIG_SEC_FACTORY)
  22. #define ENABLE_SENSORS_FPRINT_SECURE
  23. #endif
  24. /* For Sensor Type Check */
  25. enum {
  26. SENSOR_OOO = -2,
  27. SENSOR_UNKNOWN,
  28. SENSOR_FAILED,
  29. SENSOR_OK,
  30. };
  31. #define SENSOR_STATUS_SIZE 4
  32. static char sensor_status[SENSOR_STATUS_SIZE][10] = {"ooo", "unknown", "failed", "okay"};
  33. /* For Finger Detect Mode */
  34. enum {
  35. DETECT_NORMAL = 0,
  36. DETECT_ADM, /* Always on Detect Mode */
  37. };
  38. #endif