2 * Rasperry Pi 2 emulation and refactoring Copyright (c) 2015, Microsoft
3 * Written by Andrew Baumann
5 * This work is licensed under the terms of the GNU GPL, version 2 or later.
6 * See the COPYING file in the top-level directory.
12 #include "hw/sysbus.h"
13 #include "chardev/char-fe.h"
15 #define TYPE_BCM2835_AUX "bcm2835-aux"
16 #define BCM2835_AUX(obj) OBJECT_CHECK(BCM2835AuxState, (obj), TYPE_BCM2835_AUX)
18 #define BCM2835_AUX_RX_FIFO_LEN 8
22 SysBusDevice parent_obj
;
29 uint8_t read_fifo
[BCM2835_AUX_RX_FIFO_LEN
];
30 uint8_t read_pos
, read_count
;