/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/ioctl.c

  • Committer: Suren A. Chilingaryan
  • Date: 2016-05-13 23:10:33 UTC
  • Revision ID: csa@suren.me-20160513231033-deh0biipgpln877s
Allow mapping of arbitrary memory areas

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 */
55
55
static int ioctl_mmap_mode(pcidriver_privdata_t *privdata, unsigned long arg)
56
56
{
57
 
    if ((arg != PCIDRIVER_MMAP_PCI) && (arg != PCIDRIVER_MMAP_KMEM))
 
57
    if ((arg != PCIDRIVER_MMAP_PCI) && (arg != PCIDRIVER_MMAP_KMEM) && (arg != PCIDRIVER_MMAP_AREA))
58
58
        return -EINVAL;
59
59
 
60
60
    /* change the mode */