From 6191a86bf2de5413cc9100e1450b541e5dfcb8f9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 19 Nov 2015 03:19:51 +0100 Subject: Support setting payload size --- pcilib/pci.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pcilib/pci.c') diff --git a/pcilib/pci.c b/pcilib/pci.c index 26dfdbf..eaf41ac 100644 --- a/pcilib/pci.c +++ b/pcilib/pci.c @@ -483,3 +483,10 @@ int pcilib_set_dma_mask(pcilib_t *ctx, int mask) { return 0; } + +int pcilib_set_mps(pcilib_t *ctx, int mps) { + if (ioctl(ctx->handle, PCIDRIVER_IOC_MPS, mps) < 0) + return PCILIB_ERROR_FAILED; + + return 0; +} -- cgit v1.2.3