Home
last modified time | relevance | path

Searched refs:ahb_pnp (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/misc/
H A Dgrlib_ahb_apb_pnp.c135 AHBPnp *ahb_pnp = GRLIB_AHB_PNP(opaque); in grlib_ahb_pnp_read() local
138 val = ahb_pnp->regs[offset >> 2]; in grlib_ahb_pnp_read()
163 AHBPnp *ahb_pnp = GRLIB_AHB_PNP(dev); in grlib_ahb_pnp_realize() local
166 memory_region_init_io(&ahb_pnp->iomem, OBJECT(dev), &grlib_ahb_pnp_ops, in grlib_ahb_pnp_realize()
167 ahb_pnp, TYPE_GRLIB_AHB_PNP, GRLIB_PNP_MAX_REGS); in grlib_ahb_pnp_realize()
168 sysbus_init_mmio(sbd, &ahb_pnp->iomem); in grlib_ahb_pnp_realize()
/openbmc/qemu/hw/sparc/
H A Dleon3.c273 AHBPnp *ahb_pnp; in leon3_generic_hw_init() local
294 ahb_pnp = GRLIB_AHB_PNP(qdev_new(TYPE_GRLIB_AHB_PNP)); in leon3_generic_hw_init()
295 sysbus_realize_and_unref(SYS_BUS_DEVICE(ahb_pnp), &error_fatal); in leon3_generic_hw_init()
296 sysbus_mmio_map(SYS_BUS_DEVICE(ahb_pnp), 0, LEON3_AHB_PNP_OFFSET); in leon3_generic_hw_init()
297 grlib_ahb_pnp_add_entry(ahb_pnp, 0, 0, GRLIB_VENDOR_GAISLER, in leon3_generic_hw_init()
304 grlib_ahb_pnp_add_entry(ahb_pnp, LEON3_APB_PNP_OFFSET, 0xFFF, in leon3_generic_hw_init()