home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / exec / interrupts.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  973b  |  48 lines

  1. #ifndef    EXEC_INTERRUPTS_H
  2. #define    EXEC_INTERRUPTS_H
  3. /*
  4. **    $VER: interrupts.h 39.1 (18.9.92)
  5. **    Includes Release 40.15
  6. **
  7. **    Callback structures used by hardware & software interrupts
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_NODES_H
  14. #include "exec/nodes.h"
  15. #endif /* EXEC_NODES_H */
  16.  
  17. #ifndef EXEC_LISTS_H
  18. #include "exec/lists.h"
  19. #endif /* EXEC_LISTS_H */
  20.  
  21.  
  22. struct Interrupt {
  23.     struct  Node is_Node;
  24.     APTR    is_Data;            /* server data segment  */
  25.     VOID    (*is_Code)();        /* server code entry    */
  26. };
  27.  
  28.  
  29. struct IntVector {        /* For EXEC use ONLY! */
  30.     APTR    iv_Data;
  31.     VOID    (*iv_Code)();
  32.     struct  Node *iv_Node;
  33. };
  34.  
  35.  
  36. struct SoftIntList {        /* For EXEC use ONLY! */
  37.     struct List sh_List;
  38.     UWORD  sh_Pad;
  39. };
  40.  
  41. #define SIH_PRIMASK (0xf0)
  42.  
  43. /* this is a fake INT definition, used only for AddIntServer and the like */
  44. #define INTB_NMI    15
  45. #define INTF_NMI    (1L<<15)
  46.  
  47. #endif    /* EXEC_INTERRUPTS_H */
  48.