home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / exec / memory.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  951 b   |  62 lines

  1. #ifndef    EXEC_MEMORY_H
  2. #define    EXEC_MEMORY_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11.  
  12. #ifndef __INC_POS_PEXEC_MEMORY_H
  13. #include "p:pExec/Memory.h"
  14. #endif
  15. #ifndef EXEC_NODES_H
  16. #include "exec/nodes.h"
  17. #endif
  18.  
  19.  
  20.  
  21. struct MemChunk
  22. {
  23.   struct MemChunk *mc_Next;
  24.   ULONG            mc_Bytes;
  25. };
  26.  
  27.  
  28. struct MemHeader
  29. {
  30.   struct Node      mh_Node;
  31.   UWORD            mh_Attributes;
  32.   struct MemChunk *mh_First;
  33.   APTR             mh_Lower;
  34.   APTR             mh_Upper;
  35.   ULONG            mh_Free;
  36.  
  37.   UBYTE   mh_Reserved[16];
  38. };
  39.  
  40.  
  41. struct MemEntry
  42. {
  43.   union {
  44.     ULONG meu_Reqs;
  45.     APTR  meu_Addr;
  46.   } me_Un;
  47.   ULONG   me_Length;
  48. };
  49.  
  50.  
  51. struct MemList
  52. {
  53.   struct Node     ml_Node;
  54.   UWORD           ml_NumEntries;
  55.   struct MemEntry ml_ME[1];
  56. };
  57.  
  58. #define ml_me    ml_ME
  59.  
  60.  
  61. #endif    /* EXEC_MEMORY_H */
  62.