How to map a PCI ROM address

Hi,

I have to map a PCI ROM address to the Kernel space and then do a read and write operation from that ROM.
In Linux there exists an API "pci_map_rom "to do the same. I want to know how it can be done in Win XP WDM driver.

Thanks ,
RAM

Look at MmMapIoSpace().

Larry C