Skip to contentSkip to conversation

removing direct use of PCI_ROM_ADDRESS_ENABLE

DISCUSSION Jon Smirl 1 participant 1 message Mar 17, 2005 Framebuffer layer

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

These drivers need to be fixed to use the new kernel ROM API. PCI_ROM_ADDRESS_ENABLE is going to get deprecated soon. See the new radeonfb for an example. You don't have to worry about shadow RAM copies, the ROM code will handle it for you.

video/console/sticore.c:
pci_write_config_dword(sti->pd, PCI_ROM_ADDRESS, rom_base & ~PCI_ROM_ADDRESS_ENABLE);
video/console/sticore.c: pci_write_config_dword(pd,
PCI_ROM_ADDRESS, rom_base | PCI_ROM_ADDRESS_ENABLE);

video/matrox/matroxfb_misc.c: pci_write_config_dword(pdev,
PCI_ROM_ADDRESS, (fbbase & PCI_ROM_ADDRESS_MASK) | PCI_ROM_ADDRESS_ENABLE);

video/sis/sis_main.c: (ivideo->video_base &
PCI_ROM_ADDRESS_MASK) | PCI_ROM_ADDRESS_ENABLE);

New routines:
/* ROM control related routines */
void __iomem *pci_map_rom(struct pci_dev *pdev, size_t *size); void __iomem *pci_map_rom_copy(struct pci_dev *pdev, size_t *size); void pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom); void pci_remove_rom(struct pci_dev *pdev);

Signature · 9 lines
Jon Smirl
[email protected]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click