View | Details | Raw Unified | Return to bug 23216
Collapse All | Expand All

(-)pci.c 2000/12/01 22:04:29 (-4 / +6 lines)
Lines 552-561 Link Here
552
       const char *name;
552
       const char *name;
553
       int error;
553
       int error;
554
554
555
       if (!(flag & FWRITE))
556
               return EPERM;
557
558
559
       switch(cmd) {
555
       switch(cmd) {
560
       case PCIOCGETCONF:
556
       case PCIOCGETCONF:
561
               {
557
               {
Lines 787-792 Link Here
787
               break;
783
               break;
788
               }
784
               }
789
       case PCIOCREAD:
785
       case PCIOCREAD:
786
               if (!(flag & FWRITE))
787
                       return EPERM;
788
790
               io = (struct pci_io *)data;
789
               io = (struct pci_io *)data;
791
               switch(io->pi_width) {
790
               switch(io->pi_width) {
792
                       pcicfgregs probe;
791
                       pcicfgregs probe;
Lines 808-813 Link Here
808
               break;
807
               break;
809
808
810
       case PCIOCWRITE:
809
       case PCIOCWRITE:
810
               if (!(flag & FWRITE))
811
                       return EPERM;
812
811
               io = (struct pci_io *)data;
813
               io = (struct pci_io *)data;
812
               switch(io->pi_width) {
814
               switch(io->pi_width) {
813
                       pcicfgregs probe;
815
                       pcicfgregs probe;

Return to bug 23216