Hi,

I have an EFI driver for a PCI device which works fine when BAR is 32-bit 
(below 4G), but on a setup with 64-bit BAR (above 4G BIOS option enabled) the 
Mem.Read and MEm.Write functions of EFI_PCI_IO_PROTOCOL fail with 
INVALID_PARAMETER error.

I tried to replace these functions with CopyMem() from/to the BAR memory 
address + offset, the read works fine but the write fails most of the times.

What should be replaced to support 64-bit BAR (above 4G)?
Do I need to use the Map() and Unmap() functions?

I will appreciate any help or link to any reference.

Thanks,
Miri

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to