2 * Raspberry Pi (BCM2835) GPIO Controller
4 * Copyright (c) 2017 Antfield SAS
7 * Clement Deschamps <clement.deschamps@antfield.fr>
8 * Luc Michel <luc.michel@antfield.fr>
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
14 #ifndef BCM2835_GPIO_H
15 #define BCM2835_GPIO_H
18 #include "hw/sysbus.h"
20 typedef struct BCM2835GpioState
{
21 SysBusDevice parent_obj
;
36 #define TYPE_BCM2835_GPIO "bcm2835_gpio"
37 #define BCM2835_GPIO(obj) \
38 OBJECT_CHECK(BCM2835GpioState, (obj), TYPE_BCM2835_GPIO)