qemu-patch-raspberry4/include/hw/misc/bcm2835_mbox_defs.h
Philippe Mathieu-Daudé 6111a0c0ed hw/arm/bcm283x: Correct the license text
The license is the 'GNU General Public License v2.0 or later',
not 'and':

  This program is free software; you can redistribute it and/ori
  modify it under the terms of the GNU General Public License as
  published by the Free Software Foundation; either version 2 of
  the License, or (at your option) any later version.

Fix the license comment.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200312213455.15854-1-philmd@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-03-23 17:22:30 +00:00

30 lines
1.1 KiB
C

/*
* Raspberry Pi emulation (c) 2012 Gregory Estrade
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#ifndef BCM2835_MBOX_DEFS_H
#define BCM2835_MBOX_DEFS_H
/* Constants shared with the ARM identifying separate mailbox channels */
#define MBOX_CHAN_POWER 0 /* for use by the power management interface */
#define MBOX_CHAN_FB 1 /* for use by the frame buffer */
#define MBOX_CHAN_VCHIQ 3 /* for use by the VCHIQ interface */
#define MBOX_CHAN_PROPERTY 8 /* for use by the property channel */
#define MBOX_CHAN_COUNT 9
#define MBOX_SIZE 32
#define MBOX_INVALID_DATA 0x0f
/* Layout of the private address space used for communication between
* the mbox device emulation, and child devices: each channel occupies
* 16 bytes of address space, but only two registers are presently defined.
*/
#define MBOX_AS_CHAN_SHIFT 4
#define MBOX_AS_DATA 0 /* request / response data (RW at offset 0) */
#define MBOX_AS_PENDING 4 /* pending response status (RO at offset 4) */
#endif /* BCM2835_MBOX_DEFS_H */