]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/misc/bcm2835_mphi.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / misc / bcm2835_mphi.h
CommitLineData
3d46938b
PZ
1/*
2 * BCM2835 SOC MPHI state definitions
3 *
4 * Copyright (c) 2020 Paul Zimmerman <pauldzim@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#ifndef HW_MISC_BCM2835_MPHI_H
18#define HW_MISC_BCM2835_MPHI_H
19
20#include "hw/irq.h"
21#include "hw/sysbus.h"
db1015e9 22#include "qom/object.h"
3d46938b
PZ
23
24#define MPHI_MMIO_SIZE 0x1000
25
26typedef struct BCM2835MphiState BCM2835MphiState;
27
28struct BCM2835MphiState {
29 SysBusDevice parent_obj;
30 qemu_irq irq;
31 MemoryRegion iomem;
32
33 uint32_t outdda;
34 uint32_t outddb;
35 uint32_t ctrl;
36 uint32_t intstat;
37 uint32_t swirq;
38};
39
40#define TYPE_BCM2835_MPHI "bcm2835-mphi"
41
8110fa1d
EH
42DECLARE_INSTANCE_CHECKER(BCM2835MphiState, BCM2835_MPHI,
43 TYPE_BCM2835_MPHI)
3d46938b
PZ
44
45#endif