nvme.h (38dabe210fbab4e7e8a03670ab3ba42f247ea08f) nvme.h (ad22c355b707a8d8d48e282aadc01c0b0604b2e9)
1/*
2 * Copyright (c) 2011-2014, Intel Corporation.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

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

157 u32 page_size;
158 u32 max_hw_sectors;
159 u16 oncs;
160 u16 vid;
161 u16 oacs;
162 u16 nssa;
163 u16 nr_streams;
164 atomic_t abort_limit;
1/*
2 * Copyright (c) 2011-2014, Intel Corporation.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

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

157 u32 page_size;
158 u32 max_hw_sectors;
159 u16 oncs;
160 u16 vid;
161 u16 oacs;
162 u16 nssa;
163 u16 nr_streams;
164 atomic_t abort_limit;
165 u8 event_limit;
166 u8 vwc;
167 u32 vs;
168 u32 sgls;
169 u16 kas;
170 u8 npss;
171 u8 apsta;
172 unsigned int shutdown_timeout;
173 unsigned int kato;

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

232 struct module *module;
233 unsigned int flags;
234#define NVME_F_FABRICS (1 << 0)
235#define NVME_F_METADATA_SUPPORTED (1 << 1)
236 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
237 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
238 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
239 void (*free_ctrl)(struct nvme_ctrl *ctrl);
165 u8 vwc;
166 u32 vs;
167 u32 sgls;
168 u16 kas;
169 u8 npss;
170 u8 apsta;
171 unsigned int shutdown_timeout;
172 unsigned int kato;

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

231 struct module *module;
232 unsigned int flags;
233#define NVME_F_FABRICS (1 << 0)
234#define NVME_F_METADATA_SUPPORTED (1 << 1)
235 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
236 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
237 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
238 void (*free_ctrl)(struct nvme_ctrl *ctrl);
240 void (*submit_async_event)(struct nvme_ctrl *ctrl, int aer_idx);
239 void (*submit_async_event)(struct nvme_ctrl *ctrl);
241 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
242 int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
243 int (*reinit_request)(void *data, struct request *rq);
244};
245
246static inline bool nvme_ctrl_ready(struct nvme_ctrl *ctrl)
247{
248 u32 val = 0;

--- 132 unchanged lines hidden ---
240 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
241 int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
242 int (*reinit_request)(void *data, struct request *rq);
243};
244
245static inline bool nvme_ctrl_ready(struct nvme_ctrl *ctrl)
246{
247 u32 val = 0;

--- 132 unchanged lines hidden ---