/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/pci.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-11-19 02:19:51 UTC
  • Revision ID: csa@suren.me-20151119021951-00bae7ma1vqy561h
Support setting payload size

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
 
484
484
    return 0;
485
485
}
 
486
 
 
487
int pcilib_set_mps(pcilib_t *ctx, int mps) {
 
488
    if (ioctl(ctx->handle, PCIDRIVER_IOC_MPS, mps) < 0)
 
489
        return PCILIB_ERROR_FAILED;
 
490
 
 
491
    return 0;
 
492
}