39 lines
776 B
C
39 lines
776 B
C
/*
|
|
* 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_ */
|