msi.h 467 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2003-2004 Intel
  3. * Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com)
  4. */
  5. #ifndef ASM_MSI_H
  6. #define ASM_MSI_H
  7. #include <asm/desc.h>
  8. #include <mach_apic.h>
  9. #define LAST_DEVICE_VECTOR 232
  10. #define MSI_DEST_MODE MSI_LOGICAL_MODE
  11. #define MSI_TARGET_CPU_SHIFT 12
  12. #ifdef CONFIG_SMP
  13. #define MSI_TARGET_CPU logical_smp_processor_id()
  14. #else
  15. #define MSI_TARGET_CPU cpu_to_logical_apicid(first_cpu(cpu_online_map))
  16. #endif
  17. #endif /* ASM_MSI_H */