virtio_blk_qti_crypto.h 790 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef _VIRTIO_BLK_QTI_CRYPTO_H
  7. #define _VIRTIO_BLK_QTI_CRYPTO_H
  8. #include <linux/device.h>
  9. #include <linux/blkdev.h>
  10. /**
  11. * This function intializes the supported crypto capabilities
  12. * and create crypto profile to manage keyslots for virtual
  13. * disks.
  14. *
  15. * Return: zero on success, else a -errno value
  16. */
  17. int virtblk_init_crypto_qti_spec(struct device *dev);
  18. /**
  19. * set up a crypto profile in the virtual disks request_queue
  20. *
  21. * @request_queue: virtual disk request queue
  22. */
  23. void virtblk_crypto_qti_crypto_register(struct request_queue *q);
  24. #endif /* _VIRTIO_BLK_QTI_CRYPTO_H */