Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
38
modules/cas_cache/utils/utils_nvme.h
Normal file
38
modules/cas_cache/utils/utils_nvme.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2019 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
#ifndef UTILS_NVME_H_
|
||||
#define UTILS_NVME_H_
|
||||
|
||||
#if defined(CAS_UAPI_NVME)
|
||||
#include <uapi/nvme.h>
|
||||
#endif
|
||||
|
||||
#if defined(CAS_UAPI_LINUX_NVME)
|
||||
#include <uapi/linux/nvme.h>
|
||||
#endif
|
||||
|
||||
#if defined(CAS_UAPI_LINUX_NVME_IOCTL)
|
||||
#include <uapi/linux/nvme_ioctl.h>
|
||||
#endif
|
||||
|
||||
#if defined(CAS_NVME_PARTIAL)
|
||||
|
||||
#include <linux/nvme.h>
|
||||
|
||||
int cas_nvme_get_nsid(struct block_device *bdev, unsigned int *nsid);
|
||||
int cas_nvme_identify_ns(struct block_device *bdev, unsigned int nsid,
|
||||
struct nvme_id_ns *ns);
|
||||
|
||||
#if defined(CAS_NVME_FULL)
|
||||
|
||||
int cas_nvme_format_optimal(const char *device_path, int metadata_mode,
|
||||
int force);
|
||||
|
||||
#endif /* CAS_NVME_FULL */
|
||||
|
||||
#endif /* CAS_NVME_PARTIAL */
|
||||
|
||||
#endif /* UTILS_NVME_H_ */
|
Reference in New Issue
Block a user