Subversion Repositories Games.Carmageddon

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _MEMMGMT_H_
  2. #define _MEMMGMT_H_
  3.  
  4. #include "brender/br_types.h"
  5.  
  6. br_error HostLock(br_uint_32 offset, br_uint_16 sel, br_size_t size);
  7.  
  8. br_error HostUnlock(br_uint_32 offset, br_uint_16 sel, br_size_t size);
  9.  
  10. br_error HostSelectorAllocate(br_uint_16* selp);
  11.  
  12. br_error HostSelectorAllocateLinear(br_uint_16* selp, br_uint_32 base, br_size_t size);
  13.  
  14. br_error HostSelectorAllocateAlias(br_uint_16* aliasp, br_uint_16 sel);
  15.  
  16. br_error HostSelectorAllocatePhysical(br_uint_16* selp, br_uint_32 phys_addr, br_size_t size);
  17.  
  18. br_error HostSelectorFree(br_uint_16 sel);
  19.  
  20. br_error HostSelectorBaseSet(br_uint_16 sel, br_uint_32 base);
  21.  
  22. br_error HostSelectorLimitSet(br_uint_16 sel, br_size_t limit);
  23.  
  24. br_error HostSelectorBaseQuery(br_uint_32* basep, br_uint_16 sel);
  25.  
  26. br_error HostSelectorLimitQuery(br_uint_32* limitp, br_uint_16 sel);
  27.  
  28. #endif
  29.