2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2016 Intel Corporation.
|
2016-06-06 21:44:30 +00:00
|
|
|
* All rights reserved.
|
2021-08-12 16:01:39 +00:00
|
|
|
* Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
2016-06-06 21:44:30 +00:00
|
|
|
*/
|
|
|
|
|
2016-08-23 16:46:41 +00:00
|
|
|
#ifndef NVMF_TGT_H
|
|
|
|
#define NVMF_TGT_H
|
2016-06-06 21:44:30 +00:00
|
|
|
|
2017-05-02 18:18:25 +00:00
|
|
|
#include "spdk/stdinc.h"
|
2016-08-25 22:00:50 +00:00
|
|
|
|
2016-09-19 17:01:52 +00:00
|
|
|
#include "spdk/nvmf.h"
|
2016-08-25 22:00:50 +00:00
|
|
|
#include "spdk/queue.h"
|
2018-03-08 20:26:44 +00:00
|
|
|
|
2021-02-26 22:00:03 +00:00
|
|
|
#include "spdk_internal/init.h"
|
2020-10-06 16:16:26 +00:00
|
|
|
#include "spdk/log.h"
|
2016-08-25 22:00:50 +00:00
|
|
|
|
2020-01-07 23:01:43 +00:00
|
|
|
struct spdk_nvmf_admin_passthru_conf {
|
|
|
|
bool identify_ctrlr;
|
|
|
|
};
|
|
|
|
|
2016-08-16 16:35:59 +00:00
|
|
|
struct spdk_nvmf_tgt_conf {
|
2020-01-07 23:01:43 +00:00
|
|
|
struct spdk_nvmf_admin_passthru_conf admin_passthru;
|
2021-08-12 16:01:39 +00:00
|
|
|
enum spdk_nvmf_tgt_discovery_filter discovery_filter;
|
2016-08-16 16:35:59 +00:00
|
|
|
};
|
|
|
|
|
2020-10-14 10:20:10 +00:00
|
|
|
extern struct spdk_nvmf_tgt_conf g_spdk_nvmf_tgt_conf;
|
2016-08-16 16:35:59 +00:00
|
|
|
|
2018-10-19 20:19:09 +00:00
|
|
|
extern uint32_t g_spdk_nvmf_tgt_max_subsystems;
|
2021-05-24 04:22:43 +00:00
|
|
|
extern uint16_t g_spdk_nvmf_tgt_crdt[3];
|
2018-10-19 20:19:09 +00:00
|
|
|
|
2018-03-10 00:33:41 +00:00
|
|
|
extern struct spdk_nvmf_tgt *g_spdk_nvmf_tgt;
|
2017-08-18 22:38:33 +00:00
|
|
|
|
2021-05-21 17:09:00 +00:00
|
|
|
extern struct spdk_cpuset *g_poll_groups_mask;
|
|
|
|
|
2016-06-06 21:44:30 +00:00
|
|
|
#endif
|