def attachOnChipIO(self, bus, bridge=None, dma_ports=[]):
    self.gic.pio = bus.master
    self.vgic.pio = bus.master
    self.local_cpu_timer.pio = bus.master
    if hasattr(self, 'gicv2m'):
        self.gicv2m.pio = bus.master
    if (dma_ports.count(self.hdlcd.dma) == 0):
        self.hdlcd.dma = bus.slave
    if bridge:
        bridge.ranges = [AddrRange(788529152, size='16MB'), AddrRange(721420288, size='4MB'), AddrRange(805306368, size='256MB'), AddrRange(1073741824, size='512MB'), AddrRange(402653184, size='64MB'), AddrRange(469762048, size='64MB')]
def attachOnChipIO(self, bus, bridge=None, dma_ports=[]):
    self.gic.pio = bus.master
    self.vgic.pio = bus.master
    self.local_cpu_timer.pio = bus.master
    if hasattr(self, 'gicv2m'):
        self.gicv2m.pio = bus.master
    if (dma_ports.count(self.hdlcd.dma) == 0):
        self.hdlcd.dma = bus.slave
    if bridge:
        bridge.ranges = [AddrRange(788529152, size='16MB'), AddrRange(721420288, size='4MB'), AddrRange(805306368, size='256MB'), AddrRange(1073741824, size='512MB'), AddrRange(402653184, size='64MB'), AddrRange(469762048, size='64MB')]