uint32_t qpci_io_readl(QPCIDevice *dev, void *data)

{

    uintptr_t addr = (uintptr_t)data;



    if (addr < QPCI_PIO_LIMIT) {

        return dev->bus->pio_readl(dev->bus, addr);

    } else {

        uint32_t val;

        dev->bus->memread(dev->bus, addr, &val, sizeof(val));

        return le32_to_cpu(val);

    }

}

uint32_t qpci_io_readl(QPCIDevice *dev, void *data)

{

    uintptr_t addr = (uintptr_t)data;



    if (addr < QPCI_PIO_LIMIT) {

        return dev->bus->pio_readl(dev->bus, addr);

    } else {

        uint32_t val;

        dev->bus->memread(dev->bus, addr, &val, sizeof(val));

        return le32_to_cpu(val);

    }

}

    uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->memread(dev->bus, addr, &val, sizeof(val));     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->memread(dev->bus, addr, &val, sizeof(val)); uint32_t qpci_io_readl(QPCIDevice *dev, void *data)     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         return dev->bus->pio_readl(dev->bus, addr);         dev->bus->memread(dev->bus, addr, &val, sizeof(val));     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->memread(dev->bus, addr, &val, sizeof(val));     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     uintptr_t addr = (uintptr_t)data;
uint32_t FUNC_0(QPCIDevice *dev, void *data)

{

    uintptr_t addr = (uintptr_t)data;



    if (addr < QPCI_PIO_LIMIT) {

        return dev->bus->pio_readl(dev->bus, addr);

    } else {

        uint32_t val;

        dev->bus->memread(dev->bus, addr, &val, sizeof(val));

        return le32_to_cpu(val);

    }

}

uint32_t FUNC_0(QPCIDevice *dev, void *data)
{ uintptr_t addr = (uintptr_t)data; if (addr < QPCI_PIO_LIMIT) { return dev->bus->pio_readl(dev->bus, addr); } else { uint32_t val; dev->bus->memread(dev->bus, addr, &val, sizeof(val)); return le32_to_cpu(val); } }