smol-gilbraltar/include/mbox.h

22 lines
503 B
C
Raw Normal View History

2024-12-20 22:45:12 +00:00
#ifndef __GILBRALTAR_MBOX__
#define __GILBRALTAR_MBOX__
#include <bcm.h>
#include <stdint.h>
#define MAILBOX_BASE (ARM_IO_BASE + 0x13880)
#define MAILBOX0_READ (MAILBOX_BASE + 0x00)
#define MAILBOX0_STATUS (MAILBOX_BASE + 0x18)
#define MAILBOX1_WRITE (MAILBOX_BASE + 0x20)
#define MAILBOX1_STATUS (MAILBOX_BASE + 0x38)
#define MAILBOX_STATUS_EMPTY 0x40000000
#define MAILBOX_STATUS_FULL 0x80000000
#define BCM_MAILBOX_PROP_OUT 8
uint32_t gilbraltar_mbox_write_read(uintptr_t data);
#endif