From 4295b007aea0b4ed74476d3faef8235a5747acc2 Mon Sep 17 00:00:00 2001 From: Victor Perevertkin Date: Tue, 26 Apr 2022 02:38:30 +0300 Subject: [PATCH] [HALX86] Do not define unnamed enums --- hal/halx86/apic/apicp.h | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/hal/halx86/apic/apicp.h b/hal/halx86/apic/apicp.h index a532fdcad8d..245ab197f59 100644 --- a/hal/halx86/apic/apicp.h +++ b/hal/halx86/apic/apicp.h @@ -170,7 +170,7 @@ typedef enum _APIC_RRS } APIC_RRS; /* Timer Constants */ -enum _TIMER_DV +typedef enum _TIMER_DV { TIMER_DV_DivideBy2 = 0, TIMER_DV_DivideBy4 = 1, @@ -277,20 +277,14 @@ typedef union _LVT_REGISTER } LVT_REGISTER; /* IOAPIC offsets */ -enum -{ - IOAPIC_IOREGSEL = 0x00, - IOAPIC_IOWIN = 0x10 -}; +#define IOAPIC_IOREGSEL 0x00 +#define IOAPIC_IOWIN 0x10 /* IOAPIC Constants */ -enum -{ - IOAPIC_ID = 0x00, - IOAPIC_VER = 0x01, - IOAPIC_ARB = 0x02, - IOAPIC_REDTBL = 0x10 -}; +#define IOAPIC_ID 0x00 +#define IOAPIC_VER 0x01 +#define IOAPIC_ARB 0x02 +#define IOAPIC_REDTBL 0x10 typedef union _IOAPIC_REDIRECTION_REGISTER {