cxl: Allow the kernel to trust that an image won't change on PERST.
[firefly-linux-kernel-4.4.55.git] / include / misc / cxl.h
index 7a6c1d6cc1732e1fc83432cd46e65ed25a5fa4ef..f2ffe5bd720dead644c69fb74367adb13c3de026 100644 (file)
@@ -200,4 +200,14 @@ unsigned int cxl_fd_poll(struct file *file, struct poll_table_struct *poll);
 ssize_t cxl_fd_read(struct file *file, char __user *buf, size_t count,
                           loff_t *off);
 
+/*
+ * For EEH, a driver may want to assert a PERST will reload the same image
+ * from flash into the FPGA.
+ *
+ * This is a property of the entire adapter, not a single AFU, so drivers
+ * should set this property with care!
+ */
+void cxl_perst_reloads_same_image(struct cxl_afu *afu,
+                                 bool perst_reloads_same_image);
+
 #endif /* _MISC_CXL_H */