> My PCI card has two ports. You know they should share the irq > and ISR in its RTLinux driver and just can use rtl_request_irq once. > Each port has diffirent kernel space for data to store. > now I want the ISR to know which port produced the interrupt. > so that the data can be put into the right space. > Also I can access both in one module. > orelse I just can access the fixed port use my driver. > I want to make it more general and useful. > > I have one idea that to justify each kernel buffer to see > if it is empty or not first. But I think it is a stupid method. > so does anyone have some creative idea? > well if the only thing the card does is issue an interrupt and fill a buffer you will be forced to look at that buffer to know who triggert the interrupt. depending on the data-buffer size to read it might be the simplest method of copying both data areas from the card. But to give you any resonable hint a bit more info on this hardware would help... shure the thing can't access more than one IRQ line ?? many multiport cards like multiport ethernet cards can assigne individual interrupts to the devices.
hofrat -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/