* removing direct use of PCI_ROM_ADDRESS_ENABLE
@ 2005-03-17 16:01 Jon Smirl
0 siblings, 0 replies; only message in thread
From: Jon Smirl @ 2005-03-17 16:01 UTC (permalink / raw)
To: fbdev
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);
--
Jon Smirl
jonsmirl@gmail.com
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-17 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17 16:01 removing direct use of PCI_ROM_ADDRESS_ENABLE Jon Smirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).