efir
outb (efir, 0x0c);
outb (efir, 0x16);
outb(efir, 0x23);
outb(efir, 0x9);
outb(efir, i);
outb(efir, i);
outb(efir, 0x1e);
outb(efir, i);
outb(efir, 0x0);
outb(efir, 0x9);
outb(efir, 0x9);
outb(efir, 0x0);
int efir, idx, ofs;
efir = base[idx];
bus_write_1(bar->b_res, efir, 0x09);
v = bus_read_1(bar->b_res, efir + 1);
bus_write_1(bar->b_res, efir, 0x16);
v = bus_read_1(bar->b_res, efir + 1);
bus_write_1(bar->b_res, efir, 0x16);
bus_write_1(bar->b_res, efir + 1, v | 0x04);
bus_write_1(bar->b_res, efir, 0x16);
bus_write_1(bar->b_res, efir + 1, v & ~0x04);
bus_write_1(bar->b_res, efir, 0x23);
bus_write_1(bar->b_res, efir + 1, (ofs + 0x78) >> 2);
bus_write_1(bar->b_res, efir, 0x24);
bus_write_1(bar->b_res, efir + 1, (ofs + 0xf8) >> 2);
bus_write_1(bar->b_res, efir, 0x25);
bus_write_1(bar->b_res, efir + 1, (ofs + 0xe8) >> 2);
bus_write_1(bar->b_res, efir, 0x17);
bus_write_1(bar->b_res, efir + 1, 0x03);
bus_write_1(bar->b_res, efir, 0x28);
bus_write_1(bar->b_res, efir + 1, 0x43);