2 * Rasperry Pi 2 emulation and refactoring Copyright (c) 2015, Microsoft
3 * Written by Andrew Baumann
5 * This code is licensed under the GNU GPLv2 and later.
11 #include "hw/sysbus.h"
12 #include "chardev/char-fe.h"
14 #define TYPE_BCM2835_AUX "bcm2835-aux"
15 #define BCM2835_AUX(obj) OBJECT_CHECK(BCM2835AuxState, (obj), TYPE_BCM2835_AUX)
17 #define BCM2835_AUX_RX_FIFO_LEN 8
21 SysBusDevice parent_obj
;
28 uint8_t read_fifo
[BCM2835_AUX_RX_FIFO_LEN
];
29 uint8_t read_pos
, read_count
;