summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/vas.h
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.ibm.com>2021-06-17 13:36:28 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2021-06-20 21:58:57 +1000
commitb22f2d88e435cdada32581ca1f11b9806adf459a (patch)
tree8597a07538c6b445657d77b960ca738b39b65563 /arch/powerpc/include/asm/vas.h
parentca77d48854177bb9749aef7329201f03b2382fbb (diff)
downloadlinux-b22f2d88e435cdada32581ca1f11b9806adf459a.tar.gz
linux-b22f2d88e435cdada32581ca1f11b9806adf459a.tar.bz2
linux-b22f2d88e435cdada32581ca1f11b9806adf459a.zip
powerpc/pseries/vas: Integrate API with open/close windows
This patch adds VAS window allocatioa/close with the corresponding hcalls. Also changes to integrate with the existing user space VAS API and provide register/unregister functions to NX pseries driver. The driver register function is used to create the user space interface (/dev/crypto/nx-gzip) and unregister to remove this entry. The user space process opens this device node and makes an ioctl to allocate VAS window. The close interface is used to deallocate window. Signed-off-by: Haren Myneni <haren@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/e8d956bace3f182c4d2e66e343ff37cb0391d1fd.camel@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/vas.h')
-rw-r--r--arch/powerpc/include/asm/vas.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/vas.h b/arch/powerpc/include/asm/vas.h
index 99570c33058f..57573d9c1e09 100644
--- a/arch/powerpc/include/asm/vas.h
+++ b/arch/powerpc/include/asm/vas.h
@@ -254,6 +254,10 @@ struct vas_all_caps {
u64 feat_type;
};
+int h_query_vas_capabilities(const u64 hcall, u8 query_type, u64 result);
+int vas_register_api_pseries(struct module *mod,
+ enum vas_cop_type cop_type, const char *name);
+void vas_unregister_api_pseries(void);
#endif
/*