2 * QEMU HP-PARISC PCI support functions.
6 #include "qemu/osdep.h"
9 #include "hw/pci/pci.h"
10 #include "hw/pci/pci_host.h"
11 #include "hw/intc/i8259.h"
15 /* PCI config space reads/writes, to byte-word addressable memory. */
16 static uint64_t bw_conf1_read(void *opaque
, hwaddr addr
,
20 return pci_data_read(b
, addr
, size
);
23 static void bw_conf1_write(void *opaque
, hwaddr addr
,
24 uint64_t val
, unsigned size
)
27 pci_data_write(b
, addr
, val
, size
);
30 const MemoryRegionOps hppa_pci_conf1_ops
= {
31 .read
= bw_conf1_read
,
32 .write
= bw_conf1_write
,
33 .endianness
= DEVICE_BIG_ENDIAN
,
40 /* PCI/EISA Interrupt Acknowledge Cycle. */
42 static uint64_t iack_read(void *opaque
, hwaddr addr
, unsigned size
)
44 return pic_read_irq(isa_pic
);
47 static void special_write(void *opaque
, hwaddr addr
,
48 uint64_t val
, unsigned size
)
50 trace_hppa_pci_iack_write();
53 const MemoryRegionOps hppa_pci_iack_ops
= {
55 .write
= special_write
,
56 .endianness
= DEVICE_BIG_ENDIAN
,