33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <cstddef>
|
|
|
|
struct texture_memory_alloc__start_end {
|
|
uint32_t start;
|
|
uint32_t end;
|
|
};
|
|
|
|
struct texture_memory_alloc {
|
|
struct texture_memory_alloc__start_end isp_tsp_parameters;
|
|
struct texture_memory_alloc__start_end object_list;
|
|
struct texture_memory_alloc__start_end region_array;
|
|
struct texture_memory_alloc__start_end framebuffer[3];
|
|
struct texture_memory_alloc__start_end background[2];
|
|
struct texture_memory_alloc__start_end texture;
|
|
};
|
|
|
|
constexpr texture_memory_alloc texture_memory_alloc = {
|
|
// 32-bit addresses start end start end
|
|
.isp_tsp_parameters = {0x000000, 0x21bfe0},
|
|
.object_list = {0x400000, 0x495fe0},
|
|
.region_array = {0x21c000, 0x22c000},
|
|
.framebuffer = {{0x496000, 0x52c000},
|
|
{0x22c000, 0x2c2000},
|
|
{0x52c000, 0x5c2000}},
|
|
.background = {{0x2c2000, 0x2c2020},
|
|
{0x5c2000, 0x5c2020}},
|
|
// 64-bit addresses
|
|
.texture = {0x584100, 0x800000},
|
|
};
|