]> xenbits.xensource.com Git - seabios.git/commit
nvme: Allow to set PRP2
authorAlexander Graf <graf@amazon.com>
Wed, 30 Sep 2020 21:10:54 +0000 (23:10 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 28 Oct 2020 19:18:29 +0000 (15:18 -0400)
commit23258d39ffee2bdd975a80058899caab3e4ed304
tree43241b300681c53648d0826d869f8a7588bfa97e
parentb68f313c9139e480a9f5a0d1b5aa6f294b86d982
nvme: Allow to set PRP2

When creating a PRP based I/O request, we pass in the pointer to operate
on. Going forward, we will want to be able to pass additional pointers
though for mappings above 4k.

This patch adds a parameter to nvme_get_next_sqe() to pass in the PRP2
value of an NVMe I/O request, paving the way for a future patch to
implement PRP lists.

Signed-off-by: Alexander Graf <graf@amazon.com>
Reviewed-by: Filippo Sironi <sironi@amazon.de>
src/hw/nvme.c