llvm-mos-sdk
Functions | Variables
mmu.h File Reference
#include <stdint.h>
Include dependency graph for mmu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t rpc8e_redbus_map (uint8_t device_id)
 Map a given RedBus device ID to memory. Return the previous device's ID. More...
 
void rpc8e_redbus_set_map (uint8_t device_id)
 Map a given RedBus device ID to memory. More...
 
uint8_t rpc8e_redbus_get_map (void)
 Get the currently mapped RedBus device ID. More...
 
void rpc8e_redbus_window_set_offset (uint16_t offset)
 
uint16_t rpc8e_redbus_window_get_offset (void)
 
void rpc8e_redbus_enable (void)
 Enable the RedBus memory mapping. More...
 
void rpc8e_redbus_disable (void)
 Disable the RedBus memory mapping. More...
 
void rpc8e_mmu_ext_window_set (uint16_t addr)
 
uint16_t rpc8e_mmu_ext_window_get (void)
 
void rpc8e_mmu_ext_window_enable (void)
 
void rpc8e_mmu_ext_window_disable (void)
 
void rpc8e_mmu_set_brk_address (uint16_t addr)
 Set the BRK address. More...
 
uint16_t rpc8e_mmu_get_brk_address (void)
 Get the current BRK address. More...
 
void rpc8e_mmu_set_por_address (uint16_t addr)
 Set the POR (power-on/reset) address. More...
 
uint16_t rpc8e_mmu_get_por_address (void)
 Get the current POR (power-on/reset) address. More...
 

Variables

uint8_t boot_drive_id
 
uint8_t boot_display_id
 

Detailed Description

Functionality related to the MMU.

Function Documentation

◆ rpc8e_mmu_ext_window_disable()

void rpc8e_mmu_ext_window_disable ( void  )

◆ rpc8e_mmu_ext_window_enable()

void rpc8e_mmu_ext_window_enable ( void  )

◆ rpc8e_mmu_ext_window_get()

uint16_t rpc8e_mmu_ext_window_get ( void  )

◆ rpc8e_mmu_ext_window_set()

void rpc8e_mmu_ext_window_set ( uint16_t  addr)

◆ rpc8e_mmu_get_brk_address()

uint16_t rpc8e_mmu_get_brk_address ( void  )

Get the current BRK address.

◆ rpc8e_mmu_get_por_address()

uint16_t rpc8e_mmu_get_por_address ( void  )

Get the current POR (power-on/reset) address.

◆ rpc8e_mmu_set_brk_address()

void rpc8e_mmu_set_brk_address ( uint16_t  addr)

Set the BRK address.

◆ rpc8e_mmu_set_por_address()

void rpc8e_mmu_set_por_address ( uint16_t  addr)

Set the POR (power-on/reset) address.

◆ rpc8e_redbus_disable()

void rpc8e_redbus_disable ( void  )

Disable the RedBus memory mapping.

◆ rpc8e_redbus_enable()

void rpc8e_redbus_enable ( void  )

Enable the RedBus memory mapping.

◆ rpc8e_redbus_get_map()

uint8_t rpc8e_redbus_get_map ( void  )

Get the currently mapped RedBus device ID.

Returns
uint8_t The current device ID.

◆ rpc8e_redbus_map()

uint8_t rpc8e_redbus_map ( uint8_t  device_id)

Map a given RedBus device ID to memory. Return the previous device's ID.

Parameters
device_idThe device ID.
Returns
uint8_t The previous device ID.

◆ rpc8e_redbus_set_map()

void rpc8e_redbus_set_map ( uint8_t  device_id)

Map a given RedBus device ID to memory.

Parameters
device_idThe device ID.

◆ rpc8e_redbus_window_get_offset()

uint16_t rpc8e_redbus_window_get_offset ( void  )

◆ rpc8e_redbus_window_set_offset()

void rpc8e_redbus_window_set_offset ( uint16_t  offset)

Variable Documentation

◆ boot_display_id

uint8_t boot_display_id

◆ boot_drive_id

uint8_t boot_drive_id