msi.h 412 B

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