nvme.h (dcef77274ae52136925287b6b59d5c6e6a4adfb9) nvme.h (db45e1a5ddccc034eb60d62fc5352022d7963ae2)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2011-2014, Intel Corporation.
4 */
5
6#ifndef _NVME_H
7#define _NVME_H
8

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

507}
508
509struct nvme_ctrl_ops {
510 const char *name;
511 struct module *module;
512 unsigned int flags;
513#define NVME_F_FABRICS (1 << 0)
514#define NVME_F_METADATA_SUPPORTED (1 << 1)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2011-2014, Intel Corporation.
4 */
5
6#ifndef _NVME_H
7#define _NVME_H
8

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

507}
508
509struct nvme_ctrl_ops {
510 const char *name;
511 struct module *module;
512 unsigned int flags;
513#define NVME_F_FABRICS (1 << 0)
514#define NVME_F_METADATA_SUPPORTED (1 << 1)
515#define NVME_F_BLOCKING (1 << 2)
516
515 const struct attribute_group **dev_attr_groups;
516 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
517 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
518 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
519 void (*free_ctrl)(struct nvme_ctrl *ctrl);
520 void (*submit_async_event)(struct nvme_ctrl *ctrl);
521 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
522 void (*stop_ctrl)(struct nvme_ctrl *ctrl);

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

737int nvme_enable_ctrl(struct nvme_ctrl *ctrl);
738int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
739 const struct nvme_ctrl_ops *ops, unsigned long quirks);
740void nvme_uninit_ctrl(struct nvme_ctrl *ctrl);
741void nvme_start_ctrl(struct nvme_ctrl *ctrl);
742void nvme_stop_ctrl(struct nvme_ctrl *ctrl);
743int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl, bool was_suspended);
744int nvme_alloc_admin_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
517 const struct attribute_group **dev_attr_groups;
518 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
519 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
520 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
521 void (*free_ctrl)(struct nvme_ctrl *ctrl);
522 void (*submit_async_event)(struct nvme_ctrl *ctrl);
523 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
524 void (*stop_ctrl)(struct nvme_ctrl *ctrl);

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

739int nvme_enable_ctrl(struct nvme_ctrl *ctrl);
740int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
741 const struct nvme_ctrl_ops *ops, unsigned long quirks);
742void nvme_uninit_ctrl(struct nvme_ctrl *ctrl);
743void nvme_start_ctrl(struct nvme_ctrl *ctrl);
744void nvme_stop_ctrl(struct nvme_ctrl *ctrl);
745int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl, bool was_suspended);
746int nvme_alloc_admin_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
745 const struct blk_mq_ops *ops, unsigned int flags,
746 unsigned int cmd_size);
747 const struct blk_mq_ops *ops, unsigned int cmd_size);
747void nvme_remove_admin_tag_set(struct nvme_ctrl *ctrl);
748int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
748void nvme_remove_admin_tag_set(struct nvme_ctrl *ctrl);
749int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
749 const struct blk_mq_ops *ops, unsigned int flags,
750 unsigned int nr_maps, unsigned int cmd_size);
750 const struct blk_mq_ops *ops, unsigned int nr_maps,
751 unsigned int cmd_size);
751void nvme_remove_io_tag_set(struct nvme_ctrl *ctrl);
752
753void nvme_remove_namespaces(struct nvme_ctrl *ctrl);
754
755void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
756 volatile union nvme_result *res);
757
758void nvme_quiesce_io_queues(struct nvme_ctrl *ctrl);

--- 345 unchanged lines hidden ---
752void nvme_remove_io_tag_set(struct nvme_ctrl *ctrl);
753
754void nvme_remove_namespaces(struct nvme_ctrl *ctrl);
755
756void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
757 volatile union nvme_result *res);
758
759void nvme_quiesce_io_queues(struct nvme_ctrl *ctrl);

--- 345 unchanged lines hidden ---