17#ifndef ZEPHYR_INCLUDE_DRIVERS_MM_DRV_BANK_H
18#define ZEPHYR_INCLUDE_DRIVERS_MM_DRV_BANK_H
24#define SRAM_BANK_PAGE_NUM (SRAM_BANK_SIZE / CONFIG_MM_DRV_PAGE_SIZE)
uint32_t sys_mm_drv_bank_page_unmapped(struct mem_drv_bank *bank)
Track the unmapping of a page in the specified memory bank.
void sys_mm_drv_bank_init(struct mem_drv_bank *bank, uint32_t bank_pages)
Initialize a memory bank's data structure.
uint32_t sys_mm_drv_bank_page_mapped(struct mem_drv_bank *bank)
Track the mapping of a page in the specified memory bank.
void sys_mm_drv_bank_stats_reset_max(struct mem_drv_bank *bank)
Reset the max number of pages mapped in the bank.
void sys_mm_drv_bank_stats_get(struct mem_drv_bank *bank, struct sys_memory_stats *stats)
Retrieve the memory usage stats for the specified memory bank.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
Definition: mm_drv_bank.h:26
uint32_t max_mapped_pages
Definition: mm_drv_bank.h:29
uint32_t mapped_pages
Definition: mm_drv_bank.h:28
uint32_t unmapped_pages
Definition: mm_drv_bank.h:27
Definition: mem_stats.h:24