mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00: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>
24 lines
412 B
C
24 lines
412 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 <mach_apic.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 */
|