[09/14] common/ark: add VF support to caps record

Message ID 20221026194613.1008232-9-john.miller@atomicrules.com (mailing list archive)
State Changes Requested, archived
Delegated to: Maxime Coquelin
Headers
Series [01/14] doc/guides/bbdevs: add ark baseband device documentation |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

John Miller Oct. 26, 2022, 7:46 p.m. UTC
  Some HW variants support sr-iov, add this to the device
capabilities record.

Signed-off-by: John Miller <john.miller@atomicrules.com>
---
 drivers/common/ark/ark_common.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/common/ark/ark_common.h b/drivers/common/ark/ark_common.h
index ba4c70f804..b940f31ea6 100644
--- a/drivers/common/ark/ark_common.h
+++ b/drivers/common/ark/ark_common.h
@@ -23,16 +23,19 @@ 
  * Some HW variants require that PCIe read-requests be correctly throttled.
  * This is called "rqpacing" and has to do with credit and flow control
  * on certain Arkville implementations.
+ *  isvf -
+ * Some HW variants support sr-iov virtual functions.
  */
 struct ark_caps {
 	bool rqpacing;
+	bool isvf;
 };
 struct ark_dev_caps {
 	uint32_t  device_id;
 	struct ark_caps  caps;
 };
-#define SET_DEV_CAPS(id, rqp) \
-	{id, {.rqpacing = rqp} }
+#define SET_DEV_CAPS(id, rqp, vf)		\
+	{id, {.rqpacing = rqp, .isvf = vf} }
 
 /* Format specifiers for string data pairs */
 #define ARK_SU32  "\n\t%-20s    %'20" PRIU32