home *** CD-ROM | disk | FTP | other *** search
/ Dave Lowe: AssemPro For Development Amiga Driver / Lowe_AssemProForDevelopmentAmigaDriver.adf / Includes / exec / devices.i < prev    next >
Encoding:
Text File  |  1978-06-06  |  1.5 KB  |  61 lines

  1.     IFND EXEC_DEVICES_I@
  2. EXEC_DEVICES_I@ = 1
  3. ;*********************************************************************
  4. ;
  5. ;   Commodore Amiga -- ROM Operating System Executive Include File
  6. ;
  7. ;*********************************************************************
  8. ;
  9. ;   Source Control:
  10. ;
  11. ;       $Header: devices.i,v 1.0 85/08/28 15:07:02 carl Exp $
  12. ;
  13. ;       $Locker:  $
  14. ;
  15. ;*********************************************************************
  16.  
  17.     IFND EXEC_LIBRARIES_I@
  18.     INCLUDE "exec/libraries.i"
  19.     ENDIF
  20.  
  21.     IFND EXEC_PORTS_I@
  22.     INCLUDE "exec/ports.i"
  23.     ENDIF
  24.  
  25.  
  26. ;----------------------------------------------------------------
  27. ;
  28. ;   Device Data Structure
  29. ;
  30. ;----------------------------------------------------------------
  31.  
  32.  STRUCTURE  DD,LIB_SIZE
  33.     LABEL   DD_SIZE                     ; identical to library
  34.  
  35.  
  36. ;----------------------------------------------------------------
  37. ;
  38. ;   Suggested Unit Structure
  39. ;
  40. ;----------------------------------------------------------------
  41.  
  42.  STRUCTURE  UNIT,MP_SIZE                ; queue for requests
  43.     UBYTE   UNIT_FLAGS
  44.     UBYTE   UNIT_pad
  45.     UWORD   UNIT_OPENCNT
  46.     LABEL   UNIT_SIZE
  47.  
  48.  
  49. ;------ UNIT_FLAG definitions:
  50.  
  51. ;    BITDEF  UNIT,ACTIVE,0               ; driver is active
  52. UNITB_ACTIVE = 0               ; driver is active
  53. UNITF_ACTIVE = 1<<0               ; driver is active
  54. ;    BITDEF  UNIT,INTASK,1               ; running in driver's task
  55. UNITB_INTASK = 1               ; running in driver's task
  56. UNITF_INTASK = 1<<1               ; running in driver's task
  57.  
  58.     ENDIF
  59.     END
  60.