ee3d1f1b46
ParallelState::portio_list isn't used inside ParallelState context but only inside ISAParallelState context, so move it there. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Message-Id: <20240114123911.4877-4-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
33 lines
733 B
C
33 lines
733 B
C
#ifndef HW_PARALLEL_H
|
|
#define HW_PARALLEL_H
|
|
|
|
#include "exec/memory.h"
|
|
#include "hw/isa/isa.h"
|
|
#include "hw/irq.h"
|
|
#include "chardev/char-fe.h"
|
|
#include "chardev/char.h"
|
|
|
|
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;
|
|
} ParallelState;
|
|
|
|
void parallel_hds_isa_init(ISABus *bus, int n);
|
|
|
|
bool parallel_mm_init(MemoryRegion *address_space,
|
|
hwaddr base, int it_shift, qemu_irq irq,
|
|
Chardev *chr);
|
|
|
|
#endif
|