]> git.proxmox.com Git - qemu.git/commit
hw/9118.c: Implement active-low interrupt support
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 26 May 2011 16:34:11 +0000 (17:34 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Wed, 15 Jun 2011 11:23:37 +0000 (13:23 +0200)
commiteb47d7c5d96060040931c42773ee07e61e547af9
treed9b5fd796bf72241d3c1271b90814ca152981cfc
parent953ffe0f935f40c0d6061d69e76e0339393b54f8
hw/9118.c: Implement active-low interrupt support

The 9118 ethernet controller interrupt line is active low unless
the IRQ config register is programmed to set both the IRQ_POL
(polarity: active-high) and IRQ_TYPE (type: push-pull) bits:
implement support for inverting the irq output in other configurations.
This also requires that we support setting the bits in the first
place, and that we correctly preserve them across software reset.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/lan9118.c