[ECOS] Question about cyg_pci_translate_interrupt

David Brennan eCos@brennanhome.com
Sat Oct 9 03:46:00 GMT 2004


Ok. thanks for the info. My platform is i386-pc. I will modify the pci 
test program to scan all of the devices twice and check the results. If 
it is only my particular device that has the problem, I can live with 
that. I just wanted to make sure it wasn't a general problem first.

Mark Salter wrote:

>On Wed, 2004-10-06 at 22:29, David Brennan wrote:
>  
>
>>Is this function allowed to be called multiple times? I have a 
>>particular device for which the driver is broken into two modules. Each 
>>uses the standard pci probe and print logic from the pci1 test file. The 
>>interrupt routine gets attached by the second module. However, when I 
>>got the latest CVS, the device now reports to the second module that it 
>>does not generate interrupts. I assume the problem was introduced with 
>>this change 
>>(http://sources.redhat.com/ml/ecos-patches/2004-08/msg00080.html). And I 
>>can re-write my code (basically not check the interrupt vector in the 
>>first module) to work. But wanted to make sure that was a desired effect 
>>of the change. The problem may also be my specific device, in which case 
>>it make perfect sense for me to solve it on my end.
>>
>>    
>>
>There should be no problem in calling cyg_pci_translate_interrupt
>more than once. I tried it on a number of devices and it seems to
>work fine. You may be dealing with a device which modifies its
>interrupt pin register when the interrupt line register is written.
>I can't find anything in the standard which would support this
>behavior though. The actual translation is done by the HAL, so
>there may be issues with the particular HAL you are using. If a
>workaround is needed, it should be in that HAL code, not the drivers.
>
>--Mark
>
>
>
>  
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list