diff options
author | swapnili <swapnil.ingle@nutanix.com> | 2020-11-25 17:35:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 17:35:50 +0100 |
commit | 384c1c80d4ddc397684704c85441183bfecd5d13 (patch) | |
tree | df6813560772779fe1cbb14aaaae3e507348e484 /samples/client.c | |
parent | adc65938c8771172b80d6d523f7b1608ba3f8d46 (diff) | |
download | libvfio-user-384c1c80d4ddc397684704c85441183bfecd5d13.zip libvfio-user-384c1c80d4ddc397684704c85441183bfecd5d13.tar.gz libvfio-user-384c1c80d4ddc397684704c85441183bfecd5d13.tar.bz2 |
PCI regions idx enum renamed to start with LM_PCI (#125)
* PCI regions idx enum renamed to start with LM_PCI
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'samples/client.c')
-rw-r--r-- | samples/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/client.c b/samples/client.c index fa8e040..4845c39 100644 --- a/samples/client.c +++ b/samples/client.c @@ -490,14 +490,14 @@ access_bar0(int sock, int irq_fd, time_t *t) assert(t != NULL); - ret = access_region(sock, LM_DEV_BAR0_REG_IDX, true, 0, t, sizeof *t); + ret = access_region(sock, LM_PCI_DEV_BAR0_REGION_IDX, true, 0, t, sizeof *t); if (ret < 0) { errx(EXIT_FAILURE, "failed to write to BAR0: %s", strerror(-ret)); } printf("wrote to BAR0: %ld\n", *t); - ret = access_region(sock, LM_DEV_BAR0_REG_IDX, false, 0, t, sizeof *t); + ret = access_region(sock, LM_PCI_DEV_BAR0_REGION_IDX, false, 0, t, sizeof *t); if (ret < 0) { errx(EXIT_FAILURE, "failed to read from BAR0: %s", strerror(-ret)); } @@ -956,7 +956,7 @@ int main(int argc, char *argv[]) errx(EXIT_FAILURE, "could not find migration region"); } - ret = access_region(sock, LM_DEV_CFG_REG_IDX, false, 0, &config_space, + ret = access_region(sock, LM_PCI_DEV_CFG_REGION_IDX, false, 0, &config_space, sizeof config_space); if (ret < 0) { errx(EXIT_FAILURE, "failed to read PCI configuration space: %s\n", @@ -1064,7 +1064,7 @@ int main(int argc, char *argv[]) * TODO make this value a command line option. */ t = time(NULL) + 2; - ret = access_region(sock, LM_DEV_BAR0_REG_IDX, true, 0, &t, sizeof t); + ret = access_region(sock, LM_PCI_DEV_BAR0_REGION_IDX, true, 0, &t, sizeof t); if (ret < 0) { errx(EXIT_FAILURE, "failed to write to BAR0: %s", strerror(-ret)); } |