aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/misc/ocxl/ocxl_internal.h
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2019-03-25 16:34:55 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-03 02:55:01 +1000
commitb696d28283e2e030cdc9ece7a4eb0a93b4c474fd (patch)
treebd52733e9b3ce5da3c6ddb532e8d97f271db5ed5 /drivers/misc/ocxl/ocxl_internal.h
parentocxl: Remove superfluous 'extern' from headers (diff)
downloadwireguard-linux-b696d28283e2e030cdc9ece7a4eb0a93b4c474fd.tar.xz
wireguard-linux-b696d28283e2e030cdc9ece7a4eb0a93b4c474fd.zip
ocxl: Remove some unused exported symbols
Remove some unused exported symbols. Signed-off-by: Alastair D'Silva <alastair@d-silva.org> Reviewed-by: Greg Kurz <groug@kaod.org> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/ocxl/ocxl_internal.h')
-rw-r--r--drivers/misc/ocxl/ocxl_internal.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/misc/ocxl/ocxl_internal.h b/drivers/misc/ocxl/ocxl_internal.h
index 321b29e77f45..06fd98c989c8 100644
--- a/drivers/misc/ocxl/ocxl_internal.h
+++ b/drivers/misc/ocxl/ocxl_internal.h
@@ -107,6 +107,29 @@ void ocxl_pasid_afu_free(struct ocxl_fn *fn, u32 start, u32 size);
int ocxl_actag_afu_alloc(struct ocxl_fn *fn, u32 size);
void ocxl_actag_afu_free(struct ocxl_fn *fn, u32 start, u32 size);
+/*
+ * Get the max PASID value that can be used by the function
+ */
+int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count);
+
+/*
+ * Check if an AFU index is valid for the given function.
+ *
+ * AFU indexes can be sparse, so a driver should check all indexes up
+ * to the maximum found in the function description
+ */
+int ocxl_config_check_afu_index(struct pci_dev *dev,
+ struct ocxl_fn_config *fn, int afu_idx);
+
+/**
+ * Update values within a Process Element
+ *
+ * link_handle: the link handle associated with the process element
+ * pasid: the PASID for the AFU context
+ * tid: the new thread id for the process element
+ */
+int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid);
+
struct ocxl_context *ocxl_context_alloc(void);
int ocxl_context_init(struct ocxl_context *ctx, struct ocxl_afu *afu,
struct address_space *mapping);