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 /** 20 * DOC: qdf_vfs 21 * QCA driver framework (QDF) virtual filesystem management APIs 22 */ 23 24 #if !defined(__QDF_VFS_H) 25 #define __QDF_VFS_H 26 27 /* Include Files */ 28 #include <qdf_types.h> 29 30 struct qdf_vfs_attr; 31 struct qdf_vf_bin_attr; 32 struct qdf_dev_obj; 33 34 /** 35 * qdf_vfs_set_file_attributes() - set file attributes 36 * @devobj: Device object 37 * @attr: File attribute 38 * 39 * This function will set the attributes of a file 40 * 41 * Return: QDF_STATUS_SUCCESS on success 42 */ 43 QDF_STATUS 44 qdf_vfs_set_file_attributes(struct qdf_dev_obj *devobj, 45 struct qdf_vfs_attr *attr); 46 47 /** 48 * qdf_vfs_clear_file_attributes() - clear file attributes 49 * @devobj: Device object 50 * @attr: File attribute 51 * 52 * This function will clear the attributes of a file 53 * 54 * Return: QDF_STATUS_SUCCESS on success 55 */ 56 QDF_STATUS 57 qdf_vfs_clear_file_attributes(struct qdf_dev_obj *devobj, 58 struct qdf_vfs_attr *attr); 59 60 /** 61 * qdf_vfs_create_binfile() - create binfile 62 * @devobj: Device object 63 * @attr: File attribute 64 * 65 * This function will create a binary file 66 * 67 * Return: QDF_STATUS_SUCCESS on success 68 */ 69 QDF_STATUS 70 qdf_vfs_create_binfile(struct qdf_dev_obj *devobj, 71 struct qdf_vf_bin_attr *attr); 72 73 /** 74 * qdf_vfs_delete_binfile() - delete binfile 75 * @devobj: Device object 76 * @attr: File attribute 77 * 78 * This function will delete a binary file 79 * 80 * Return: QDF_STATUS_SUCCESS on success 81 */ 82 QDF_STATUS 83 qdf_vfs_delete_binfile(struct qdf_dev_obj *devobj, 84 struct qdf_vf_bin_attr *attr); 85 #endif 86