alt_irq_table.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __ALT_IRQ_TABLE_H__
  2. #define __ALT_IRQ_TABLE_H__
  3. /******************************************************************************
  4. * *
  5. * License Agreement *
  6. * *
  7. * Copyright (c) 2009 Altera Corporation, San Jose, California, USA. *
  8. * All rights reserved. *
  9. * *
  10. * Permission is hereby granted, free of charge, to any person obtaining a *
  11. * copy of this software and associated documentation files (the "Software"), *
  12. * to deal in the Software without restriction, including without limitation *
  13. * the rights to use, copy, modify, merge, publish, distribute, sublicense, *
  14. * and/or sell copies of the Software, and to permit persons to whom the *
  15. * Software is furnished to do so, subject to the following conditions: *
  16. * *
  17. * The above copyright notice and this permission notice shall be included in *
  18. * all copies or substantial portions of the Software. *
  19. * *
  20. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
  21. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
  22. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
  23. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
  24. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *
  25. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *
  26. * DEALINGS IN THE SOFTWARE. *
  27. * *
  28. * This agreement shall be governed in all respects by the laws of the State *
  29. * of California and by the laws of the United States of America. *
  30. * *
  31. ******************************************************************************/
  32. /******************************************************************************
  33. * *
  34. * THIS IS A LIBRARY READ-ONLY SOURCE FILE. DO NOT EDIT. *
  35. * *
  36. ******************************************************************************/
  37. /*
  38. * Definition of a table describing each interrupt handler. The index into
  39. * the array is the interrupt id associated with the handler.
  40. *
  41. * When an interrupt occurs, the associated handler is called with
  42. * the argument stored in the context member.
  43. *
  44. * The table is physically created in alt_irq_handler.c
  45. */
  46. extern struct ALT_IRQ_HANDLER
  47. {
  48. #ifdef ALT_ENHANCED_INTERRUPT_API_PRESENT
  49. void (*handler)(void*);
  50. #else
  51. void (*handler)(void*, alt_u32);
  52. #endif
  53. void *context;
  54. } alt_irq[ALT_NIRQ];
  55. #endif