home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
cbm
/
os-include-bin.lha
/
os-include
/
resources
/
misc.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-15
|
1KB
|
44 lines
#ifndef RESOURCES_MISC_H
#define RESOURCES_MISC_H
/*
** $VER: misc.h 36.13 (6.5.90)
** Includes Release 40.15
**
** Unit number definitions for "misc.resource"
**
** (C) Copyright 1985-1993 Commodore-Amiga, Inc.
** All Rights Reserved
*/
#ifndef EXEC_TYPES_H
#include "exec/types.h"
#endif /* EXEC_TYPES_H */
#ifndef EXEC_LIBRARIES_H
#include "exec/libraries.h"
#endif /* EXEC_LIBRARIES_H */
/*
* Unit number definitions. Ownership of a resource grants low-level
* bit access to the hardware registers. You are still obligated to follow
* the rules for shared access of the interrupt system (see
* exec.library/SetIntVector or cia.resource as appropriate).
*/
#define MR_SERIALPORT 0 /* Amiga custom chip serial port registers
(SERDAT,SERDATR,SERPER,ADKCON, and interrupts) */
#define MR_SERIALBITS 1 /* Serial control bits (DTR,CTS, etc.) */
#define MR_PARALLELPORT 2 /* The 8 bit parallel data port
(CIAAPRA & CIAADDRA only!) */
#define MR_PARALLELBITS 3 /* All other parallel bits & interrupts
(BUSY,ACK,etc.) */
/*
* Library vector offset definitions
*/
#define MR_ALLOCMISCRESOURCE (LIB_BASE) /* -6 */
#define MR_FREEMISCRESOURCE (LIB_BASE-LIB_VECTSIZE) /* -12 */
#define MISCNAME "misc.resource"
#endif /* RESOURCES_MISC_H */