[ECOS] PCI on i386 PC.
Fabrice Gautier
Fabrice_Gautier@sdesigns.com
Tue Oct 3 14:23:00 GMT 2000
Hi,
On my first implementation of PCI for i386 I didn't have implemented the
CYG_HAL_INTERRUPT_TRANSLATE macro.
So now I have this implementation:
#define HAL_PCI_TRANSLATE_INTERRUPT( __bus, __devfn, __vec, __valid) \
CYG_MACRO_START \
HAL_PCI_CFG_READ_UINT8((__bus),(__devfn),CYG_PCI_CFG_INT_LINE,(__vec)); \
if(__vec<=15) __valid=1; \
else __valid=0; \
__vec+=PC_HARDWARE_IRQ_OFFSET; \
CYG_MACRO_END
Does it looks good ?
(except that 15, in "__vec<=15", should be replaced by a macro)
Thanks
--
Fabrice Gautier
fabrice_gautier@sdesigns.com
More information about the Ecos-discuss
mailing list