PORT_WR8
PORT_WR8(dev->io, 0x7, 0x30); /* enable audio irqs */
PORT_WR8(dev->io, 0x7, 0); /* disable all irqs */
PORT_WR8(dev->sb, 0xc, val);
PORT_WR8(dev->sb, 0x4, port); /* Select register */
PORT_WR8(dev->sb, 0x5, value);
PORT_WR8(dev->sb, 0x4, port); /* Select register */
PORT_WR8(dev->sb, 0x6, 3);
PORT_WR8(dev->sb, 0x6, 0);
PORT_WR8(dev->vc, 0xf, 0); /* restart DMA */
PORT_WR8(dev->vc, 0x8, 0xc4); /* command */
PORT_WR8(dev->vc, 0xd, 0xff); /* clear DMA */
PORT_WR8(dev->vc, 0xf, 0x01); /* stop DMA */
PORT_WR8(dev->vc, 0xd, 0xff); /* reset */
PORT_WR8(dev->vc, 0xf, 0x01); /* mask */
PORT_WR8(dev->vc, 0xb, 0x14); /* mode */
PORT_WR8(dev->vc, 0xf, 0); /* start DMA */
PORT_WR8(dev->io, 0x6, 0);
PORT_WR8(dev->io, 0x6, 0x0a); /* autoinit, enable */
PORT_WR8(dev->io, 0x6, 0);