ppc/pnv: Add a HIOMAP erase command
[qemu.git] / include / hw / misc / bcm2835_mbox_defs.h
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
7
8 #ifndef BCM2835_MBOX_DEFS_H
9 #define BCM2835_MBOX_DEFS_H
10
11 /* Constants shared with the ARM identifying separate mailbox channels */
12 #define MBOX_CHAN_POWER 0 /* for use by the power management interface */
13 #define MBOX_CHAN_FB 1 /* for use by the frame buffer */
14 #define MBOX_CHAN_VCHIQ 3 /* for use by the VCHIQ interface */
15 #define MBOX_CHAN_PROPERTY 8 /* for use by the property channel */
16 #define MBOX_CHAN_COUNT 9
17
18 #define MBOX_SIZE 32
19 #define MBOX_INVALID_DATA 0x0f
20
21 /* Layout of the private address space used for communication between
22 * the mbox device emulation, and child devices: each channel occupies
23 * 16 bytes of address space, but only two registers are presently defined.
24 */
25 #define MBOX_AS_CHAN_SHIFT 4
26 #define MBOX_AS_DATA 0 /* request / response data (RW at offset 0) */
27 #define MBOX_AS_PENDING 4 /* pending response status (RO at offset 4) */
28
29 #endif /* BCM2835_MBOX_DEFS_H */