ccp-dev.h (341924049558e5f7c1a148a2c461a417933d35d9) ccp-dev.h (52393d617af7b554f03531e6756facf2ea687d2e)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * AMD Cryptographic Coprocessor (CCP) driver
4 *
5 * Copyright (C) 2013,2017 Advanced Micro Devices, Inc.
6 *
7 * Author: Tom Lendacky <thomas.lendacky@amd.com>
8 * Author: Gary R Hook <gary.hook@amd.com>
1/*
2 * AMD Cryptographic Coprocessor (CCP) driver
3 *
4 * Copyright (C) 2013,2017 Advanced Micro Devices, Inc.
5 *
6 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7 * Author: Gary R Hook <gary.hook@amd.com>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
9 */
10
11#ifndef __CCP_DEV_H__
12#define __CCP_DEV_H__
13
14#include <linux/device.h>
15#include <linux/pci.h>
16#include <linux/spinlock.h>

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

624 union dword5 dw5;
625 __le32 key_lo;
626 struct dword7 dw7;
627};
628
629void ccp_add_device(struct ccp_device *ccp);
630void ccp_del_device(struct ccp_device *ccp);
631
12 */
13
14#ifndef __CCP_DEV_H__
15#define __CCP_DEV_H__
16
17#include <linux/device.h>
18#include <linux/pci.h>
19#include <linux/spinlock.h>

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

627 union dword5 dw5;
628 __le32 key_lo;
629 struct dword7 dw7;
630};
631
632void ccp_add_device(struct ccp_device *ccp);
633void ccp_del_device(struct ccp_device *ccp);
634
632extern void ccp_log_error(struct ccp_device *, int);
635extern void ccp_log_error(struct ccp_device *, unsigned int);
633
634struct ccp_device *ccp_alloc_struct(struct sp_device *sp);
635bool ccp_queues_suspended(struct ccp_device *ccp);
636int ccp_cmd_queue_thread(void *data);
637int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait);
638
639int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd);
640

--- 31 unchanged lines hidden ---
636
637struct ccp_device *ccp_alloc_struct(struct sp_device *sp);
638bool ccp_queues_suspended(struct ccp_device *ccp);
639int ccp_cmd_queue_thread(void *data);
640int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait);
641
642int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd);
643

--- 31 unchanged lines hidden ---