msi.h 665 B

1234567891011121314151617181920212223242526272829
  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. #define NR_VECTORS NR_IRQS
  8. #define FIRST_DEVICE_VECTOR IA64_FIRST_DEVICE_VECTOR
  9. #define LAST_DEVICE_VECTOR IA64_LAST_DEVICE_VECTOR
  10. static inline void set_intr_gate (int nr, void *func) {}
  11. #define IO_APIC_VECTOR(irq) (irq)
  12. #define ack_APIC_irq ia64_eoi
  13. #define MSI_TARGET_CPU_SHIFT 4
  14. extern struct msi_ops msi_apic_ops;
  15. static inline int msi_arch_init(void)
  16. {
  17. if (platform_msi_init)
  18. return platform_msi_init();
  19. /* default ops for most ia64 platforms */
  20. msi_register(&msi_apic_ops);
  21. return 0;
  22. }
  23. #endif /* ASM_MSI_H */