Lines Matching refs:REG
73 #define REG(x) (devc->base+x) macro
166 if (inw(REG(PSS_STATUS)) & PSS_WRITE_EMPTY) in pss_write()
168 outw(data, REG(PSS_DATA)); in pss_write()
193 id = inw(REG(PSS_ID)); in probe_pss()
216 tmp = inw(REG(dev)) & ~0x38; /* Load confreg, mask IRQ bits out */ in set_irq()
223 outw(tmp | bits, REG(dev)); in set_irq()
229 unsigned short tmp = inw(REG(dev)) & 0x003f; in set_io_base()
232 outw(bits | tmp, REG(dev)); in set_io_base()
250 tmp = inw(REG(dev)) & ~0x07; /* Load confreg, mask DMA bits out */ in set_dma()
257 outw(tmp | bits, REG(dev)); in set_dma()
265 outw(0x2000, REG(PSS_CONTROL)); in pss_reset_dsp()
267 inw(REG(PSS_CONTROL)); in pss_reset_dsp()
268 outw(0x0000, REG(PSS_CONTROL)); in pss_reset_dsp()
278 val = inw(REG(PSS_STATUS)); in pss_put_dspword()
281 outw(word, REG(PSS_DATA)); in pss_put_dspword()
294 val = inw(REG(PSS_STATUS)); in pss_get_dspword()
297 *word = inw(REG(PSS_DATA)); in pss_get_dspword()
311 outw(0x00fe, REG(PSS_DATA)); in pss_download_boot()
315 if (inw(REG(PSS_DATA)) == 0x5500) in pss_download_boot()
318 outw(*block++, REG(PSS_DATA)); in pss_download_boot()
329 if (inw(REG(PSS_STATUS)) & PSS_FLAG3) in pss_download_boot()
349 outw (0xffff, REG (PSS_DATA)); in pss_download_boot()
354 outw (*block++, REG (PSS_DATA)); in pss_download_boot()
362 outw(0, REG(PSS_DATA)); in pss_download_boot()
366 val = inw(REG(PSS_STATUS)); in pss_download_boot()
371 val = inw(REG(PSS_STATUS)); in pss_download_boot()
379 val = inw(REG(PSS_STATUS)); in pss_download_boot()
386 val = inw(REG(PSS_DATA)); in pss_download_boot()
644 outw(0x0000, REG(CONF_PSS)); /* 0x0400 enables joystick */ in disable_all_emulations()
645 outw(0x0000, REG(CONF_WSS)); in disable_all_emulations()
646 outw(0x0000, REG(CONF_SB)); in disable_all_emulations()
647 outw(0x0000, REG(CONF_MIDI)); in disable_all_emulations()
648 outw(0x0000, REG(CONF_CDROM)); in disable_all_emulations()
657 outw(0x0400, REG(CONF_PSS)); /* 0x0400 enables joystick */ in configure_nonsound_components()
702 id = inw(REG(PSS_ID)) & 0x00ff; in attach_pss()
1187 printk(KERN_INFO "ECHO-PSS Rev. %d\n", inw(REG(PSS_ID)) & 0x00ff); in init_pss()