llvm-mos-sdk
mmu.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Adrian "asie" Siekierka
3  *
4  * Licensed under the Apache License, Version 2.0 with LLVM Exceptions,
5  * See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
6  * information.
7  */
8 
9 #ifndef _RPC8E_MMU_H_
10 #define _RPC8E_MMU_H_
11 
12 #include <stdint.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
22 extern uint8_t boot_drive_id;
24 
33 
39 void rpc8e_redbus_set_map(uint8_t device_id);
40 
47 
50 
54 void rpc8e_redbus_enable(void);
55 
59 void rpc8e_redbus_disable(void);
60 
65 
70 
75 
80 
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif /* _RPC8E_MMU_H_ */
std::uint16_t
::uint16_t uint16_t
Definition: cstdint:22
rpc8e_redbus_window_set_offset
void rpc8e_redbus_window_set_offset(uint16_t offset)
rpc8e_mmu_ext_window_get
uint16_t rpc8e_mmu_ext_window_get(void)
boot_display_id
uint8_t boot_display_id
rpc8e_redbus_get_map
uint8_t rpc8e_redbus_get_map(void)
Get the currently mapped RedBus device ID.
rpc8e_mmu_ext_window_set
void rpc8e_mmu_ext_window_set(uint16_t addr)
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
rpc8e_redbus_disable
void rpc8e_redbus_disable(void)
Disable the RedBus memory mapping.
rpc8e_mmu_ext_window_disable
void rpc8e_mmu_ext_window_disable(void)
rpc8e_mmu_set_brk_address
void rpc8e_mmu_set_brk_address(uint16_t addr)
Set the BRK address.
rpc8e_redbus_enable
void rpc8e_redbus_enable(void)
Enable the RedBus memory mapping.
rpc8e_mmu_get_por_address
uint16_t rpc8e_mmu_get_por_address(void)
Get the current POR (power-on/reset) address.
rpc8e_redbus_set_map
void rpc8e_redbus_set_map(uint8_t device_id)
Map a given RedBus device ID to memory.
boot_drive_id
uint8_t boot_drive_id
rpc8e_redbus_window_get_offset
uint16_t rpc8e_redbus_window_get_offset(void)
rpc8e_mmu_ext_window_enable
void rpc8e_mmu_ext_window_enable(void)
rpc8e_mmu_set_por_address
void rpc8e_mmu_set_por_address(uint16_t addr)
Set the POR (power-on/reset) address.
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.
rpc8e_mmu_get_brk_address
uint16_t rpc8e_mmu_get_brk_address(void)
Get the current BRK address.