XenevaOS
Loading...
Searching...
No Matches
mbox.h
Go to the documentation of this file.
1
30#ifndef __MBOX_H__
31#define __MBOX_H__
32
33#include "../xnldr.h"
34#define VIDEOCORE_MBOX (MMIO_BASE + 0x0000B880)
35#define MBOX_READ ((volatile unsigned int*)(VIDEOCORE_MBOX + 0x0))
36#define MBOX_POLL ((volatile unsigned int*)(VIDEOCORE_MBOX + 0x10))
37#define MBOX_SENDER ((volatile unsigned int*)(VIDEOCORE_MBOX + 0x14))
38#define MBOX_STATUS ((volatile unsigned int*)(VIDEOCORE_MBOX + 0x18))
39#define MBOX_CONFIG ((volatile unsigned int*)(VIDEOCORE_MBOX + 0x1C))
40#define MBOX_WRITE ((volatile unsigned int*)(VIDEOCORE_MBOX + 0x20))
41#define MBOX_RESPONSE 0x80000000
42#define MBOX_FULL 0x80000000
43#define MBOX_EMPTY 0x40000000
44
45#define MBOX_REQUEST 0
46
47#define MBOX_CH_POWER 0
48#define MBOX_CH_FB 1
49#define MBOX_CH_VUART 2
50#define MBOX_CH_VCHIQ 3
51#define MBOX_CH_LEDS 4
52#define MBOX_CH_BTNS 5
53#define MBOX_CH_TOUCH 6
54#define MBOX_CH_COUNT 7
55#define MBOX_CH_PROP 8
56
57#define MBOX_TAG_GETSERIAL 0x1004
58#define MBOX_TAG_SETCLKRATE 0x38002
59#define MBOX_TAG_LAST 0
60
62
63#endif
void RPI3BUartInit()