mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-10 13:19:31 +00:00
hv: passthrough: Change interrupt pin to uint32_t
-- Change the type from uint8_t to uint32_t -- Remove some typecast -- Change union source_id Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
87afe65f86
commit
49166fc3ac
@@ -246,30 +246,24 @@ struct hc_ptdev_irq {
|
||||
/** physical BDF of the ptdev */
|
||||
uint16_t phys_bdf;
|
||||
|
||||
union {
|
||||
union irq_source {
|
||||
/** INTX remapping info */
|
||||
struct {
|
||||
struct intx_info {
|
||||
/** virtual IOAPIC/PIC pin */
|
||||
uint8_t virt_pin;
|
||||
|
||||
/** Reserved */
|
||||
uint32_t reserved0:24;
|
||||
uint32_t virt_pin;
|
||||
|
||||
/** physical IOAPIC pin */
|
||||
uint8_t phys_pin;
|
||||
|
||||
/** Reserved */
|
||||
uint32_t reserved1:24;
|
||||
uint32_t phys_pin;
|
||||
|
||||
/** is virtual pin from PIC */
|
||||
bool pic_pin;
|
||||
|
||||
/** Reserved */
|
||||
uint32_t reserved2:24;
|
||||
uint8_t reserved[3];
|
||||
} intx;
|
||||
|
||||
/** MSIx remapping info */
|
||||
struct {
|
||||
struct msix_info {
|
||||
/** vector count of MSI/MSIX */
|
||||
uint32_t vector_cnt;
|
||||
} msix;
|
||||
|
Reference in New Issue
Block a user