home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / resources / misc.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  1KB  |  44 lines

  1. #ifndef RESOURCES_MISC_H
  2. #define RESOURCES_MISC_H
  3. /*
  4. **    $VER: misc.h 36.13 (6.5.90)
  5. **    Includes Release 40.15
  6. **
  7. **    Unit number definitions for "misc.resource"
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include "exec/types.h"
  15. #endif    /* EXEC_TYPES_H */
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18. #include "exec/libraries.h"
  19. #endif    /* EXEC_LIBRARIES_H */
  20.  
  21. /*
  22.  * Unit number definitions.  Ownership of a resource grants low-level
  23.  * bit access to the hardware registers.  You are still obligated to follow
  24.  * the rules for shared access of the interrupt system (see
  25.  * exec.library/SetIntVector or cia.resource as appropriate).
  26.  */
  27. #define    MR_SERIALPORT    0 /* Amiga custom chip serial port registers
  28.                  (SERDAT,SERDATR,SERPER,ADKCON, and interrupts) */
  29. #define    MR_SERIALBITS    1 /* Serial control bits (DTR,CTS, etc.) */
  30. #define    MR_PARALLELPORT    2 /* The 8 bit parallel data port
  31.                  (CIAAPRA & CIAADDRA only!) */
  32. #define    MR_PARALLELBITS    3 /* All other parallel bits & interrupts
  33.                  (BUSY,ACK,etc.) */
  34.  
  35. /*
  36.  * Library vector offset definitions
  37.  */
  38. #define    MR_ALLOCMISCRESOURCE    (LIB_BASE)        /* -6 */
  39. #define MR_FREEMISCRESOURCE    (LIB_BASE-LIB_VECTSIZE)    /* -12 */
  40.  
  41. #define MISCNAME "misc.resource"
  42.  
  43. #endif    /* RESOURCES_MISC_H */
  44.