|
PebbleOS v4.47.0-160-g9e782207f
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <pbl/device.h>#include <pbl/kernel/mutex.h>Data Structures | |
| struct | pbl_ram_ops |
| Driver operations. More... | |
| struct | pbl_ram |
| RAM device. More... | |
Macros | |
| #define | PBL_RAM_STATE_DEFINE(sym) |
| #define | PBL_RAM_INIT(sym, _name, _parent, _deps, _ops) |
Functions | |
| int | pbl_ram_dev_init (const struct pbl_device *dev) |
| void | pbl_ram_get_region (const struct pbl_ram *ram, uintptr_t *base, size_t *size) |
| Get where the memory is mapped, and its size. | |
| int | pbl_ram_get (const struct pbl_ram *ram) |
| Start using the memory, powering it on if it is off. | |
| void | pbl_ram_put (const struct pbl_ram *ram) |
| Stop using the memory. | |
| void | pbl_ram_suspend (const struct pbl_ram *ram) |
| Prepare the memory for deep sleep. | |
| void | pbl_ram_resume (const struct pbl_ram *ram) |
| Bring the memory back after deep sleep. | |
| void | pbl_ram_quiesce (const struct pbl_ram *ram) |
| Let the memory settle before the CPU stops its clocks. | |
Variables | |
| const struct pbl_device_class | pbl_ram_class |
| const struct pbl_ram *const | EXTRAM |
| External RAM, behind the kernel scratch heap. | |