irq.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /****************************************************************************
  2. * arch/x86_64/include/irq.h
  3. *
  4. * Licensed to the Apache Software Foundation (ASF) under one or more
  5. * contributor license agreements. See the NOTICE file distributed with
  6. * this work for additional information regarding copyright ownership. The
  7. * ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance with the
  9. * License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. * License for the specific language governing permissions and limitations
  17. * under the License.
  18. *
  19. ****************************************************************************/
  20. /* This file should never be included directly but, rather, only indirectly
  21. * through nuttx/irq.h
  22. */
  23. #ifndef __ARCH_X86_64_INCLUDE_IRQ_H
  24. #define __ARCH_X86_64_INCLUDE_IRQ_H
  25. /****************************************************************************
  26. * Included Files
  27. ****************************************************************************/
  28. /* Include NuttX-specific IRQ definitions */
  29. #include <nuttx/irq.h>
  30. /* Include chip-specific IRQ definitions (including IRQ numbers) */
  31. #include <arch/chip/irq.h>
  32. /* Include architecture-specific IRQ definitions (including register save
  33. * structure and up_irq_save()/up_irq_restore() macros).
  34. */
  35. #ifdef CONFIG_ARCH_INTEL64
  36. # include <arch/intel64/irq.h>
  37. #endif
  38. /****************************************************************************
  39. * Pre-processor Definitions
  40. ****************************************************************************/
  41. /****************************************************************************
  42. * Public Types
  43. ****************************************************************************/
  44. /****************************************************************************
  45. * Inline functions
  46. ****************************************************************************/
  47. /****************************************************************************
  48. * Public Data
  49. ****************************************************************************/
  50. /****************************************************************************
  51. * Public Function Prototypes
  52. ****************************************************************************/
  53. #ifndef __ASSEMBLY__
  54. #ifdef __cplusplus
  55. #define EXTERN extern "C"
  56. extern "C"
  57. {
  58. #else
  59. #define EXTERN extern
  60. #endif
  61. #undef EXTERN
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif
  66. #endif /* __ARCH_X86_64_INCLUDE_IRQ_H */