Changes

Jump to navigation Jump to search
400 bytes added ,  22:09, 28 May 2017
Line 166: Line 166:  
| /dev/nvhost-as-gpu || In || 16 || 0x40104107 || [[#NVGPU_AS_IOCTL_INITIALIZE]] ||
 
| /dev/nvhost-as-gpu || In || 16 || 0x40104107 || [[#NVGPU_AS_IOCTL_INITIALIZE]] ||
 
|-
 
|-
| /dev/nvhost-as-gpu || Inout || 64 || 0xC0404108 || NVGPU_AS_IOCTL_GET_VA_REGIONS? ||
+
| /dev/nvhost-as-gpu || Inout || 64 || 0xC0404108 || [[#NVGPU_AS_IOCTL_GET_VA_REGIONS]] ||
 
|-
 
|-
 
| /dev/nvhost-as-gpu || In || 40 || 0x40284109 || [[#NVGPU_AS_IOCTL_INITIALIZE_EX]] ||
 
| /dev/nvhost-as-gpu || In || 40 || 0x40284109 || [[#NVGPU_AS_IOCTL_INITIALIZE_EX]] ||
Line 223: Line 223:  
     u32 __unk;      // in, 0 works
 
     u32 __unk;      // in, 0 works
 
     u32 __zeroes[3]; // in
 
     u32 __zeroes[3]; // in
 +
  };
 +
 +
=== NVGPU_AS_IOCTL_GET_VA_REGIONS ===
 +
Nintendo modified heavily.
 +
 +
  struct va_region {
 +
    u64 __offset;
 +
    u32 __page_size;
 +
    u32 __reserved;
 +
    u64 __pages;
 +
  };
 +
 
 +
  struct {
 +
    u64              __not_used;
 +
    u32              __bufsize;    // inout, forced to 2*sizeof(struct va_region)
 +
    u32              __reserved;
 +
    struct va_region __regions[2]; // out
 
   };
 
   };
    
=== NVGPU_AS_IOCTL_INITIALIZE_EX ===
 
=== NVGPU_AS_IOCTL_INITIALIZE_EX ===
 +
Nintendo custom.
 +
 
   struct {
 
   struct {
 
     u32 __unk0; // in
 
     u32 __unk0; // in

Navigation menu