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

Lines Matching refs:hw_config

2283 static int init_deskpro_m(struct address_info *hw_config)
2311 static int init_deskpro(struct address_info *hw_config)
2369 switch (hw_config->io_base)
2384 DDB(printk("init_deskpro: Invalid MSS port %x\n", hw_config->io_base));
2509 int probe_ms_sound(struct address_info *hw_config, struct resource *ports)
2513 DDB(printk("Entered probe_ms_sound(%x, %d)\n", hw_config->io_base, hw_config->card_subtype));
2515 if (hw_config->card_subtype == 1) /* Has no IRQ/DMA registers */
2517 /* check_opl3(0x388, hw_config); */
2518 return ad1848_detect(ports, NULL, hw_config->osp);
2521 if (deskpro_xl && hw_config->card_subtype == 2) /* Compaq Deskpro XL */
2523 if (!init_deskpro(hw_config))
2529 if (!init_deskpro_m(hw_config))
2539 if ((tmp = inb(hw_config->io_base + 3)) == 0xff) /* Bus float */
2544 if (!(ret = ad1848_detect(ports, NULL, hw_config->osp)))
2555 MDB(printk(KERN_ERR "No MSS signature detected on port 0x%x (0x%x)\n", hw_config->io_base, (int) inb(hw_config->io_base + 3)));
2557 if (!(ret = ad1848_detect(ports, NULL, hw_config->osp)))
2560 hw_config->card_subtype = 1;
2563 if ((hw_config->irq != 5) &&
2564 (hw_config->irq != 7) &&
2565 (hw_config->irq != 9) &&
2566 (hw_config->irq != 10) &&
2567 (hw_config->irq != 11) &&
2568 (hw_config->irq != 12))
2570 printk(KERN_ERR "MSS: Bad IRQ %d\n", hw_config->irq);
2573 if (hw_config->dma != 0 && hw_config->dma != 1 && hw_config->dma != 3)
2575 printk(KERN_ERR "MSS: Bad DMA %d\n", hw_config->dma);
2582 if (hw_config->dma == 0 && inb(hw_config->io_base + 3) & 0x80)
2587 if (hw_config->irq > 7 && hw_config->irq != 9 && inb(hw_config->io_base + 3) & 0x80)
2589 printk(KERN_ERR "MSS: Can't use IRQ%d with a 8 bit card/slot\n", hw_config->irq);
2592 return ad1848_detect(ports, NULL, hw_config->osp);
2595 void attach_ms_sound(struct address_info *hw_config, struct resource *ports, struct module *owner)
2609 int config_port = hw_config->io_base + 0;
2610 int version_port = hw_config->io_base + 3;
2611 int dma = hw_config->dma;
2612 int dma2 = hw_config->dma2;
2614 if (hw_config->card_subtype == 1) /* Has no IRQ/DMA registers */
2616 hw_config->slots[0] = ad1848_init("MS Sound System", ports,
2617 hw_config->irq,
2618 hw_config->dma,
2619 hw_config->dma2, 0,
2620 hw_config->osp,
2628 bits = interrupt_bits[hw_config->irq];
2631 printk(KERN_ERR "MSS: Bad IRQ %d\n", hw_config->irq);
2672 hw_config->dma = dma;
2673 hw_config->dma2 = dma2;
2677 hw_config->slots[0] = ad1848_init("MS Sound System", ports,
2678 hw_config->irq,
2680 hw_config->osp,
2684 void unload_ms_sound(struct address_info *hw_config)
2686 ad1848_unload(hw_config->io_base + 4,
2687 hw_config->irq,
2688 hw_config->dma,
2689 hw_config->dma2, 0);
2690 sound_unload_audiodev(hw_config->slots[0]);
2691 release_region(hw_config->io_base, 4);
2905 struct address_info *hw_config, int slot)
2913 hw_config->io_base = pnp_port_start(ad1848_dev, ad1848_isapnp_list[slot].mss_io);
2914 hw_config->irq = pnp_irq(ad1848_dev, ad1848_isapnp_list[slot].irq);
2915 hw_config->dma = pnp_dma(ad1848_dev, ad1848_isapnp_list[slot].dma);
2917 hw_config->dma2 = pnp_dma(ad1848_dev, ad1848_isapnp_list[slot].dma2);
2919 hw_config->dma2 = -1;
2920 hw_config->card_subtype = ad1848_isapnp_list[slot].type;
2929 static int __init ad1848_isapnp_init(struct address_info *hw_config, struct pnp_card *bus, int slot)
2935 if(ad1848_init_generic(bus, hw_config, slot)) {
2940 hw_config->io_base, hw_config->irq, hw_config->dma,
2941 hw_config->dma2);
2947 static int __init ad1848_isapnp_probe(struct address_info *hw_config)
2973 if(ad1848_isapnp_init(hw_config, bus, i)) {