static void pci_map(PCIDevice * pci_dev, int region_num,

                    uint32_t addr, uint32_t size, int type)

{

    PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, dev, pci_dev);

    EEPRO100State *s = &d->eepro100;



    logout("region %d, addr=0x%08x, size=0x%08x, type=%d\n",

           region_num, addr, size, type);



    assert(region_num == 1);

    register_ioport_write(addr, size, 1, ioport_write1, s);

    register_ioport_read(addr, size, 1, ioport_read1, s);

    register_ioport_write(addr, size, 2, ioport_write2, s);

    register_ioport_read(addr, size, 2, ioport_read2, s);

    register_ioport_write(addr, size, 4, ioport_write4, s);

    register_ioport_read(addr, size, 4, ioport_read4, s);



    s->region[region_num] = addr;

}

static void pci_map(PCIDevice * pci_dev, int region_num,

                    uint32_t addr, uint32_t size, int type)

{

    PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, dev, pci_dev);

    EEPRO100State *s = &d->eepro100;



    logout("region %d, addr=0x%08x, size=0x%08x, type=%d\n",

           region_num, addr, size, type);



    assert(region_num == 1);

    register_ioport_write(addr, size, 1, ioport_write1, s);

    register_ioport_read(addr, size, 1, ioport_read1, s);

    register_ioport_write(addr, size, 2, ioport_write2, s);

    register_ioport_read(addr, size, 2, ioport_read2, s);

    register_ioport_write(addr, size, 4, ioport_write4, s);

    register_ioport_read(addr, size, 4, ioport_read4, s);



    s->region[region_num] = addr;

}

static void FUNC_0(PCIDevice * VAR_0, int VAR_1,

                    uint32_t VAR_2, uint32_t VAR_3, int VAR_4)

{

    PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, dev, VAR_0);

    EEPRO100State *s = &d->eepro100;



    logout("region %d, VAR_2=0x%08x, VAR_3=0x%08x, VAR_4=%d\n",

           VAR_1, VAR_2, VAR_3, VAR_4);



    assert(VAR_1 == 1);

    register_ioport_write(VAR_2, VAR_3, 1, ioport_write1, s);

    register_ioport_read(VAR_2, VAR_3, 1, ioport_read1, s);

    register_ioport_write(VAR_2, VAR_3, 2, ioport_write2, s);

    register_ioport_read(VAR_2, VAR_3, 2, ioport_read2, s);

    register_ioport_write(VAR_2, VAR_3, 4, ioport_write4, s);

    register_ioport_read(VAR_2, VAR_3, 4, ioport_read4, s);



    s->region[VAR_1] = VAR_2;

}

static void FUNC_0(PCIDevice * VAR_0, int VAR_1,
uint32_t VAR_2, uint32_t VAR_3, int VAR_4)
{ PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, dev, VAR_0); EEPRO100State *s = &d->eepro100; logout("region %d, VAR_2=0x%08x, VAR_3=0x%08x, VAR_4=%d\n",
VAR_1, VAR_2, VAR_3, VAR_4); assert(VAR_1 == 1); register_ioport_write(VAR_2, VAR_3, 1, ioport_write1, s); register_ioport_read(VAR_2, VAR_3, 1, ioport_read1, s); register_ioport_write(VAR_2, VAR_3, 2, ioport_write2, s); register_ioport_read(VAR_2, VAR_3, 2, ioport_read2, s); register_ioport_write(VAR_2, VAR_3, 4, ioport_write4, s); register_ioport_read(VAR_2, VAR_3, 4, ioport_read4, s); s->region[VAR_1] = VAR_2; }