ptdev: assert/deassert interrupt according to polarity

add active_polarity to decide what signal to call: GSI_SET_LOW, GSI_SET_HIGH,
GSI_FALLING_PULSE or GSI_RAISING_PULSE.

Tracked-On: #1269
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ
2018-09-28 15:20:02 +08:00
committed by Xie, Nanlin
parent e49233ba9b
commit 099203c15a
2 changed files with 37 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ struct ptdev_remapping_info {
struct vm *vm;
uint32_t active; /* 1=active, 0=inactive and to free*/
uint32_t allocated_pirq;
uint32_t polarity; /* 0=active high, 1=active low*/
struct list_head softirq_node;
struct list_head entry_node;
struct ptdev_msi_info msi;