Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PCI Bridge Enumeration



Hello,

I am working on porting a driver (pci devices) to macosx and I have some
questions about interrupts. I am planning on using the
IOFilterInterruptEventSource mechanism so I can determine if the interrupt
belongs to our device and then fire off a secondary if it is. My first
question is concerning the intIndex of filterInterruptEventSource. I know
the documentation says this is meant to allow you to select the "type of
interrupt" - does that mean the irq line? I thought pci devices only had
one line for interrupts? My second question is related to my first - in
our primary we not only determine if it is our device, but we determine
what caused the interrupt (the type of interrupt filterInterruptEventSource
was referring to?) to determine if we want to fire off the secondary. Well
since we have done all that work, we would like to pass some bit of
information from the primary to the secondary. Unfortunately, I have found
no safe way to do this with what macosx provides us (we do this on windows
and linux). Is there anyway to pass information out of the primary safely?

I am hoping that you will tell me that the type of interrupt parameter to
filterInterruptEventSource is not the line, but instead macosx has already
abstracted away the work of determing the kind of interrupt fired (but i
don't believe this since i was under the impression that this was device
specific). Then if that is the case, my second question becomes irrelevant
since the secondary would be interrupt specific and i wouldn't need to do
any other work. But i am guessing not since if the os isn't smart enough
to know which device is interrupting (the whole point of
IOFilterInterruptEventSource) if it shares the same line as other devices -
I don't believe it is smart enough to know the type of interrupt.

Anyway, if anyone has a better grasp of how macosx handles interrupts and
pci devices, it would be much appreciated. Thanks.

Aaron
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.