This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: Reset a PCI device?
Jifl,
This is with respect to the relatively new port to the MIPS IDT79S334A
eval board. I suspect you are correct, that this could/should go into
the HAL_PCI_INIT code.
This problem should only come about when downloading the redboot_RAM
image through the IDT bootloader. In this case the device appears to be
CYG_PCI_CFG_COMMAND_ACTIVE (even though eCos has not yet configured it)
and so eCos skips some configuration, or uses the existing settings.
This is bad.
I'm not sure we'll have a need, but if I put together a more appropriate
patch I will happily pass it along.
Scott
On Fri, 2003-04-25 at 12:40, Jonathan Larmour wrote:
> Scott Wilkinson wrote:
> > Indeed my problem was that the device was already initialized. I solved
> > it by forcing COMMAND_ACTIVE to be false by clearing the PCI Command
> > register before calling cyg_pci_get_device_info(). Probably there is a
> > cleaner way to do this, and I welcome suggestions.
>
> I'd guess since it's a platform specific problem the cleaner approach is
> to do it in your HAL_PCI_INIT code in plf_io.h. If this is a public board
> we'd love a patch :-).
>
> Jifl
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss