mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 09:26:44 +07:00
b209a6ee49
In IA64 platform, msi driver does not use irq_vector variable, and in x86 platform LAST_DEVICE_VECTOR should one before FIRST_SYSTEM_VECTOR, this patch modify this. Signed-off-by: bibo, mao <bibo.mao@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
25 lines
437 B
C
25 lines
437 B
C
/*
|
|
* Copyright (C) 2003-2004 Intel
|
|
* Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com)
|
|
*/
|
|
|
|
#ifndef ASM_MSI_H
|
|
#define ASM_MSI_H
|
|
|
|
#include <asm/desc.h>
|
|
#include <asm/mach_apic.h>
|
|
#include <asm/smp.h>
|
|
|
|
#define LAST_DEVICE_VECTOR (FIRST_SYSTEM_VECTOR - 1)
|
|
#define MSI_TARGET_CPU_SHIFT 12
|
|
|
|
extern struct msi_ops msi_apic_ops;
|
|
|
|
static inline int msi_arch_init(void)
|
|
{
|
|
msi_register(&msi_apic_ops);
|
|
return 0;
|
|
}
|
|
|
|
#endif /* ASM_MSI_H */
|