2 * QEMU HP-PARISC PCI support functions.
6 #include "qemu/osdep.h"
12 /* Fallback for unassigned PCI I/O operations. Avoids MCHK. */
14 static uint64_t ignore_read(void *opaque
, hwaddr addr
, unsigned size
)
19 static void ignore_write(void *opaque
, hwaddr addr
, uint64_t v
, unsigned size
)
23 const MemoryRegionOps hppa_pci_ignore_ops
= {
25 .write
= ignore_write
,
26 .endianness
= DEVICE_BIG_ENDIAN
,
38 /* PCI config space reads/writes, to byte-word addressable memory. */
39 static uint64_t bw_conf1_read(void *opaque
, hwaddr addr
,
43 return pci_data_read(b
, addr
, size
);
46 static void bw_conf1_write(void *opaque
, hwaddr addr
,
47 uint64_t val
, unsigned size
)
50 pci_data_write(b
, addr
, val
, size
);
53 const MemoryRegionOps hppa_pci_conf1_ops
= {
54 .read
= bw_conf1_read
,
55 .write
= bw_conf1_write
,
56 .endianness
= DEVICE_BIG_ENDIAN
,
63 /* PCI/EISA Interrupt Acknowledge Cycle. */
65 static uint64_t iack_read(void *opaque
, hwaddr addr
, unsigned size
)
67 return pic_read_irq(isa_pic
);
70 static void special_write(void *opaque
, hwaddr addr
,
71 uint64_t val
, unsigned size
)
73 trace_hppa_pci_iack_write();
76 const MemoryRegionOps hppa_pci_iack_ops
= {
78 .write
= special_write
,
79 .endianness
= DEVICE_BIG_ENDIAN
,