static void ehci_port_test(struct qhc *hc, int port, uint32_t expect)

{

    void *addr = hc->base + 0x64 + 4 * port;

    uint32_t value = qpci_io_readl(hc->dev, addr);

    uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC);



#if 0

    fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n",

            __func__, port, value & mask, expect & mask);

#endif

    g_assert((value & mask) == (expect & mask));

}

static void ehci_port_test(struct qhc *hc, int port, uint32_t expect)

{

    void *addr = hc->base + 0x64 + 4 * port;

    uint32_t value = qpci_io_readl(hc->dev, addr);

    uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC);



#if 0

    fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n",

            __func__, port, value & mask, expect & mask);

#endif

    g_assert((value & mask) == (expect & mask));

}

    void *addr = hc->base + 0x64 + 4 * port;     uint32_t value = qpci_io_readl(hc->dev, addr);
static void FUNC_0(struct qhc *VAR_0, int VAR_1, uint32_t VAR_2)

{

    void *VAR_3 = VAR_0->base + 0x64 + 4 * VAR_1;

    uint32_t value = qpci_io_readl(VAR_0->dev, VAR_3);

    uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC);



#if 0

    fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n",

            __func__, VAR_1, value & mask, VAR_2 & mask);

#endif

    g_assert((value & mask) == (VAR_2 & mask));

}

static void FUNC_0(struct qhc *VAR_0, int VAR_1, uint32_t VAR_2)
{ void *VAR_3 = VAR_0->base + 0x64 + 4 * VAR_1; uint32_t value = qpci_io_readl(VAR_0->dev, VAR_3); uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC); #if 0
fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n",
__func__, VAR_1, value & mask, VAR_2 & mask); #endif
g_assert((value & mask) == (VAR_2 & mask)); }