VirtualBox

Changeset 44004 in vbox for trunk


Ignore:
Timestamp:
Nov 30, 2012 3:52:31 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82396
Message:

APIC: spaces, nits.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/apic.h

    r38959 r44004  
    3232
    3333#define APIC_REG_VERSION                        0x0030
    34 #define   APIC_REG_VERSION_GET_VER(u32)         (u32 & 0xff)
    35 #define   APIC_REG_VERSION_GET_MAX_LVT(u32)     ((u32 & 0xff0000) >> 16)
     34#define APIC_REG_VERSION_GET_VER(u32)           (u32 & 0xff)
     35#define APIC_REG_VERSION_GET_MAX_LVT(u32)       ((u32 & 0xff0000) >> 16)
    3636
    37 /* defines according to Figure 10-8 of the Intel Software Developers Manual Vol 3A */
     37/* Defines according to Figure 10-8 of the Intel Software Developers Manual Vol 3A */
    3838#define APIC_REG_LVT_LINT0                      0x0350
    3939#define APIC_REG_LVT_LINT1                      0x0360
     
    4141#define APIC_REG_LVT_PC                         0x0340
    4242#define APIC_REG_LVT_THMR                       0x0330
    43 #define   APIC_REG_LVT_MODE_MASK                (RT_BIT(8)|RT_BIT(9)|RT_BIT(10))
    44 #define   APIC_REG_LVT_MODE_FIXED               0
    45 #define   APIC_REG_LVT_MODE_NMI                 (RT_BIT(10))
    46 #define   APIC_REG_LVT_MODE_EXTINT              (RT_BIT(8)|RT_BIT(9)|RT_BIT(10))
    47 #define   APIC_REG_LVT_PIN_POLARIY              RT_BIT(13)
    48 #define   APIC_REG_LVT_REMOTE_IRR               RT_BIT(14)
    49 #define   APIC_REG_LVT_LEVEL_TRIGGER            RT_BIT(15)
    50 #define   APIC_REG_LVT_MASKED                   RT_BIT(16)
     43#define APIC_REG_LVT_MODE_MASK                  (RT_BIT(8) | RT_BIT(9) | RT_BIT(10))
     44#define APIC_REG_LVT_MODE_FIXED                 0
     45#define APIC_REG_LVT_MODE_NMI                   RT_BIT(10)
     46#define APIC_REG_LVT_MODE_EXTINT                (RT_BIT(8) | RT_BIT(9) | RT_BIT(10))
     47#define APIC_REG_LVT_PIN_POLARIY                RT_BIT(13)
     48#define APIC_REG_LVT_REMOTE_IRR                 RT_BIT(14)
     49#define APIC_REG_LVT_LEVEL_TRIGGER              RT_BIT(15)
     50#define APIC_REG_LVT_MASKED                     RT_BIT(16)
    5151
    5252DECLINLINE(uint32_t) ApicRegRead(void *pvBase, uint32_t offReg)
     
    5555}
    5656
    57 #endif
     57#endif /* ___VBox_apic_h */
    5858
  • trunk/src/VBox/Devices/PC/DevApic.h

    r42526 r44004  
    6767#define APIC_TRIGGER_LEVEL 1
    6868
    69 #define APIC_LVT_TIMER_PERIODIC         (1<<17)
    70 #define APIC_LVT_MASKED                 (1<<16)
    71 #define APIC_LVT_LEVEL_TRIGGER          (1<<15)
    72 #define APIC_LVT_REMOTE_IRR             (1<<14)
    73 #define APIC_INPUT_POLARITY             (1<<13)
    74 #define APIC_SEND_PENDING               (1<<12)
     69#define APIC_LVT_TIMER_PERIODIC         (1 << 17)
     70#define APIC_LVT_MASKED                 (1 << 16)
     71#define APIC_LVT_LEVEL_TRIGGER          (1 << 15)
     72#define APIC_LVT_REMOTE_IRR             (1 << 14)
     73#define APIC_INPUT_POLARITY             (1 << 13)
     74#define APIC_SEND_PENDING               (1 << 12)
    7575
    76 #endif
     76#endif /* ___PC_DevApic_h */
    7777
Note: See TracChangeset for help on using the changeset viewer.

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