pci: add accessor function to get irq levels
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 1 Apr 2011 11:43:21 +0000 (20:43 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Apr 2011 12:53:56 +0000 (15:53 +0300)
commit1dfef28b12d5a13df21fed728112e507d175c31b
treea5b9c36b2cde5913c6a215bb28c2925ed47eb8a2
parent7a739a22431c59576308ba8173656f7dff3013c7
pci: add accessor function to get irq levels

Introduce accessor function to know INTx levels.
It will be used later by q35.
Although piix_pci tracks the intx line levels, it can be eliminated
by this helper function.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c
hw/pci.h