From ce90c0aa44b1f07ddd59159ae60e6f63357d85b8 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 21 Dec 2021 21:55:56 -0800 Subject: Fixed Graphics --- src/graphics/mbox.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/graphics/mbox.h (limited to 'src/graphics/mbox.h') 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 -- cgit v1.2.1