home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / driverkit / interruptMsg.h < prev    next >
Text File  |  1993-07-20  |  992b  |  37 lines

  1. /*     Copyright (c) 1991 NeXT Computer, Inc.  All rights reserved. 
  2.  *
  3.  * interruptMsg.h - Interrupt message defintion.
  4.  *
  5.  * HISTORY
  6.  * 04-Apr-91    Doug Mitchell at NeXT
  7.  *      Created. 
  8.  */
  9.  
  10. #import <mach/message.h>
  11.  
  12. /*
  13.  * Interrupt message sent by kernel to device-specific handler.
  14.  */
  15. typedef struct {
  16.  
  17.     msg_header_t    header;        // standard message header 
  18.     
  19. } IOInterruptMsg;
  20.  
  21. /*
  22.  * Values for IOInterruptMsg.header.
  23.  */
  24. #define IO_INTERRUPT_MSG_ID_BASE    0x232323
  25.  
  26. #define IO_TIMEOUT_MSG            (IO_INTERRUPT_MSG_ID_BASE + 0)
  27. #define IO_COMMAND_MSG            (IO_INTERRUPT_MSG_ID_BASE + 1)
  28. /*
  29.  * Next 16 reserved for multiple interrupt sources per device.
  30.  */
  31. #define IO_DEVICE_INTERRUPT_MSG        (IO_INTERRUPT_MSG_ID_BASE + 2)
  32. #define IO_DEVICE_INTERRUPT_MSG_FIRST    (IO_DEVICE_INTERRUPT_MSG)
  33. #define IO_DEVICE_INTERRUPT_MSG_LAST    (IO_DEVICE_INTERRUPT_MSG_FIRST + 15)
  34. #define IO_DMA_INTERRUPT_MSG        (IO_DEVICE_INTERRUPT_MSG_LAST + 1)
  35. #define IO_FIRST_UNRESERVED_INTERRUPT_MSG    \
  36.                     (IO_DMA_INTERRUPT_MSG + 1)
  37.