VirtualBox

Changeset 61573 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 8, 2016 12:33:48 PM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Added macro for getting LVT remote IRR and polarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/APICInternal.h

    r61150 r61573  
    161161/** LVT - Remote IRR. */
    162162#define XAPIC_LVT_REMOTE_IRR                 RT_BIT(14)
     163/** LVT - Gets the Remote IRR. */
     164#define XAPIC_LVT_GET_REMOTE_IRR(a_Lvt)      (((a_Lvt) >> 14) & 1)
    163165/** LVT - Interrupt Input Pin Polarity. */
    164 #define XAPIC_LVT_INTR_INPUT_PIN_POLARITY    RT_BIT(13)
     166#define XAPIC_LVT_POLARITY                   RT_BIT(13)
     167/** LVT - Gets the Interrupt Input Pin Polarity. */
     168#define XAPIC_LVT_GET_POLARITY(a_Lvt)        (((a_Lvt) >> 13) & 1)
    165169/** LVT - Valid bits common to all LVTs. */
    166170#define XAPIC_LVT_COMMON_VALID               (XAPIC_LVT_VECTOR | XAPIC_LVT_DELIVERY_STATUS | XAPIC_LVT_MASK)
     
    175179/** LVT LINTx - Valid bits. */
    176180#define XAPIC_LVT_LINT_VALID                 (  XAPIC_LVT_COMMON_VALID | XAPIC_LVT_DELIVERY_MODE | XAPIC_LVT_DELIVERY_STATUS \
    177                                               | XAPIC_LVT_INTR_INPUT_PIN_POLARITY | XAPIC_LVT_REMOTE_IRR | XAPIC_LVT_TRIGGER_MODE)
     181                                              | XAPIC_LVT_POLARITY | XAPIC_LVT_REMOTE_IRR | XAPIC_LVT_TRIGGER_MODE)
    178182/** LVT Error - Valid bits. */
    179183#define XAPIC_LVT_ERROR_VALID                (XAPIC_LVT_COMMON_VALID)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette