search for: pci_rom_address_mask

Displaying 2 results from an estimated 2 matches for "pci_rom_address_mask".

2008 Sep 27
3
[PATCH 1/6 v3] PCI: export some functions and macros
...254,11 @@ static int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, if (l == 0xffffffff) l = 0; - if (type == pci_bar_unknown) { + if (type == pci_bar_rom) { + res->flags |= (l & IORESOURCE_ROM_ENABLE); + l &= PCI_ROM_ADDRESS_MASK; + mask = (u32)PCI_ROM_ADDRESS_MASK; + } else { type = decode_bar(res, l); res->flags |= pci_calc_resource_flags(l) | IORESOURCE_SIZEALIGN; if (type == pci_bar_io) { @@ -268,10 +268,6 @@ static int __pci_read_base(struct pci_dev...
2008 Sep 27
3
[PATCH 1/6 v3] PCI: export some functions and macros
...254,11 @@ static int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, if (l == 0xffffffff) l = 0; - if (type == pci_bar_unknown) { + if (type == pci_bar_rom) { + res->flags |= (l & IORESOURCE_ROM_ENABLE); + l &= PCI_ROM_ADDRESS_MASK; + mask = (u32)PCI_ROM_ADDRESS_MASK; + } else { type = decode_bar(res, l); res->flags |= pci_calc_resource_flags(l) | IORESOURCE_SIZEALIGN; if (type == pci_bar_io) { @@ -268,10 +268,6 @@ static int __pci_read_base(struct pci_dev...