ccp-dev.h (4b394a232df78414442778b02ca4a388d947d059) ccp-dev.h (084935b208f6507ef5214fd67052a67a700bc6cf)
1/*
2 * AMD Cryptographic Coprocessor (CCP) driver
3 *
4 * Copyright (C) 2013,2016 Advanced Micro Devices, Inc.
5 *
6 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7 * Author: Gary R Hook <gary.hook@amd.com>
8 *

--- 587 unchanged lines hidden (view full) ---

596
597struct ccp_device *ccp_alloc_struct(struct device *dev);
598bool ccp_queues_suspended(struct ccp_device *ccp);
599int ccp_cmd_queue_thread(void *data);
600int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait);
601
602int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd);
603
1/*
2 * AMD Cryptographic Coprocessor (CCP) driver
3 *
4 * Copyright (C) 2013,2016 Advanced Micro Devices, Inc.
5 *
6 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7 * Author: Gary R Hook <gary.hook@amd.com>
8 *

--- 587 unchanged lines hidden (view full) ---

596
597struct ccp_device *ccp_alloc_struct(struct device *dev);
598bool ccp_queues_suspended(struct ccp_device *ccp);
599int ccp_cmd_queue_thread(void *data);
600int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait);
601
602int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd);
603
604int ccp_register_rng(struct ccp_device *ccp);
605void ccp_unregister_rng(struct ccp_device *ccp);
604int ccp_dmaengine_register(struct ccp_device *ccp);
605void ccp_dmaengine_unregister(struct ccp_device *ccp);
606
607/* Structure for computation functions that are device-specific */
608struct ccp_actions {
609 int (*aes)(struct ccp_op *);
610 int (*xts_aes)(struct ccp_op *);
611 int (*sha)(struct ccp_op *);

--- 25 unchanged lines hidden ---
606int ccp_dmaengine_register(struct ccp_device *ccp);
607void ccp_dmaengine_unregister(struct ccp_device *ccp);
608
609/* Structure for computation functions that are device-specific */
610struct ccp_actions {
611 int (*aes)(struct ccp_op *);
612 int (*xts_aes)(struct ccp_op *);
613 int (*sha)(struct ccp_op *);

--- 25 unchanged lines hidden ---