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
46
47#define MBOX_REQUEST 0
48
49#define MBOX_CH_POWER 0
50#define MBOX_CH_FB 1
51#define MBOX_CH_VUART 2
52#define MBOX_CH_VCHIQ 3
53#define MBOX_CH_LEDS 4
54#define MBOX_CH_BTNS 5
55#define MBOX_CH_TOUCH 6
56#define MBOX_CH_COUNT 7
57#define MBOX_CH_PROP 8
58
59#define MBOX_TAG_GETSERIAL 0x1004
60#define MBOX_TAG_SETCLKRATE 0x38002
61#define MBOX_TAG_LAST 0
62
63
65
66#endif
void RPI3BUartInit()