home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 215.lha / AmyLoad / load.h < prev    next >
C/C++ Source or Header  |  1996-02-14  |  1KB  |  56 lines

  1. #ifndef DEVICES_LOAD_H
  2. #define DEVICES_LOAD_H
  3. #ifndef DEVICES_TIMER_H
  4. #include <devices/timer.h>
  5. #endif DEVICES_TIMER_H
  6. #ifndef EXEC_DEVICES_H
  7. #include <exec/devices.h>
  8. #endif
  9. #ifndef EXEC_SEMAPHORES_H
  10. #include <exec/semaphores.h>
  11. #endif
  12. #define LOAD_STACK_SIZE 200
  13. struct LoadBase {
  14.     struct Device ld_device;
  15.     struct SignalSemaphore ld_semaphore;
  16.     struct timerequest ld_timerequest;
  17.     struct MsgPort ld_timerport;
  18.     struct MsgPort ld_port;
  19.     struct Task ld_taskcb;
  20.     char   ld_stack[LOAD_STACK_SIZE];
  21.     ULONG  ld_seglist;
  22.     ULONG  ld_sysbase;
  23.     UWORD  ld_interval;
  24.     UWORD  ld_ticks;
  25.     ULONG  ld_secs;
  26.     ULONG  ld_micro;
  27.     ULONG  ld_max_chip;
  28.     ULONG  ld_max_fast;
  29.     ULONG  ld_cpu;
  30.     ULONG  ld_blitter;
  31.     ULONG  ld_chip;
  32.     ULONG  ld_fast;
  33.     UBYTE  ld_stop_count;
  34.     UBYTE  ld_flags;
  35. };
  36. typedef struct _loadval {
  37.     ULONG   lv_cpu;
  38.     ULONG   lv_blitter;
  39.     ULONG   lv_chip;
  40.     ULONG   lv_fast;
  41. } loadval;
  42. typedef struct _loadrequest {
  43.     struct IORequest lr_node;
  44.     struct _loadval  lr_load;
  45.     UWORD         lr_interval;
  46.     UWORD         lr_ticks;
  47.     BYTE         lr_pri;
  48. } loadrequest;
  49. #define LDB_OPEN_EXCL        0
  50. #define LDF_OPEN_EXCL        (1<<LDB_OPEN_EXCL)
  51. #define LDERR_IN_USE        -5
  52. #define LDERR_ACCESS_DENIED -6
  53. #define LDERR_NOT_STOPPED   -7
  54. #define LD_SET    CMD_NONSTD
  55.  
  56.