• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/isa/msnd/

Lines Matching defs:io

59 #include <linux/io.h>
173 /* inb(chip->io + HP_RXL); */
189 inb(chip->io + HP_RXL);
194 static int snd_msnd_reset_dsp(long io, unsigned char *info)
198 outb(HPDSPRESET_ON, io + HP_DSPR);
202 *info = inb(io + HP_INFO);
204 outb(HPDSPRESET_OFF, io + HP_DSPR);
207 if (inb(io + HP_CVR) == HP_CVR_DEF)
226 if (!request_region(chip->io, DSP_NUMIO, "probing")) {
231 if (snd_msnd_reset_dsp(chip->io, &info) < 0) {
232 release_region(chip->io, DSP_NUMIO);
242 chip->io, chip->io + DSP_NUMIO - 1,
303 chip->io, chip->io + DSP_NUMIO - 1,
308 release_region(chip->io, DSP_NUMIO);
319 outb(chip->memid, chip->io + HP_MEMM);
321 outb(HPBLKSEL_0, chip->io + HP_BLKS);
334 outb(HPBLKSEL_1, chip->io + HP_BLKS);
336 outb(HPBLKSEL_0, chip->io + HP_BLKS);
387 outb(HPBLKSEL_0, chip->io + HP_BLKS);
419 outb(HPPRORESET_ON, chip->io + HP_PROR);
421 outb(HPPRORESET_OFF, chip->io + HP_PROR);
432 outb(HPWAITSTATE_0, chip->io + HP_WAIT);
433 outb(HPBITMODE_16, chip->io + HP_BITM);
443 err = snd_msnd_reset_dsp(chip->io, NULL);
552 if (request_region(chip->io, DSP_NUMIO, card->shortname) == NULL) {
561 release_region(chip->io, DSP_NUMIO);
631 release_region(chip->io, DSP_NUMIO);
643 release_region(chip->io, DSP_NUMIO);
663 static int __devinit snd_msnd_write_cfg_io0(int cfg, int num, u16 io)
667 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io)))
669 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io)))
674 static int __devinit snd_msnd_write_cfg_io1(int cfg, int num, u16 io)
678 if (snd_msnd_write_cfg(cfg, IREG_IO1_BASEHI, HIBYTE(io)))
680 if (snd_msnd_write_cfg(cfg, IREG_IO1_BASELO, LOBYTE(io)))
763 static long io[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;
802 module_param_array(io, long, NULL, S_IRUGO);
803 MODULE_PARM_DESC(io, "IO port #");
823 if (io[i] == SNDRV_AUTO_PORT)
827 printk(KERN_WARNING LOGNAME ": io, irq and mem must be set\n");
832 if (!(io[i] == 0x290 ||
833 io[i] == 0x260 ||
834 io[i] == 0x250 ||
835 io[i] == 0x240 ||
836 io[i] == 0x230 ||
837 io[i] == 0x220 ||
838 io[i] == 0x210 ||
839 io[i] == 0x3e0)) {
840 printk(KERN_ERR LOGNAME ": \"io\" - DSP I/O base must be set "
846 if (io[i] < 0x100 || io[i] > 0x3e0 || (io[i] % 0x10) != 0) {
848 ": \"io\" - DSP I/O base must within the range 0x100 "
963 io[idx], 0,
1022 chip->io = io[idx];
1137 io[idx] = pnp_port_start(pnp_dev, 0);
1149 chip->io = io[idx];