rt2x00: do not align payload on modern H/W
[firefly-linux-kernel-4.4.55.git] / drivers / ntb / ntb_hw.h
index 3a3038ca83e6d4451c910bcbc7cdf48a1fd00213..6a4f56f564ee29af0cec8d6bb6dc2ac97b084761 100644 (file)
@@ -127,6 +127,8 @@ struct ntb_device {
        unsigned char link_status;
        struct delayed_work hb_timer;
        unsigned long last_ts;
+
+       struct dentry *debugfs_dir;
 };
 
 /**
@@ -155,6 +157,20 @@ static inline struct pci_dev *ntb_query_pdev(struct ntb_device *ndev)
        return ndev->pdev;
 }
 
+/**
+ * ntb_query_debugfs() - return the debugfs pointer
+ * @ndev: pointer to ntb_device instance
+ *
+ * Given the ntb pointer, return the debugfs directory pointer for the NTB
+ * hardware device
+ *
+ * RETURNS: a pointer to the debugfs directory
+ */
+static inline struct dentry *ntb_query_debugfs(struct ntb_device *ndev)
+{
+       return ndev->debugfs_dir;
+}
+
 struct ntb_device *ntb_register_transport(struct pci_dev *pdev,
                                          void *transport);
 void ntb_unregister_transport(struct ntb_device *ndev);