diff options
| author | Christian Cunningham <cc@localhost> | 2022-01-05 14:27:09 -0800 | 
|---|---|---|
| committer | Christian Cunningham <cc@localhost> | 2022-01-05 14:27:09 -0800 | 
| commit | 866a6ca0e749f4446b7fdc7579a6d553df85ec10 (patch) | |
| tree | d259223d85c224d649c6c38675e99b155d50cf48 /include/graphics/mbox.h | |
| parent | 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (diff) | |
Moved includes to its own directory
Diffstat (limited to 'include/graphics/mbox.h')
| -rw-r--r-- | include/graphics/mbox.h | 27 | 
1 files changed, 27 insertions, 0 deletions
| diff --git a/include/graphics/mbox.h b/include/graphics/mbox.h new file mode 100644 index 0000000..fe021a2 --- /dev/null +++ b/include/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 | 
