aboutsummaryrefslogtreecommitdiff
path: root/drivers/crypto/intel/iaa/iaa_crypto.h
blob: 5d1fff7f4b8e52c61d3b4c6faf95894c73fb5857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 2021 Intel Corporation. All rights rsvd. */

#ifndef __IAA_CRYPTO_H__
#define __IAA_CRYPTO_H__

#include <linux/crypto.h>
#include <linux/idxd.h>
#include <uapi/linux/idxd.h>

#define IDXD_SUBDRIVER_NAME		"crypto"

/* Representation of IAA workqueue */
struct iaa_wq {
	struct list_head	list;
	struct idxd_wq		*wq;

	struct iaa_device	*iaa_device;
};

/* Representation of IAA device with wqs, populated by probe */
struct iaa_device {
	struct list_head		list;
	struct idxd_device		*idxd;

	int				n_wq;
	struct list_head		wqs;
};

#endif