Subversion Repositories Kolibri OS

Rev

Rev 3031 | Rev 5354 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3031 Rev 4280
Line 781... Line 781...
781
                        *size = pci_resource_len(pdev, PCI_ROM_RESOURCE);
781
                        *size = pci_resource_len(pdev, PCI_ROM_RESOURCE);
782
                        return (void __iomem *)(unsigned long)
782
                        return (void __iomem *)(unsigned long)
783
                                pci_resource_start(pdev, PCI_ROM_RESOURCE);
783
                                pci_resource_start(pdev, PCI_ROM_RESOURCE);
784
                } else {
784
                } else {
785
                        /* assign the ROM an address if it doesn't have one */
785
    				start = (loff_t)0xC0000;
786
//                        if (res->parent == NULL &&
-
 
787
//                            pci_assign_resource(pdev,PCI_ROM_RESOURCE))
-
 
788
                                return NULL;
-
 
789
//                        start = pci_resource_start(pdev, PCI_ROM_RESOURCE);
-
 
790
//                        *size = pci_resource_len(pdev, PCI_ROM_RESOURCE);
-
 
791
//                        if (*size == 0)
-
 
792
//                                return NULL;
786
    				*size = 0x20000; /* cover C000:0 through E000:0 */
793
 
787
 
Line 794... Line -...
794
                        /* Enable ROM space decodes */
-
 
795
//                        if (pci_enable_rom(pdev))
-
 
796
//                                return NULL;
-
 
797
                }
788
                }
798
        }
789
        }
Line 799... Line 790...
799
 
790
 
800
        rom = ioremap(start, *size);
791
        rom = ioremap(start, *size);