PebbleOS v4.47.0-327-g7753e801d
Loading...
Searching...
No Matches
QEMU PSRAM

RAM driver for the PSRAM of the QEMU Pebble machines. More...

Data Structures

struct  pbl_ram_qemu
 QEMU PSRAM. More...
 

Macros

#define PBL_RAM_QEMU_DEFINE(sym, _name, _base, _size)
 Define a QEMU PSRAM.
 

Detailed Description

RAM driver for the PSRAM of the QEMU Pebble machines.

The memory is always mapped and powered: it takes no setting up and has no power states.


Data Structure Documentation

◆ pbl_ram_qemu

struct pbl_ram_qemu

QEMU PSRAM.

Data Fields
uintptr_t base CPU address of the memory.
struct pbl_ram ram RAM device.
size_t size Size of the memory, in bytes.

Macro Definition Documentation

◆ PBL_RAM_QEMU_DEFINE

#define PBL_RAM_QEMU_DEFINE (   sym,
  _name,
  _base,
  _size 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_ram_qemu, struct pbl_ram, ram) { \
.ram = PBL_RAM_INIT(sym, _name, nullptr, nullptr, &pbl_ram_qemu_ops), .base = (_base), \
.size = (_size), \
}
QEMU PSRAM.
Definition qemu.h:18
RAM device.
Definition ram.h:71
#define PBL_RAM_STATE_DEFINE(sym)
Definition ram.h:86
#define PBL_RAM_INIT(sym, _name, _parent, _deps, _ops)
Definition ram.h:90

Define a QEMU PSRAM.

Parameters
symSymbol of the device.
_nameName.
_baseCPU address of the memory.
_sizeSize of the memory, in bytes.