static void omap_sysctl_write8(void *opaque, target_phys_addr_t addr,

                uint32_t value)

{

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

    int pad_offset, byte_offset;

    int prev_value;



    switch (addr) {

    case 0x030 ... 0x140:	/* CONTROL_PADCONF - only used in the POP */

        pad_offset = (addr - 0x30) >> 2;

        byte_offset = (addr - 0x30) & (4 - 1);



        prev_value = s->padconf[pad_offset];

        prev_value &= ~(0xff << (byte_offset * 8));

        prev_value |= ((value & 0x1f1f1f1f) << (byte_offset * 8)) & 0x1f1f1f1f;

        s->padconf[pad_offset] = prev_value;

        break;



    default:

        OMAP_BAD_REG(addr);

        break;

    }

}

static void omap_sysctl_write8(void *opaque, target_phys_addr_t addr,

                uint32_t value)

{

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

    int pad_offset, byte_offset;

    int prev_value;



    switch (addr) {

    case 0x030 ... 0x140:	

        pad_offset = (addr - 0x30) >> 2;

        byte_offset = (addr - 0x30) & (4 - 1);



        prev_value = s->padconf[pad_offset];

        prev_value &= ~(0xff << (byte_offset * 8));

        prev_value |= ((value & 0x1f1f1f1f) << (byte_offset * 8)) & 0x1f1f1f1f;

        s->padconf[pad_offset] = prev_value;

        break;



    default:

        OMAP_BAD_REG(addr);

        break;

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,

                uint32_t VAR_2)

{

    struct omap_sysctl_s *VAR_3 = (struct omap_sysctl_s *) VAR_0;

    int VAR_4, VAR_5;

    int VAR_6;



    switch (VAR_1) {

    case 0x030 ... 0x140:	

        VAR_4 = (VAR_1 - 0x30) >> 2;

        VAR_5 = (VAR_1 - 0x30) & (4 - 1);



        VAR_6 = VAR_3->padconf[VAR_4];

        VAR_6 &= ~(0xff << (VAR_5 * 8));

        VAR_6 |= ((VAR_2 & 0x1f1f1f1f) << (VAR_5 * 8)) & 0x1f1f1f1f;

        VAR_3->padconf[VAR_4] = VAR_6;

        break;



    default:

        OMAP_BAD_REG(VAR_1);

        break;

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{ struct omap_sysctl_s *VAR_3 = (struct omap_sysctl_s *) VAR_0; int VAR_4, VAR_5; int VAR_6; switch (VAR_1) { case 0x030 ... 0x140:
VAR_4 = (VAR_1 - 0x30) >> 2; VAR_5 = (VAR_1 - 0x30) & (4 - 1); VAR_6 = VAR_3->padconf[VAR_4]; VAR_6 &= ~(0xff << (VAR_5 * 8)); VAR_6 |= ((VAR_2 & 0x1f1f1f1f) << (VAR_5 * 8)) & 0x1f1f1f1f; VAR_3->padconf[VAR_4] = VAR_6; break; default:
OMAP_BAD_REG(VAR_1); break; } }