XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
mbox.h File Reference
#include "..\xnldr.h"
Include dependency graph for mbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VIDEOCORE_MBOX   (MMIO_BASE + 0x0000B880)
 
#define MBOX_READ   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x0))
 
#define MBOX_POLL   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x10))
 
#define MBOX_SENDER   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x14))
 
#define MBOX_STATUS   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x18))
 
#define MBOX_CONFIG   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x1C))
 
#define MBOX_WRITE   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x20))
 
#define MBOX_RESPONSE   0x80000000
 
#define MBOX_FULL   0x80000000
 
#define MBOX_EMPTY   0x40000000
 
#define MBOX_REQUEST   0
 
#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
 
#define MBOX_TAG_GETSERIAL   0x1004
 
#define MBOX_TAG_SETCLKRATE   0x38002
 
#define MBOX_TAG_LAST   0
 

Functions

void RPI3BUartInit ()
 

Macro Definition Documentation

◆ MBOX_CH_BTNS

#define MBOX_CH_BTNS   5

◆ MBOX_CH_COUNT

#define MBOX_CH_COUNT   7

◆ MBOX_CH_FB

#define MBOX_CH_FB   1

◆ MBOX_CH_LEDS

#define MBOX_CH_LEDS   4

◆ MBOX_CH_POWER

#define MBOX_CH_POWER   0

◆ MBOX_CH_PROP

#define MBOX_CH_PROP   8

◆ MBOX_CH_TOUCH

#define MBOX_CH_TOUCH   6

◆ MBOX_CH_VCHIQ

#define MBOX_CH_VCHIQ   3

◆ MBOX_CH_VUART

#define MBOX_CH_VUART   2

◆ MBOX_CONFIG

#define MBOX_CONFIG   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x1C))

◆ MBOX_EMPTY

#define MBOX_EMPTY   0x40000000

◆ MBOX_FULL

#define MBOX_FULL   0x80000000

◆ MBOX_POLL

#define MBOX_POLL   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x10))

◆ MBOX_READ

#define MBOX_READ   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x0))

◆ MBOX_REQUEST

#define MBOX_REQUEST   0

◆ MBOX_RESPONSE

#define MBOX_RESPONSE   0x80000000

◆ MBOX_SENDER

#define MBOX_SENDER   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x14))

◆ MBOX_STATUS

#define MBOX_STATUS   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x18))

◆ MBOX_TAG_GETSERIAL

#define MBOX_TAG_GETSERIAL   0x1004

◆ MBOX_TAG_LAST

#define MBOX_TAG_LAST   0

◆ MBOX_TAG_SETCLKRATE

#define MBOX_TAG_SETCLKRATE   0x38002

◆ MBOX_WRITE

#define MBOX_WRITE   ((volatile unsigned int*)(VIDEOCORE_MBOX+0x20))

◆ VIDEOCORE_MBOX

#define VIDEOCORE_MBOX   (MMIO_BASE + 0x0000B880)

BSD 2-Clause License

Copyright (c) 2023-2025, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ RPI3BUartInit()

void RPI3BUartInit ( )