diff options
author | Christian Cunningham <cc@localhost> | 2021-12-21 21:55:56 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-21 21:55:56 -0800 |
commit | ce90c0aa44b1f07ddd59159ae60e6f63357d85b8 (patch) | |
tree | abff13d15a2b2248068b5d576b31f6b882488d56 /src/graphics/mbox.h | |
parent | 55f9f2e10b9e768cbd99ca195f430d2252dcb918 (diff) |
Fixed Graphics
Diffstat (limited to 'src/graphics/mbox.h')
-rw-r--r-- | src/graphics/mbox.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/graphics/mbox.h b/src/graphics/mbox.h new file mode 100644 index 0000000..fe021a2 --- /dev/null +++ b/src/graphics/mbox.h @@ -0,0 +1,27 @@ +#ifndef GRAPHICS_MBOX_H +#define GRAPHICS_MBOX_H + +/* a properly aligned buffer */ +extern volatile unsigned int mbox[36]; + +#define MBOX_REQUEST 0 + +/* channels */ +#define MBOX_CH_POWER 0 +#define MBOX_CH_FB 1 +#define MBOX_CH_VUART 2 +#define MBOX_CH_VCHIQ 3 +#define MBOX_CH_LEDS 4 +#define MBOX_CH_BTNS 5 +#define MBOX_CH_TOUCH 6 +#define MBOX_CH_COUNT 7 +#define MBOX_CH_PROP 8 + +/* tags */ +#define MBOX_TAG_SETPOWER 0x28001 +#define MBOX_TAG_SETCLKRATE 0x38002 +#define MBOX_TAG_LAST 0 + +int mbox_call(unsigned char ch); + +#endif |