static uint64_t omap_tipb_bridge_read(void *opaque, target_phys_addr_t addr,

                                      unsigned size)

{

    struct omap_tipb_bridge_s *s = (struct omap_tipb_bridge_s *) opaque;



    if (size < 2) {

        return omap_badwidth_read16(opaque, addr);

    }



    switch (addr) {

    case 0x00:	/* TIPB_CNTL */

        return s->control;

    case 0x04:	/* TIPB_BUS_ALLOC */

        return s->alloc;

    case 0x08:	/* MPU_TIPB_CNTL */

        return s->buffer;

    case 0x0c:	/* ENHANCED_TIPB_CNTL */

        return s->enh_control;

    case 0x10:	/* ADDRESS_DBG */

    case 0x14:	/* DATA_DEBUG_LOW */

    case 0x18:	/* DATA_DEBUG_HIGH */

        return 0xffff;

    case 0x1c:	/* DEBUG_CNTR_SIG */

        return 0x00f8;

    }



    OMAP_BAD_REG(addr);

    return 0;

}

static uint64_t omap_tipb_bridge_read(void *opaque, target_phys_addr_t addr,

                                      unsigned size)

{

    struct omap_tipb_bridge_s *s = (struct omap_tipb_bridge_s *) opaque;



    if (size < 2) {

        return omap_badwidth_read16(opaque, addr);

    }



    switch (addr) {

    case 0x00:	

        return s->control;

    case 0x04:	

        return s->alloc;

    case 0x08:	

        return s->buffer;

    case 0x0c:	

        return s->enh_control;

    case 0x10:	

    case 0x14:	

    case 0x18:	

        return 0xffff;

    case 0x1c:	

        return 0x00f8;

    }



    OMAP_BAD_REG(addr);

    return 0;

}

static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,

                                      unsigned size)

{

    struct omap_tipb_bridge_s *VAR_0 = (struct omap_tipb_bridge_s *) opaque;



    if (size < 2) {

        return omap_badwidth_read16(opaque, addr);

    }



    switch (addr) {

    case 0x00:	

        return VAR_0->control;

    case 0x04:	

        return VAR_0->alloc;

    case 0x08:	

        return VAR_0->buffer;

    case 0x0c:	

        return VAR_0->enh_control;

    case 0x10:	

    case 0x14:	

    case 0x18:	

        return 0xffff;

    case 0x1c:	

        return 0x00f8;

    }



    OMAP_BAD_REG(addr);

    return 0;

}

static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{ struct omap_tipb_bridge_s *VAR_0 = (struct omap_tipb_bridge_s *) opaque; if (size < 2) { return omap_badwidth_read16(opaque, addr); } switch (addr) { case 0x00:
return VAR_0->control; case 0x04:
return VAR_0->alloc; case 0x08:
return VAR_0->buffer; case 0x0c:
return VAR_0->enh_control; case 0x10:
case 0x14:
case 0x18:
return 0xffff; case 0x1c:
return 0x00f8; } OMAP_BAD_REG(addr); return 0; }