home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / exec / interrupts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  732 b   |  50 lines

  1. #ifndef EXEC_INTERRUPTS_H
  2. #define EXEC_INTERRUPTS_H
  3. /*
  4. ** $Filename: exec/interrupts.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.4 $
  7. ** $Date: 90/05/10 $
  8. **
  9. ** Callback structures used by hardware & software interrupts
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_NODES_H
  16. #include "exec/nodes.h"
  17. #endif 
  18.  
  19. #ifndef EXEC_LISTS_H
  20. #include "exec/lists.h"
  21. #endif 
  22.  
  23.  
  24. struct Interrupt {
  25.  struct Node is_Node;
  26.  APTR is_Data; 
  27.  VOID (*is_Code)(); 
  28. };
  29.  
  30.  
  31. struct IntVector { 
  32.  APTR iv_Data;
  33.  VOID (*iv_Code)();
  34.  struct Node *iv_Node;
  35. };
  36.  
  37.  
  38. struct SoftIntList { 
  39.  struct List sh_List;
  40.  UWORD sh_Pad;
  41. };
  42.  
  43. #define SIH_PRIMASK (0xf0)
  44.  
  45.  
  46. #define INTB_NMI 15
  47. #define INTF_NMI (1<<15)
  48.  
  49. #endif 
  50.