Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    #include <sys/ioctl.h>
    ...
        close(fd);
        exit(1);
    }
    
  2. or download this
    #define PCIMAX_IOC_NUM 'O'
    #define PCICARD_SET_REGISTER _IOR(PCICARD_IOC_NUM, 1, u8 *)
    #define PCICARD_GET_REGISTER _IOW(PCICARD_IOC_NUM, 2, u8 *)
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    open(PCI, '+</dev/pcimax');
    ioctl(PCI, &PCICARD_SET_REGISTER, \$value);
    close(PCI);