- Timestamp:
- Nov 30, 2012 3:52:31 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82396
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/apic.h
r38959 r44004 32 32 33 33 #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) 36 36 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 */ 38 38 #define APIC_REG_LVT_LINT0 0x0350 39 39 #define APIC_REG_LVT_LINT1 0x0360 … … 41 41 #define APIC_REG_LVT_PC 0x0340 42 42 #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_FIXED045 #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_POLARIYRT_BIT(13)48 #define APIC_REG_LVT_REMOTE_IRRRT_BIT(14)49 #define APIC_REG_LVT_LEVEL_TRIGGERRT_BIT(15)50 #define APIC_REG_LVT_MASKEDRT_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) 51 51 52 52 DECLINLINE(uint32_t) ApicRegRead(void *pvBase, uint32_t offReg) … … 55 55 } 56 56 57 #endif 57 #endif /* ___VBox_apic_h */ 58 58 -
trunk/src/VBox/Devices/PC/DevApic.h
r42526 r44004 67 67 #define APIC_TRIGGER_LEVEL 1 68 68 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) 75 75 76 #endif 76 #endif /* ___PC_DevApic_h */ 77 77
Note:
See TracChangeset
for help on using the changeset viewer.