xref: /spdk/lib/vfu_tgt/tgt_internal.h (revision a6dbe3721eb3b5990707fc3e378c95e505dd8ab5)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (C) 2022 Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #ifndef _TGT_INTERNAL_H
7 #define _TGT_INTERNAL_H
8 
9 #include "spdk/vfu_target.h"
10 
11 struct spdk_vfu_endpoint {
12 	char				name[SPDK_VFU_MAX_NAME_LEN];
13 	char				uuid[PATH_MAX];
14 
15 	struct spdk_vfu_endpoint_ops	ops;
16 
17 	vfu_ctx_t			*vfu_ctx;
18 	void				*endpoint_ctx;
19 
20 	struct spdk_poller		*accept_poller;
21 	struct spdk_poller		*vfu_ctx_poller;
22 	bool				is_attached;
23 
24 	struct msixcap			*msix;
25 	vfu_pci_config_space_t		*pci_config_space;
26 
27 	struct spdk_thread		*thread;
28 
29 	TAILQ_ENTRY(spdk_vfu_endpoint)	link;
30 };
31 
32 #endif
33