home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / useful / dist / disk / cdrom / amicdrom / device.h < prev    next >
C/C++ Source or Header  |  1994-04-12  |  3KB  |  104 lines

  1. /* device.h: */
  2.  
  3. #define CheckIO foo
  4.  
  5. #include <exec/types.h>
  6. #include <exec/memory.h>
  7. #include <exec/execbase.h>
  8. #include <dos/dos.h>
  9. #include <dos/dosextens.h>
  10. #include <dos/dostags.h>
  11. #include <dos/filehandler.h>
  12. #include <devices/timer.h>
  13. #include <devices/input.h>
  14. #include <devices/inputevent.h>
  15. #include <utility/date.h>
  16. #include <clib/dos_protos.h>
  17. #include <clib/alib_protos.h>
  18. #include <clib/exec_protos.h>
  19. #include <clib/utility_protos.h>
  20.  
  21. #include "generic.h"
  22.  
  23. #undef CheckIO
  24. struct IORequest *CheckIO(struct IORequest *);
  25.  
  26. #ifdef AZTEC_C
  27. #include <pragmas/dos_lib.h>
  28. #include <pragmas/exec_lib.h>
  29. #include <pragmas/utility_lib.h>
  30. #endif
  31.  
  32. #ifdef LATTICE
  33. #include <pragmas/dos_pragmas.h>
  34. #include <pragmas/exec_pragmas.h>
  35. #include <pragmas/utility_pragmas.h>
  36. extern struct Library *DOSBase, *SysBase, *UtilityBase;
  37. #endif
  38.  
  39. #if defined(_DCC) && defined(REGISTERED)
  40. #include <pragmas/dos_pragmas.h>
  41. #include <pragmas/exec_pragmas.h>
  42. #include <pragmas/utility_pragmas.h>
  43. extern struct Library *DOSBase, *SysBase, *UtilityBase;
  44. #endif
  45.  
  46. #ifdef NDEBUG
  47. #define BUG(x) /* nothing */
  48. #else
  49. #define BUG(x) x
  50. #endif
  51.  
  52. #if !defined(NDEBUG) || defined(DEBUG_SECTORS)
  53. #define BUG2(x) x
  54. #else
  55. #define BUG2(x) /* nothing */
  56. #endif
  57.  
  58. #define CTOB(x) (void *)(((long)(x))>>2)    /*    BCPL conversion */
  59. #define BTOC(x) (void *)(((long)(x))<<2)
  60.  
  61. #define bmov(ss,dd,nn) CopyMem(ss,dd,nn)    /*    my habit    */
  62.  
  63. #define DOS_FALSE   0
  64. #define DOS_TRUE    -1
  65.  
  66. typedef unsigned char    ubyte;            /*    unsigned quantities        */
  67. typedef unsigned short    uword;
  68. typedef unsigned long    ulong;
  69.  
  70. typedef struct Interrupt    INTERRUPT;
  71. typedef struct Task        TASK;
  72. typedef struct FileLock     LOCK;        /*    See LOCKLINK    */
  73. typedef struct FileInfoBlock    FIB;
  74. typedef struct DosPacket    PACKET;
  75. typedef struct Process        PROC;
  76. typedef struct DeviceNode    DEVNODE;
  77. typedef struct DeviceList    DEVLIST;
  78. typedef struct DosInfo        DOSINFO;
  79. typedef struct RootNode     ROOTNODE;
  80. typedef struct FileHandle    FH;
  81. typedef struct MsgPort        PORT;
  82. typedef struct Message        MSG;
  83. typedef struct MinList        LIST;
  84. typedef struct MinNode        NODE;
  85. typedef struct DateStamp    STAMP;
  86. typedef struct InfoData     INFODATA;
  87. typedef struct DosLibrary    DOSLIB;
  88. typedef struct ExecBase        EXECLIB;
  89. typedef struct Library        LIB;
  90.  
  91. #define FILE_DIR    1
  92. #define FILE_FILE   -1
  93.  
  94. void Register_Lock (LOCK *p_lock);
  95. void Unregister_Lock (LOCK *p_lock);
  96. int Reinstall_Locks (void);
  97. void Register_File_Handle (CDROM_OBJ *p_obj);
  98. void Unregister_File_Handle (CDROM_OBJ *p_obj);
  99. DEVLIST *Find_Dev_List (CDROM_OBJ *p_obj);
  100. int Reinstall_File_Handles (void);
  101. void Register_Volume_Node (DEVLIST *p_volume);
  102. void Unregister_Volume_Node (DEVLIST *p_volume);
  103. DEVLIST *Find_Volume_Node (char *p_name);
  104.