Deleted Added
full compact
nvme.h (256281) nvme.h (291214)
1/*-
2 * Copyright (C) 2012-2013 Intel Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (C) 2012-2013 Intel Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/10/sys/dev/nvme/nvme.h 256152 2013-10-08 15:47:22Z jimharris $
26 * $FreeBSD: stable/10/sys/dev/nvme/nvme.h 291214 2015-11-23 17:27:29Z jimharris $
27 */
28
29#ifndef __NVME_H__
30#define __NVME_H__
31
32#ifdef _KERNEL
33#include <sys/types.h>
34#endif

--- 830 unchanged lines hidden (view full) ---

865uint32_t nvme_ns_get_sector_size(struct nvme_namespace *ns);
866uint64_t nvme_ns_get_num_sectors(struct nvme_namespace *ns);
867uint64_t nvme_ns_get_size(struct nvme_namespace *ns);
868uint32_t nvme_ns_get_flags(struct nvme_namespace *ns);
869const char * nvme_ns_get_serial_number(struct nvme_namespace *ns);
870const char * nvme_ns_get_model_number(struct nvme_namespace *ns);
871const struct nvme_namespace_data *
872 nvme_ns_get_data(struct nvme_namespace *ns);
27 */
28
29#ifndef __NVME_H__
30#define __NVME_H__
31
32#ifdef _KERNEL
33#include <sys/types.h>
34#endif

--- 830 unchanged lines hidden (view full) ---

865uint32_t nvme_ns_get_sector_size(struct nvme_namespace *ns);
866uint64_t nvme_ns_get_num_sectors(struct nvme_namespace *ns);
867uint64_t nvme_ns_get_size(struct nvme_namespace *ns);
868uint32_t nvme_ns_get_flags(struct nvme_namespace *ns);
869const char * nvme_ns_get_serial_number(struct nvme_namespace *ns);
870const char * nvme_ns_get_model_number(struct nvme_namespace *ns);
871const struct nvme_namespace_data *
872 nvme_ns_get_data(struct nvme_namespace *ns);
873uint32_t nvme_ns_get_stripesize(struct nvme_namespace *ns);
873
874int nvme_ns_bio_process(struct nvme_namespace *ns, struct bio *bp,
875 nvme_cb_fn_t cb_fn);
876
877#endif /* _KERNEL */
878
879#endif /* __NVME_H__ */
874
875int nvme_ns_bio_process(struct nvme_namespace *ns, struct bio *bp,
876 nvme_cb_fn_t cb_fn);
877
878#endif /* _KERNEL */
879
880#endif /* __NVME_H__ */