This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: Reset a PCI device?
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Scott Wilkinson <scott at alliantnetworks dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 25 Apr 2003 20:40:59 +0100
- Subject: Re: [ECOS] Re: Reset a PCI device?
- References: <1051233144.9719.166.camel@localhost.localdomain>
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
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss