msi.h 437 B

123456789101112131415161718192021222324
  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 <asm/mach_apic.h>
  9. #include <asm/smp.h>
  10. #define LAST_DEVICE_VECTOR (FIRST_SYSTEM_VECTOR - 1)
  11. #define MSI_TARGET_CPU_SHIFT 12
  12. extern struct msi_ops msi_apic_ops;
  13. static inline int msi_arch_init(void)
  14. {
  15. msi_register(&msi_apic_ops);
  16. return 0;
  17. }
  18. #endif /* ASM_MSI_H */