ccci_util_dummy.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #include <linux/cdev.h>
  2. #include <linux/device.h>
  3. #include <linux/fs.h>
  4. #include <linux/uaccess.h>
  5. #include <linux/wait.h>
  6. #include <linux/module.h>
  7. #include <linux/poll.h>
  8. void __weak spm_is_md1_sleep(void)
  9. {
  10. pr_err("[ccci/dummy] %s is not supported!\n", __func__);
  11. }
  12. void __weak spm_ap_mdsrc_req(u8 lock)
  13. {
  14. pr_err("[ccci/dummy] %s is not supported!\n", __func__);
  15. }
  16. void __weak ccci_power_off(void)
  17. {
  18. }
  19. int __weak exec_ccci_kern_func_by_md_id(int md_id, unsigned int id, char *buf, unsigned int len)
  20. {
  21. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  22. return 0;
  23. }
  24. int __weak switch_sim_mode(int id, char *buf, unsigned int len)
  25. {
  26. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  27. return 0;
  28. }
  29. unsigned int __weak get_sim_switch_type(void)
  30. {
  31. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  32. return 0;
  33. }
  34. unsigned int __weak get_modem_is_enabled(int md_id)
  35. {
  36. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  37. return 0;
  38. }
  39. int __weak register_ccci_sys_call_back(int md_id, unsigned int id, int (*func) (int, int))
  40. {
  41. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  42. return 0;
  43. }
  44. unsigned int __weak mt_irq_get_pending(unsigned int irq)
  45. {
  46. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  47. return 0;
  48. }
  49. void __weak notify_time_update(void)
  50. {
  51. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  52. }
  53. unsigned long __weak ccci_get_md_boot_count(int md_id)
  54. {
  55. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  56. return 0;
  57. }
  58. char * __weak ccci_get_ap_platform(void)
  59. {
  60. pr_debug("[ccci/dummy] %s is not supported!\n", __func__);
  61. return "MTxxxxE1";
  62. }