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 
55 
60 
65 
70 
75 
80 
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif /* _RPC8E_MMU_H_ */
uint8_t boot_display_id
void rpc8e_redbus_disable(void)
Disable the RedBus memory mapping.
void rpc8e_redbus_set_map(uint8_t device_id)
Map a given RedBus device ID to memory.
void rpc8e_mmu_ext_window_disable(void)
uint8_t rpc8e_redbus_get_map(void)
Get the currently mapped RedBus device ID.
void rpc8e_mmu_set_por_address(uint16_t addr)
Set the POR (power-on/reset) address.
uint16_t rpc8e_mmu_get_brk_address(void)
Get the current BRK address.
uint16_t rpc8e_mmu_ext_window_get(void)
void rpc8e_mmu_ext_window_set(uint16_t addr)
void rpc8e_redbus_window_set_offset(uint16_t offset)
void rpc8e_redbus_enable(void)
Enable the RedBus memory mapping.
uint8_t boot_drive_id
void rpc8e_mmu_set_brk_address(uint16_t addr)
Set the BRK address.
uint16_t rpc8e_redbus_window_get_offset(void)
uint16_t rpc8e_mmu_get_por_address(void)
Get the current POR (power-on/reset) address.
uint8_t rpc8e_redbus_map(uint8_t device_id)
Map a given RedBus device ID to memory. Return the previous device's ID.
void rpc8e_mmu_ext_window_enable(void)
::uint16_t uint16_t
Definition: cstdint:22
::uint8_t uint8_t
Definition: cstdint:21