nvme: use offset instead of a struct for registers
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Nov 2015 07:58:10 +0000 (08:58 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 17:59:38 +0000 (10:59 -0700)
commit7a67cbea653e444d04d7e850ab9631a14a196422
treec0b7278210ef57355daf1090cc0a51225160bedc
parent21d34711e1b5970acfb22bddf1fefbfbd7e0123b
nvme: use offset instead of a struct for registers

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>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
drivers/nvme/host/scsi.c
include/linux/nvme.h