mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
hv:Unify the MACRO name for invalid interrupt pin
There are the following definitions in hypervisor, define IOAPIC_INVALID_PIN 0xffU define VPIC_INVALID_PIN 0xffU define PTDEV_INVALID_PIN 0xffU this patch unify them to: define INVALID_INTERRUPT_PIN 0xffffffffU Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
7725fe3b50
commit
1fc10d514c
@@ -903,7 +903,6 @@ static int32_t shell_show_cpu_int(__unused int32_t argc, __unused char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define PTDEV_INVALID_PIN 0xffU
|
||||
static void get_entry_info(const struct ptirq_remapping_info *entry, char *type,
|
||||
uint32_t *irq, uint32_t *vector, uint64_t *dest, bool *lvl_tm,
|
||||
uint32_t *pin, uint32_t *vpin, uint32_t *bdf, uint32_t *vbdf)
|
||||
@@ -917,8 +916,8 @@ static void get_entry_info(const struct ptirq_remapping_info *entry, char *type,
|
||||
} else {
|
||||
*lvl_tm = false;
|
||||
}
|
||||
*pin = PTDEV_INVALID_PIN;
|
||||
*vpin = PTDEV_INVALID_PIN;
|
||||
*pin = INVALID_INTERRUPT_PIN;
|
||||
*vpin = INVALID_INTERRUPT_PIN;
|
||||
*bdf = entry->phys_sid.msi_id.bdf;
|
||||
*vbdf = entry->virt_sid.msi_id.bdf;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user