Changes

240 bytes added ,  19:19, 28 May 2017
Line 158: Line 158:  
| /dev/nvhost-as-gpu || Inout || 16 || 0xC0104103 || [[#NVGPU_AS_IOCTL_FREE_SPACE]] ||
 
| /dev/nvhost-as-gpu || Inout || 16 || 0xC0104103 || [[#NVGPU_AS_IOCTL_FREE_SPACE]] ||
 
|-
 
|-
| /dev/nvhost-as-gpu || Inout || 24 || 0xC0184104 || NVGPU_AS_IOCTL_MAP_BUFFER ||
+
| /dev/nvhost-as-gpu || Inout || 24 || 0xC0184104 || [[#NVGPU_AS_IOCTL_MAP_BUFFER]] ||
 
|-
 
|-
 
| /dev/nvhost-as-gpu || Inout || 8 || 0xC0084105 || NVGPU_AS_IOCTL_UNMAP_BUFFER ||
 
| /dev/nvhost-as-gpu || Inout || 8 || 0xC0084105 || NVGPU_AS_IOCTL_UNMAP_BUFFER ||
Line 194: Line 194:  
     u32 __pages;    // in
 
     u32 __pages;    // in
 
     u32 __page_size; // in
 
     u32 __page_size; // in
 +
  };
 +
 +
=== NVGPU_AS_IOCTL_MAP_BUFFER ===
 +
  struct {
 +
    u32 __flags;          // in, 1 works
 +
    u32 __reserved;
 +
    u32 __nvmap_handle;    // in
 +
    u32 __page_size;      // inout, 0 means don't care
 +
    u64 __offset_or_align; // inout
 
   };
 
   };
   Line 200: Line 209:     
   struct {
 
   struct {
     u32 __unk;      // in, zero works
+
     u32 __unk;      // in, 0 works
 
     u32 __zeroes[3]; // in
 
     u32 __zeroes[3]; // in
 
   };
 
   };