mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08: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 */
|