It was a dark and stormy night. Suddenly "Matthew Clark" <matt@eee.nott.ac.uk> wrote:
> In my development system the PCI card I am developing the
> driver for reports (from the PCI config region) that it is using
> interrupt 5. I can't register this interrupt as it is already
> in use by the USB controller.
PCI interrupts can be shared, but every handler must be registered with the
SA_SHIRQ flag on the request_irq() call. Both the request_irq() and free_irq()
routines need a "dev_id" cookie to uniquely identify your instance of the
interrurpt handler.
You can see shared interrupts in "/proc/interrupts" because there will be a
comma-separated list of handler names for each IRQ level.
---------------------------------------------+-----------------------------
Tommy Reynolds | mailto: <reynolds@redhat.com>
Red Hat, Inc., Embedded Development Services | Phone: +1.256.704.9286
307 Wynn Drive NW, Huntsville, AL 35805 USA | FAX: +1.256.837.3839
Senior Software Developer | Mobile: +1.919.641.2923
--=._uw3o/W.pWi74r
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iEYEARECAAYFAjvn9cIACgkQWEn3bOOMcuoYFwCfQlwTBPW6BG9XTSISdA+pqMnD
FUgAnj4TGhaeRzaNQ7PMXJsSNZrjHHMK
=V9lM
-----END PGP SIGNATURE-----
--=._uw3o/W.pWi74r--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/