[HALAPIC] Rename a field for consistency

This commit is contained in:
Timo Kreuzer 2024-01-21 12:14:51 +02:00
parent c5f93c50dd
commit def2fe5dc3
2 changed files with 5 additions and 5 deletions

View file

@ -376,7 +376,7 @@ HalpAllocateSystemInterrupt(
/* Setup a redirection entry */
ReDirReg.Vector = Vector;
ReDirReg.DeliveryMode = APIC_MT_LowestPriority;
ReDirReg.MessageType = APIC_MT_LowestPriority;
ReDirReg.DestinationMode = APIC_DM_Logical;
ReDirReg.DeliveryStatus = 0;
ReDirReg.Polarity = 0;
@ -475,7 +475,7 @@ ApicInitializeIOApic(VOID)
/* Setup a redirection entry */
ReDirReg.Vector = APIC_FREE_VECTOR;
ReDirReg.DeliveryMode = APIC_MT_Fixed;
ReDirReg.MessageType = APIC_MT_Fixed;
ReDirReg.DestinationMode = APIC_DM_Physical;
ReDirReg.DeliveryStatus = 0;
ReDirReg.Polarity = 0;
@ -500,7 +500,7 @@ ApicInitializeIOApic(VOID)
/* Enable the timer interrupt (but keep it masked) */
ReDirReg.Vector = APIC_CLOCK_VECTOR;
ReDirReg.DeliveryMode = APIC_MT_Fixed;
ReDirReg.MessageType = APIC_MT_Fixed;
ReDirReg.DestinationMode = APIC_DM_Physical;
ReDirReg.TriggerMode = APIC_TGM_Edge;
ReDirReg.Mask = 1;
@ -696,7 +696,7 @@ HalEnableSystemInterrupt(
if (ReDirReg.Vector != Vector)
{
ReDirReg.Vector = Vector;
ReDirReg.DeliveryMode = APIC_MT_LowestPriority;
ReDirReg.MessageType = APIC_MT_LowestPriority;
ReDirReg.DestinationMode = APIC_DM_Logical;
ReDirReg.Destination = 0;
}

View file

@ -298,7 +298,7 @@ typedef union _IOAPIC_REDIRECTION_REGISTER
struct
{
UINT64 Vector:8;
UINT64 DeliveryMode:3;
UINT64 MessageType:3;
UINT64 DestinationMode:1;
UINT64 DeliveryStatus:1;
UINT64 Polarity:1;