6111a0c0ed
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>
35 lines
776 B
C
35 lines
776 B
C
/*
|
|
* Rasperry Pi 2 emulation and refactoring Copyright (c) 2015, Microsoft
|
|
* Written by Andrew Baumann
|
|
*
|
|
* 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_AUX_H
|
|
#define BCM2835_AUX_H
|
|
|
|
#include "hw/sysbus.h"
|
|
#include "chardev/char-fe.h"
|
|
|
|
#define TYPE_BCM2835_AUX "bcm2835-aux"
|
|
#define BCM2835_AUX(obj) OBJECT_CHECK(BCM2835AuxState, (obj), TYPE_BCM2835_AUX)
|
|
|
|
#define BCM2835_AUX_RX_FIFO_LEN 8
|
|
|
|
typedef struct {
|
|
/*< private >*/
|
|
SysBusDevice parent_obj;
|
|
/*< public >*/
|
|
|
|
MemoryRegion iomem;
|
|
CharBackend chr;
|
|
qemu_irq irq;
|
|
|
|
uint8_t read_fifo[BCM2835_AUX_RX_FIFO_LEN];
|
|
uint8_t read_pos, read_count;
|
|
uint8_t ier, iir;
|
|
} BCM2835AuxState;
|
|
|
|
#endif
|