/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2016 Nexenta Systems, Inc. All rights reserved.
* Copyright 2016 The MathWorks, Inc. All rights reserved.
*/
#ifndef _NVME_VAR_H
#define _NVME_VAR_H
#include <sys/taskq_impl.h>
/*
* NVMe driver state
*/
#ifdef __cplusplus
/* extern "C" { */
#endif
struct nvme_dma {
};
struct nvme_cmd {
void (*nc_callback)(void *);
};
struct nvme_qpair {
int nq_phase;
};
struct nvme {
int n_progress;
int n_intr_cnt;
int n_intr_cap;
int n_intr_type;
int n_intr_types;
char *n_product;
char *n_vendor;
int n_error_log_len;
int n_nssr_supported;
int n_doorbell_stride;
int n_timeout;
int n_cont_queues_reqd;
int n_max_queue_entries;
int n_pageshift;
int n_pagesize;
int n_namespace_count;
int n_ioq_count;
int n_fm_cap;
/* errors detected by driver */
/* errors detected by hardware */
/* errors reported by asynchronous events */
};
struct nvme_namespace {
/*
* If a namespace has no EUI64, we create a devid in
* nvme_prepare_devid().
*/
char *ns_devid;
};
struct nvme_task_arg {
};
#ifdef __cplusplus
/* } */
#endif
#endif /* _NVME_VAR_H */