Lines Matching +full:protect +full:- +full:exec

29 #include "hw/qdev-properties.h"
31 #include "exec/address-spaces.h"
33 #include "qemu/error-report.h" /* for error_report() */
39 #define TYPE_PREP_SYSTEMIO "prep-systemio"
43 #define PREP_BIT(n) (1 << (7 - (n)))
59 /* PORT 0092 -- Special Port 92 (Read/Write) */
72 s->sreset = val & PORT0092_SOFTRESET; in prep_port0092_write()
73 qemu_set_irq(s->softreset_irq, s->sreset); in prep_port0092_write()
77 error_report("little-endian mode not supported"); in prep_port0092_write()
87 trace_prep_systemio_read(addr, s->sreset); in prep_port0092_read()
88 return s->sreset; in prep_port0092_read()
91 /* PORT 0808 -- Hardfile Light Register (Write Only) */
102 /* PORT 0810 -- Password Protect 1 Register (Write Only) */
110 /* PORT 0812 -- Password Protect 2 Register (Write Only) */
118 /* PORT 0814 -- L2 Invalidate Register (Write Only) */
125 /* PORT 0818 -- Reserved for Keylock (Read Only) */
138 /* PORT 080C -- Equipment */
151 trace_prep_systemio_read(addr, s->equipment); in prep_port080c_read()
152 return s->equipment; in prep_port080c_read()
155 /* PORT 081C -- System Control Register (Read/Write) */
172 s->system_control = val & mask; in prep_port081c_write()
178 trace_prep_systemio_read(addr, s->system_control); in prep_port081c_read()
179 return s->system_control; in prep_port081c_read()
187 trace_prep_systemio_read(addr, s->ibm_planar_id); in prep_port0852_read()
188 return s->ibm_planar_id; in prep_port0852_read()
191 /* PORT 0850 -- I/O Map Type Register (Read/Write) */
200 trace_prep_systemio_read(addr, s->iomap_type); in prep_port0850_read()
201 return s->iomap_type; in prep_port0850_read()
209 qemu_set_irq(s->non_contiguous_io_map_irq, in prep_port0850_write()
211 s->iomap_type = val & PORT0850_IOMAP_NONCONTIGUOUS; in prep_port0850_write()
260 qdev_init_gpio_out(dev, &s->non_contiguous_io_map_irq, 1); in prep_systemio_realize()
261 s->iomap_type = PORT0850_IOMAP_NONCONTIGUOUS; in prep_systemio_realize()
262 qemu_set_irq(s->non_contiguous_io_map_irq, in prep_systemio_realize()
263 s->iomap_type & PORT0850_IOMAP_NONCONTIGUOUS); in prep_systemio_realize()
265 s->softreset_irq = qdev_get_gpio_in(DEVICE(cpu), PPC6xx_INPUT_HRESET); in prep_systemio_realize()
267 isa_register_portio_list(isa, &s->portio, 0x0, ppc_io800_port_list, s, in prep_systemio_realize()
270 memory_region_init_io(&s->ppc_parity_mem, OBJECT(dev), in prep_systemio_realize()
271 &ppc_parity_error_ops, s, "ppc-parity", 0x4); in prep_systemio_realize()
273 &s->ppc_parity_mem); in prep_systemio_realize()
289 DEFINE_PROP_UINT8("ibm-planar-id", PrepSystemIoState, ibm_planar_id, 0),
298 dc->realize = prep_systemio_realize; in prep_systemio_class_initfn()
299 dc->vmsd = &vmstate_prep_systemio; in prep_systemio_class_initfn()