nvme: use offset instead of a struct for registers
BugLink: http://bugs.launchpad.net/bugs/1531539 This makes life easier for future non-PCI drivers where access to the registers might be more complicated. Note that Linux drivers are pretty evenly split between the two versions, and in fact the NVMe driver already uses offsets for the doorbells. Signed-off-by:Christoph Hellwig <hch@lst.de> Acked-by:
Keith Busch <keith.busch@intel.com> [Fixed CMBSZ offset] Signed-off-by:
Keith Busch <keith.busch@intel.com> Signed-off-by:
Jens Axboe <axboe@fb.com> (back ported from commit 7a67cbea) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com> Conflicts: drivers/nvme/host/pci.c
Showing
Please register or sign in to comment