Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::PS4::MemoryManagerDefaults Class Reference

Used by allocators for memory configuration. More...

Public Member Functions

 MemoryManagerDefaults () noexcept
 Default constructor.
 
 MemoryManagerDefaults (uintptr_t uOnion, uintptr_t uGarlic) noexcept
 Initialization constructor.
 
BURGER_INLINE uintptr_t get_onion_pages () const noexcept
 
BURGER_INLINE uintptr_t get_garlic_pages () const noexcept
 
BURGER_INLINE uintptr_t get_garlic_in_bytes () const noexcept
 
BURGER_INLINE uintptr_t get_onion_in_bytes () const noexcept
 
BURGER_INLINE uintptr_t get_total_in_bytes () const noexcept
 
BURGER_INLINE void set_garlic_in_bytes (uintptr_t bytes) noexcept
 
BURGER_INLINE void set_onion_in_bytes (uintptr_t bytes) noexcept
 

Static Public Attributes

static const uintptr_t kPageSize = 64U * 1024U
 Page size to allocate.
 

Private Attributes

uintptr_t m_uOnionPages
 Number of System memory page (Onion)
 
uintptr_t m_uGarlicPages
 Number of Video memory pages (Garlic)
 

Detailed Description

Used by allocators for memory configuration.


The PS4 has two chunks of memory, System, and Video. This class is used by allocators to configure the number of pages to manage for both.

Constructor & Destructor Documentation

◆ MemoryManagerDefaults() [1/2]

Burger::PS4::MemoryManagerDefaults::MemoryManagerDefaults ( )
inlinenoexcept

Default constructor.

◆ MemoryManagerDefaults() [2/2]

Burger::PS4::MemoryManagerDefaults::MemoryManagerDefaults ( uintptr_t uOnion,
uintptr_t uGarlic )
inlinenoexcept

Initialization constructor.

Member Function Documentation

◆ get_garlic_in_bytes()

BURGER_INLINE uintptr_t Burger::PS4::MemoryManagerDefaults::get_garlic_in_bytes ( ) const
inlinenoexcept

◆ get_garlic_pages()

BURGER_INLINE uintptr_t Burger::PS4::MemoryManagerDefaults::get_garlic_pages ( ) const
inlinenoexcept

◆ get_onion_in_bytes()

BURGER_INLINE uintptr_t Burger::PS4::MemoryManagerDefaults::get_onion_in_bytes ( ) const
inlinenoexcept

◆ get_onion_pages()

BURGER_INLINE uintptr_t Burger::PS4::MemoryManagerDefaults::get_onion_pages ( ) const
inlinenoexcept

◆ get_total_in_bytes()

BURGER_INLINE uintptr_t Burger::PS4::MemoryManagerDefaults::get_total_in_bytes ( ) const
inlinenoexcept

◆ set_garlic_in_bytes()

BURGER_INLINE void Burger::PS4::MemoryManagerDefaults::set_garlic_in_bytes ( uintptr_t bytes)
inlinenoexcept

◆ set_onion_in_bytes()

BURGER_INLINE void Burger::PS4::MemoryManagerDefaults::set_onion_in_bytes ( uintptr_t bytes)
inlinenoexcept

Member Data Documentation

◆ kPageSize

const uintptr_t Burger::PS4::MemoryManagerDefaults::kPageSize = 64U * 1024U
static

Page size to allocate.

◆ m_uGarlicPages

uintptr_t Burger::PS4::MemoryManagerDefaults::m_uGarlicPages
private

Number of Video memory pages (Garlic)

◆ m_uOnionPages

uintptr_t Burger::PS4::MemoryManagerDefaults::m_uOnionPages
private

Number of System memory page (Onion)