qdf_vfs.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (c) 2018 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: qdf_vfs
  20. * QCA driver framework (QDF) virtual filesystem management APIs
  21. */
  22. #if !defined(__QDF_VFS_H)
  23. #define __QDF_VFS_H
  24. /* Include Files */
  25. #include <qdf_types.h>
  26. struct qdf_vfs_attr;
  27. struct qdf_vf_bin_attr;
  28. struct qdf_dev_obj;
  29. /**
  30. * qdf_vfs_set_file_attributes() - set file attributes
  31. * @devobj: Device object
  32. * @attr: File attribute
  33. *
  34. * This function will set the attributes of a file
  35. *
  36. * Return: QDF_STATUS_SUCCESS on success
  37. */
  38. QDF_STATUS
  39. qdf_vfs_set_file_attributes(struct qdf_dev_obj *devobj,
  40. struct qdf_vfs_attr *attr);
  41. /**
  42. * qdf_vfs_clear_file_attributes() - clear file attributes
  43. * @devobj: Device object
  44. * @attr: File attribute
  45. *
  46. * This function will clear the attributes of a file
  47. *
  48. * Return: QDF_STATUS_SUCCESS on success
  49. */
  50. QDF_STATUS
  51. qdf_vfs_clear_file_attributes(struct qdf_dev_obj *devobj,
  52. struct qdf_vfs_attr *attr);
  53. /**
  54. * qdf_vfs_create_binfile() - create binfile
  55. * @devobj: Device object
  56. * @attr: File attribute
  57. *
  58. * This function will create a binary file
  59. *
  60. * Return: QDF_STATUS_SUCCESS on success
  61. */
  62. QDF_STATUS
  63. qdf_vfs_create_binfile(struct qdf_dev_obj *devobj,
  64. struct qdf_vf_bin_attr *attr);
  65. /**
  66. * qdf_vfs_delete_binfile() - delete binfile
  67. * @devobj: Device object
  68. * @attr: File attribute
  69. *
  70. * This function will delete a binary file
  71. *
  72. * Return: QDF_STATUS_SUCCESS on success
  73. */
  74. QDF_STATUS
  75. qdf_vfs_delete_binfile(struct qdf_dev_obj *devobj,
  76. struct qdf_vf_bin_attr *attr);
  77. #endif