diff options
Diffstat (limited to 'include/hw/char/parallel.h')
-rw-r--r-- | include/hw/char/parallel.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/hw/char/parallel.h b/include/hw/char/parallel.h index 29d2876d00..7b5a309a03 100644 --- a/include/hw/char/parallel.h +++ b/include/hw/char/parallel.h @@ -1,10 +1,29 @@ #ifndef HW_PARALLEL_H #define HW_PARALLEL_H +#include "exec/ioport.h" +#include "exec/memory.h" #include "hw/isa/isa.h" +#include "hw/irq.h" +#include "chardev/char-fe.h" #include "chardev/char.h" -#define TYPE_ISA_PARALLEL "isa-parallel" +typedef struct ParallelState { + MemoryRegion iomem; + uint8_t dataw; + uint8_t datar; + uint8_t status; + uint8_t control; + qemu_irq irq; + int irq_pending; + CharBackend chr; + int hw_driver; + int epp_timeout; + uint32_t last_read_offset; /* For debugging */ + /* Memory-mapped interface */ + int it_shift; + PortioList portio_list; +} ParallelState; void parallel_hds_isa_init(ISABus *bus, int n); |