xref: /openbmc/qemu/include/hw/char/parallel-isa.h (revision ee48fef0)
1 /*
2  * QEMU ISA Parallel PORT emulation
3  *
4  * Copyright (c) 2003-2005 Fabrice Bellard
5  * Copyright (c) 2007 Marko Kohtala
6  *
7  * SPDX-License-Identifier: MIT
8  */
9 
10 #ifndef HW_PARALLEL_ISA_H
11 #define HW_PARALLEL_ISA_H
12 
13 #include "parallel.h"
14 
15 #include "exec/ioport.h"
16 #include "hw/isa/isa.h"
17 #include "qom/object.h"
18 
19 #define TYPE_ISA_PARALLEL "isa-parallel"
20 OBJECT_DECLARE_SIMPLE_TYPE(ISAParallelState, ISA_PARALLEL)
21 
22 struct ISAParallelState {
23     ISADevice parent_obj;
24 
25     uint32_t index;
26     uint32_t iobase;
27     uint32_t isairq;
28     ParallelState state;
29     PortioList portio_list;
30 };
31 
32 void isa_parallel_set_iobase(ISADevice *parallel, hwaddr iobase);
33 void isa_parallel_set_enabled(ISADevice *parallel, bool enabled);
34 
35 #endif /* HW_PARALLEL_ISA_H */
36