uv_irq.h 907 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * SGI UV IRQ definitions
  7. *
  8. * Copyright (C) 2008 Silicon Graphics, Inc. All rights reserved.
  9. */
  10. #ifndef _ASM_X86_UV_UV_IRQ_H
  11. #define _ASM_X86_UV_UV_IRQ_H
  12. /* If a generic version of this structure gets defined, eliminate this one. */
  13. struct uv_IO_APIC_route_entry {
  14. __u64 vector : 8,
  15. delivery_mode : 3,
  16. dest_mode : 1,
  17. delivery_status : 1,
  18. polarity : 1,
  19. __reserved_1 : 1,
  20. trigger : 1,
  21. mask : 1,
  22. __reserved_2 : 15,
  23. dest : 32;
  24. };
  25. enum {
  26. UV_AFFINITY_ALL,
  27. UV_AFFINITY_NODE,
  28. UV_AFFINITY_CPU
  29. };
  30. extern int uv_irq_2_mmr_info(int, unsigned long *, int *);
  31. extern int uv_setup_irq(char *, int, int, unsigned long, int);
  32. extern void uv_teardown_irq(unsigned int);
  33. #endif /* _ASM_X86_UV_UV_IRQ_H */