hw/pci-host/gpex: Set INTx index/gsi mapping
commit70bfdce6a1263fd06144ecc1c3727c44e562d89b
authorPranavkumar Sawargaonkar <pranavkumar@linaro.org>
Thu, 14 Sep 2017 17:43:18 +0000 (14 18:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Sep 2017 17:43:18 +0000 (14 18:43 +0100)
tree4afa57d3b7067ab9cea89e9e737d87b626752b2d
parent37e29a64254bf82a1901784fcca17c25f8164c2f
hw/pci-host/gpex: Set INTx index/gsi mapping

To implement INTx to gsi routing we need to pass the gpex host
bridge the gsi associated to each INTx index. Let's introduce
irq_num array and gpex_set_irq_num setter function.

Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Feng Kan <fkan@apm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 1505296004-6798-2-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/pci-host/gpex.c
include/hw/pci-host/gpex.h