[ECOS] A bug in eCos PCI library for NEC-VRC473...?
Ling Su
lingsu@palmmicro.com
Fri Sep 8 19:17:00 GMT 2000
Hello, Jifl,
ÃÂ
After hacking the eCos hal layer code, I guess following might be a bug in
the eCos PCI library, please check,
ÃÂ
In the /hal/mips/vrc4373/include/plf_io.h: #define
HAL_PCI_PHYSICAL_MEMORY_BASE 0xC000000
In the /hal/mips/vrc4373/src/platform.S:ÃÂ init 2ÃÂ PCI master
address windows registersÃÂ as 0x1c0fd01c and 0x80081080, which means (From
NEC 4373 manual page 37) only the second one is enabled and mapps CPU (virtual)
address 0x800xxxxx to PCI physical 0x800xxxxx. Is that correct? Then when I use
pci library to allocate PCI memory, it always maps to 0xC0xxxxxx. It won't be
decoded by VR4373, so the PCI canÃÂ not be accessed via the allocated
memory.
ÃÂ
I am not sure it is the problem, if you have time, please take a look,
thanks!
ÃÂ
Best Regards,
-Ling
ÃÂ
ÃÂ
More information about the Ecos-discuss
mailing list