]> Git Repo - linux.git/blobdiff - drivers/fpga/dfl.h
net: bgmac: Fix return value check for fixed_phy_register()
[linux.git] / drivers / fpga / dfl.h
index fc59f33367ee7e25c7d694f5003dc1165000a447..1d724a28f00ad33b49a159d0d74e3f84dce80f24 100644 (file)
 #define DFHv1_PARAM_HDR_NEXT_EOP       BIT_ULL(32)
 #define DFHv1_PARAM_DATA               0x08  /* Offset of Param data from Param header */
 
+#define DFHv1_PARAM_ID_MSI_X           0x1
+#define DFHv1_PARAM_MSI_X_NUMV         GENMASK_ULL(63, 32)
+#define DFHv1_PARAM_MSI_X_STARTV       GENMASK_ULL(31, 0)
+
 /* Next AFU Register Bitfield */
 #define NEXT_AFU_NEXT_DFH_OFST GENMASK_ULL(23, 0)      /* Offset to next AFU */
 
@@ -263,6 +267,7 @@ struct dfl_feature_irq_ctx {
  *
  * @dev: ptr to pdev of the feature device which has the sub feature.
  * @id: sub feature id.
+ * @revision: revision of this sub feature.
  * @resource_index: each sub feature has one mmio resource for its registers.
  *                 this index is used to find its mmio resource from the
  *                 feature dev (platform device)'s resources.
@@ -272,6 +277,9 @@ struct dfl_feature_irq_ctx {
  * @ops: ops of this sub feature.
  * @ddev: ptr to the dfl device of this sub feature.
  * @priv: priv data of this feature.
+ * @dfh_version: version of the DFH
+ * @param_size: size of dfh parameters
+ * @params: point to memory copy of dfh parameters
  */
 struct dfl_feature {
        struct platform_device *dev;
@@ -284,6 +292,9 @@ struct dfl_feature {
        const struct dfl_feature_ops *ops;
        struct dfl_device *ddev;
        void *priv;
+       u8 dfh_version;
+       unsigned int param_size;
+       void *params;
 };
 
 #define FEATURE_DEV_ID_UNUSED  (-1)
This page took 0.031674 seconds and 4 git commands to generate.