root/include/meminfo.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef MEMINFO_H
   2 #define MEMINFO_H
   3 
   4 // CHDK Firmware free memory interface
   5 
   6 // Note: used in modules and platform independent code. 
   7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values)
   8 
   9 // Data returned from GetMemInfo & GetExMemInfo functions stored in this data structure
  10 typedef struct {
  11     int start_address;
  12     int end_address;
  13     int total_size;
  14     int allocated_size;
  15     int allocated_peak;
  16     int allocated_count;
  17     int free_size;
  18     int free_block_max_size;
  19     int free_block_count;
  20 } cam_meminfo;
  21 
  22 // Always included for module_inspector
  23 extern void GetMemInfo(cam_meminfo*);
  24 extern int GetExMemInfo(cam_meminfo*);
  25 extern int GetARamInfo(cam_meminfo*);
  26 extern void GetCombinedMemInfo(cam_meminfo*);
  27 
  28 extern int core_get_free_memory();
  29 
  30 // reyalp used to calculate size of loaded CHDK
  31 // these are linker symbols, with no actual data attached!
  32 extern const char _start,_end;
  33 
  34 #endif

/* [<][>][^][v][top][bottom][index][help] */