mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
As a demo, query the firmware version. `Meta/serenity.sh gdb aarch64` can be used to observe that qemu puts 0x548E1 in x0 in response to this mailbox message.
23 lines
471 B
C++
23 lines
471 B
C++
/*
|
|
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
namespace Prekernel {
|
|
|
|
// Can exchange mailbox messages with the Raspberry Pi's VideoCore chip.
|
|
// https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface
|
|
class Mailbox {
|
|
public:
|
|
static bool call(u8 channel, u32 volatile* __attribute__((aligned(16))) data);
|
|
|
|
static u32 query_firmware_version();
|
|
};
|
|
|
|
}
|