qcacmn: Enhancement of OS abstraction API's

The API's added in qal & qdf for abstracting the
OS calls are inlined and moved to the OS-specific
src directories.

Change-Id: I9c9c2cbba7702c97fbe343ceb63b330c2296084d
This commit is contained in:
Debasis Das
2019-03-04 18:56:54 +05:30
committed by nshrivas
parent 238555bcd8
commit 017bc12dc3
11 changed files with 759 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -31,6 +31,7 @@ struct qdf_vfs_attr;
struct qdf_vf_bin_attr;
struct qdf_dev_obj;
#ifdef ENHANCED_OS_ABSTRACTION
/**
* qdf_vfs_set_file_attributes() - set file attributes
* @devobj: Device object
@@ -82,4 +83,33 @@ qdf_vfs_create_binfile(struct qdf_dev_obj *devobj,
QDF_STATUS
qdf_vfs_delete_binfile(struct qdf_dev_obj *devobj,
struct qdf_vf_bin_attr *attr);
#else
static inline QDF_STATUS
qdf_vfs_set_file_attributes(struct qdf_dev_obj *devobj,
struct qdf_vfs_attr *attr)
{
return __qdf_vfs_set_file_attributes(devobj, attr);
}
static inline QDF_STATUS
qdf_vfs_clear_file_attributes(struct qdf_dev_obj *devobj,
struct qdf_vfs_attr *attr)
{
return __qdf_vfs_clear_file_attributes(devobj, attr);
}
statuc inline QDF_STATUS
qdf_vfs_create_binfile(struct qdf_dev_obj *devobj,
struct qdf_vf_bin_attr *attr)
{
return __qdf_vfs_create_binfile(devobj, attr);
}
static inline QDF_STATUS
qdf_vfs_delete_binfile(struct qdf_dev_obj *devobj,
struct qdf_vf_bin_attr *attr)
{
return __qdf_vfs_delete_binfile(devobj, attr);
}
#endif
#endif /* __QDF_VFS_H */