home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / resources / misc.h < prev    next >
C/C++ Source or Header  |  1991-11-27  |  1KB  |  46 lines

  1. #ifndef RESOURCES_MISC_H
  2. #define RESOURCES_MISC_H
  3. /*
  4. **    $Filename: resources/misc.h $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 36.13 $
  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. #ifndef EXEC_TYPES_H
  16. #include "exec/types.h"
  17. #endif    /* EXEC_TYPES_H */
  18.  
  19. #ifndef EXEC_LIBRARIES_H
  20. #include "exec/libraries.h"
  21. #endif    /* EXEC_LIBRARIES_H */
  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. #define    MR_SERIALPORT    0 /* Amiga custom chip serial port registers
  30.                  (SERDAT,SERDATR,SERPER,ADKCON, and interrupts) */
  31. #define    MR_SERIALBITS    1 /* Serial control bits (DTR,CTS, etc.) */
  32. #define    MR_PARALLELPORT    2 /* The 8 bit parallel data port
  33.                  (CIAAPRA & CIAADDRA only!) */
  34. #define    MR_PARALLELBITS    3 /* All other parallel bits & interrupts
  35.                  (BUSY,ACK,etc.) */
  36.  
  37. /*
  38.  * Library vector offset definitions
  39.  */
  40. #define    MR_ALLOCMISCRESOURCE    (LIB_BASE)        /* -6 */
  41. #define MR_FREEMISCRESOURCE    (LIB_BASE-LIB_VECTSIZE)    /* -12 */
  42.  
  43. #define MISCNAME "misc.resource"
  44.  
  45. #endif    /* RESOURCES_MISC_H */
  46.