home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / resources / misc.i < prev    next >
Text File  |  1991-11-27  |  1KB  |  52 lines

  1.     IFND    RESOURCES_MISC_I
  2. RESOURCES_MISC_I    SET    1
  3. **
  4. **    $Filename: resources/misc.i $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 36.12 $
  7. **    $Date: 90/05/06 $
  8. **
  9. **    Unit number definitions for "misc.resource"
  10. **
  11. **    (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND    EXEC_TYPES_I
  16.     INCLUDE "exec/types.i"
  17.     ENDC    !EXEC_TYPES_I
  18.  
  19.     IFND    EXEC_LIBRARIES_I
  20.     INCLUDE "exec/libraries.i"
  21.     ENDC    !EXEC_LIBRARIES_I
  22.  
  23. *
  24. * Unit number definitions.  Ownership of a resource grants low-level
  25. * bit access to the hardware registers.  You are still obligated to follow
  26. * the rules for shared access of the interrupt system.    (see
  27. * exec.library/SetIntVector or cia.resource as appropriate).
  28. *
  29. MR_SERIALPORT    EQU 0    ;Amiga custom chip serial port registers & interrupts
  30.             ;(SERDAT,SERDATR,SERPER,ADKCON, and interrupts)
  31. MR_SERIALBITS    EQU 1    ;Serial control bits (DTR,CTS, etc.)
  32. MR_PARALLELPORT    EQU 2    ;The 8 bit parallel data port
  33.             ;(CIAAPRA & CIAADDRA only!)
  34. MR_PARALLELBITS    EQU 3    ;All other parallel bits & interrupts (BUSY,ACK,etc.)
  35.  
  36. *
  37. * Library vector offset definitions
  38. *
  39.     LIBINIT LIB_BASE
  40.     LIBDEF    MR_ALLOCMISCRESOURCE    ;-6
  41.     LIBDEF    MR_FREEMISCRESOURCE    ;-12
  42.  
  43. *
  44. * Name of misc.resource
  45. *
  46. MISCNAME    MACRO
  47.         DC.B    'misc.resource',0
  48.         CNOP    0,2
  49.         ENDM
  50.  
  51.     ENDC    ;RESOURCE_MISC_I
  52.