Lines Matching refs:port
146 HCFG_MUTEBUTTONENABLE, emu->port + HCFG);
148 outl(0, emu->port + INTE);
200 outl(0x0201, emu->port + HCFG2);
221 tmp = inw(emu->port + A_IOCFG) & ~0x8; /* Clear bit 3 */
222 outw(tmp, emu->port + A_IOCFG);
242 outw(0x76, emu->port + A_IOCFG); /* Windows uses 0x3f76 */
248 tmp = inw(emu->port + A_IOCFG);
249 outw(tmp | 0x4, emu->port + A_IOCFG); /* Set bit 2 for mic input */
250 tmp = inw(emu->port + A_IOCFG);
274 HCFG_AUDIOENABLE, emu->port + HCFG);
287 HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG);
289 outl(HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG);
295 outl(HCFG_LOCKTANKCACHE_MASK | HCFG_AUTOMUTE, emu->port + HCFG);
298 outl(HCFG_LOCKTANKCACHE_MASK | HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG);
306 u16 reg = inw(emu->port + A_IOCFG);
307 outw(reg | A_IOCFG_GPOUT2, emu->port + A_IOCFG);
309 outw(reg | A_IOCFG_GPOUT1 | A_IOCFG_GPOUT2, emu->port + A_IOCFG);
311 outw(reg, emu->port + A_IOCFG);
313 unsigned int reg = inl(emu->port + HCFG);
314 outl(reg | HCFG_GPOUT2, emu->port + HCFG);
316 outl(reg | HCFG_GPOUT1 | HCFG_GPOUT2, emu->port + HCFG);
318 outl(reg, emu->port + HCFG);
327 u16 reg = inw(emu->port + A_IOCFG);
328 outw(reg | A_IOCFG_GPOUT0, emu->port + A_IOCFG);
333 outl(inl(emu->port + HCFG) | HCFG_EXPANDED_MEM, emu->port + HCFG);
344 outl(inl(emu->port + HCFG) | HCFG_AUDIOENABLE, emu->port + HCFG);
352 outw(inw(emu->port + A_IOCFG) & ~0x44, emu->port + A_IOCFG);
358 outw(inw(emu->port + A_IOCFG) | 0x0040, emu->port + A_IOCFG);
361 outw(inw(emu->port + A_IOCFG) | 0x0060, emu->port + A_IOCFG);
364 outw(inw(emu->port + A_IOCFG) | 0x0080, emu->port + A_IOCFG);
374 tmp = inl(emu->port + HCFG);
376 outl(tmp|0x800, emu->port + HCFG);
378 if (tmp != (inl(emu->port + HCFG) & ~0x800)) {
380 outl(tmp, emu->port + HCFG);
396 outl(0, emu->port + INTE);
440 outl(HCFG_LOCKSOUNDCACHE | HCFG_LOCKTANKCACHE_MASK | HCFG_MUTEBUTTONENABLE, emu->port + HCFG);
529 hc_port = emu->port + HCFG;
599 hc_value = inl(emu->port + HCFG);
600 outl(hc_value | HCFG_AUDIOENABLE | HCFG_CODECFORMAT_I2S, emu->port + HCFG);
601 inl(emu->port + HCFG);
636 special_port = emu->port + 0x38;
674 outw(0x00, emu->port + A_GPIO); /* Set PGMN low for 100uS. */
675 write_post = inw(emu->port + A_GPIO);
677 outw(0x80, emu->port + A_GPIO); /* Leave bit 7 set during netlist setup. */
678 write_post = inw(emu->port + A_GPIO);
687 outw(reg, emu->port + A_GPIO);
688 write_post = inw(emu->port + A_GPIO);
689 outw(reg | 0x40, emu->port + A_GPIO);
690 write_post = inw(emu->port + A_GPIO);
694 outw(0x10, emu->port + A_GPIO);
695 write_post = inw(emu->port + A_GPIO);
842 outl(HCFG_LOCKSOUNDCACHE | HCFG_LOCKTANKCACHE_MASK, emu->port + HCFG);
954 if (emu->port) { /* avoid access to already used hardware */
1612 emu->port = pci_resource_start(pci, 0);
1800 emu->saved_a_iocfg = inw(emu->port + A_IOCFG);
1801 emu->saved_hcfg = inl(emu->port + HCFG);
1827 outw(emu->saved_a_iocfg, emu->port + A_IOCFG);
1828 outl(emu->saved_hcfg, emu->port + HCFG);