linux/arch/x86/include/asm/apicdef.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_APICDEF_H
#define _ASM_X86_APICDEF_H

#include <linux/bits.h>

/*
 * Constants for various Intel APICs. (local APIC, IOAPIC, etc.)
 *
 * Alan Cox <[email protected]>, 1995.
 * Ingo Molnar <[email protected]>, 1999, 2000
 */

#define IO_APIC_DEFAULT_PHYS_BASE
#define APIC_DEFAULT_PHYS_BASE

/*
 * This is the IO-APIC register space as specified
 * by Intel docs:
 */
#define IO_APIC_SLOT_SIZE

#define APIC_DELIVERY_MODE_FIXED
#define APIC_DELIVERY_MODE_LOWESTPRIO
#define APIC_DELIVERY_MODE_SMI
#define APIC_DELIVERY_MODE_NMI
#define APIC_DELIVERY_MODE_INIT
#define APIC_DELIVERY_MODE_EXTINT

#define APIC_ID

#define APIC_LVR
#define APIC_LVR_MASK
#define APIC_LVR_DIRECTED_EOI
#define GET_APIC_VERSION(x)
#define GET_APIC_MAXLVT(x)
#ifdef CONFIG_X86_32
#define APIC_INTEGRATED
#else
#define APIC_INTEGRATED(x)
#endif
#define APIC_XAPIC(x)
#define APIC_EXT_SPACE(x)
#define APIC_TASKPRI
#define APIC_TPRI_MASK
#define APIC_ARBPRI
#define APIC_ARBPRI_MASK
#define APIC_PROCPRI
#define APIC_EOI
#define APIC_EOI_ACK
#define APIC_RRR
#define APIC_LDR
#define APIC_LDR_MASK
#define GET_APIC_LOGICAL_ID(x)
#define SET_APIC_LOGICAL_ID(x)
#define APIC_ALL_CPUS
#define APIC_DFR
#define APIC_DFR_CLUSTER
#define APIC_DFR_FLAT
#define APIC_SPIV
#define APIC_SPIV_DIRECTED_EOI
#define APIC_SPIV_FOCUS_DISABLED
#define APIC_SPIV_APIC_ENABLED
#define APIC_ISR
#define APIC_ISR_NR
#define APIC_TMR
#define APIC_IRR
#define APIC_ESR
#define APIC_ESR_SEND_CS
#define APIC_ESR_RECV_CS
#define APIC_ESR_SEND_ACC
#define APIC_ESR_RECV_ACC
#define APIC_ESR_SENDILL
#define APIC_ESR_RECVILL
#define APIC_ESR_ILLREGA
#define APIC_LVTCMCI
#define APIC_ICR
#define APIC_DEST_SELF
#define APIC_DEST_ALLINC
#define APIC_DEST_ALLBUT
#define APIC_ICR_RR_MASK
#define APIC_ICR_RR_INVALID
#define APIC_ICR_RR_INPROG
#define APIC_ICR_RR_VALID
#define APIC_INT_LEVELTRIG
#define APIC_INT_ASSERT
#define APIC_ICR_BUSY
#define APIC_DEST_LOGICAL
#define APIC_DEST_PHYSICAL
#define APIC_DM_FIXED
#define APIC_DM_FIXED_MASK
#define APIC_DM_LOWEST
#define APIC_DM_SMI
#define APIC_DM_REMRD
#define APIC_DM_NMI
#define APIC_DM_INIT
#define APIC_DM_STARTUP
#define APIC_DM_EXTINT
#define APIC_VECTOR_MASK
#define APIC_ICR2
#define GET_XAPIC_DEST_FIELD(x)
#define SET_XAPIC_DEST_FIELD(x)
#define APIC_LVTT
#define APIC_LVTTHMR
#define APIC_LVTPC
#define APIC_LVT0
#define APIC_LVT_TIMER_ONESHOT
#define APIC_LVT_TIMER_PERIODIC
#define APIC_LVT_TIMER_TSCDEADLINE
#define APIC_LVT_MASKED
#define APIC_LVT_LEVEL_TRIGGER
#define APIC_LVT_REMOTE_IRR
#define APIC_INPUT_POLARITY
#define APIC_SEND_PENDING
#define APIC_MODE_MASK
#define GET_APIC_DELIVERY_MODE(x)
#define SET_APIC_DELIVERY_MODE(x, y)
#define APIC_MODE_FIXED
#define APIC_MODE_NMI
#define APIC_MODE_EXTINT
#define APIC_LVT1
#define APIC_LVTERR
#define APIC_TMICT
#define APIC_TMCCT
#define APIC_TDCR
#define APIC_SELF_IPI
#define APIC_TDR_DIV_TMBASE
#define APIC_TDR_DIV_1
#define APIC_TDR_DIV_2
#define APIC_TDR_DIV_4
#define APIC_TDR_DIV_8
#define APIC_TDR_DIV_16
#define APIC_TDR_DIV_32
#define APIC_TDR_DIV_64
#define APIC_TDR_DIV_128
#define APIC_EFEAT
#define APIC_ECTRL
#define APIC_EILVTn(n)
#define APIC_EILVT_NR_AMD_K8
#define APIC_EILVT_NR_AMD_10H
#define APIC_EILVT_NR_MAX
#define APIC_EILVT_LVTOFF(x)
#define APIC_EILVT_MSG_FIX
#define APIC_EILVT_MSG_SMI
#define APIC_EILVT_MSG_NMI
#define APIC_EILVT_MSG_EXT
#define APIC_EILVT_MASKED

#define APIC_BASE
#define APIC_BASE_MSR
#define APIC_X2APIC_ID_MSR
#define XAPIC_ENABLE
#define X2APIC_ENABLE

#ifdef CONFIG_X86_32
#define MAX_IO_APICS
#define MAX_LOCAL_APIC
#else
#define MAX_IO_APICS
#define MAX_LOCAL_APIC
#endif

/*
 * All x86-64 systems are xAPIC compatible.
 * In the following, "apicid" is a physical APIC ID.
 */
#define XAPIC_DEST_CPUS_SHIFT
#define XAPIC_DEST_CPUS_MASK
#define XAPIC_DEST_CLUSTER_MASK
#define APIC_CLUSTER(apicid)
#define APIC_CLUSTERID(apicid)
#define APIC_CPUID(apicid)
#define NUM_APIC_CLUSTERS

#ifdef CONFIG_X86_32
 #define BAD_APICID
#else
 #define BAD_APICID
#endif

#endif /* _ASM_X86_APICDEF_H */