]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: endian swap mmio access
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Oct 2016 15:01:16 +0000 (17:01 +0200)
committerKeith Busch <keith.busch@intel.com>
Wed, 26 Oct 2016 15:52:15 +0000 (11:52 -0400)
commit1449c7af865016d56f8b31b4881e3f19e7f1afd3
treebc590acd4bd5f0bbd37005e2772241c7ad7e8b17
parent9a1fced30a87d5893883209bdb3e6e0d392eba03
nvme-cli: endian swap mmio access

PCIe is always defined as little endian, so swap the data read from the
register to native endian.

Use the opportunity to also apply the no 64-bit access workaround to
all of the register accesses and not just some and dump struct nvme_reg.

Signed-off-by: Christoph Hellwig <hch@lst.de>
nvme.c
nvme.h