summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/ipa_sysfs.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-06-11 15:39:40 -0500
committerDavid S. Miller <davem@davemloft.net>2021-06-11 14:13:18 -0700
commit2e3cf97f4741b320e8f4639fcca732b17614a55f (patch)
tree9e0bef177cc30b0a99c643ff84dbd4ca649ed5f8 /drivers/net/ipa/ipa_sysfs.h
parente22e8e2fae61de990e3a815a66f2ffa166669b8e (diff)
downloadlinux-2e3cf97f4741b320e8f4639fcca732b17614a55f.tar.bz2
net: ipa: introduce sysfs code
Add IPA device attributes to expose information known by the IPA driver about the hardware and its configuration. All pointers used to display these attribute values (i.e., IPA pointer and endpoint pointers) will have been initialized by the time IPA probe has completed, so they may be safely dereferenced. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_sysfs.h')
-rw-r--r--drivers/net/ipa/ipa_sysfs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_sysfs.h b/drivers/net/ipa/ipa_sysfs.h
new file mode 100644
index 000000000000..b34e5650bf8c
--- /dev/null
+++ b/drivers/net/ipa/ipa_sysfs.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+ * Copyright (C) 2019-2021 Linaro Ltd.
+ */
+#ifndef _IPA_SYSFS_H_
+#define _IPA_SYSFS_H_
+
+struct attribute_group;
+
+extern const struct attribute_group ipa_attribute_group;
+extern const struct attribute_group ipa_feature_attribute_group;
+extern const struct attribute_group ipa_modem_attribute_group;
+
+#endif /* _IPA_SYSFS_H_ */