• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/oss/

Lines Matching defs:hw_config

2282 static int init_deskpro_m(struct address_info *hw_config)
2310 static int init_deskpro(struct address_info *hw_config)
2368 switch (hw_config->io_base)
2383 DDB(printk("init_deskpro: Invalid MSS port %x\n", hw_config->io_base));
2508 int probe_ms_sound(struct address_info *hw_config, struct resource *ports)
2512 DDB(printk("Entered probe_ms_sound(%x, %d)\n", hw_config->io_base, hw_config->card_subtype));
2514 if (hw_config->card_subtype == 1) /* Has no IRQ/DMA registers */
2516 /* check_opl3(0x388, hw_config); */
2517 return ad1848_detect(ports, NULL, hw_config->osp);
2520 if (deskpro_xl && hw_config->card_subtype == 2) /* Compaq Deskpro XL */
2522 if (!init_deskpro(hw_config))
2528 if (!init_deskpro_m(hw_config))
2538 if ((tmp = inb(hw_config->io_base + 3)) == 0xff) /* Bus float */
2543 if (!(ret = ad1848_detect(ports, NULL, hw_config->osp)))
2554 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)));
2556 if (!(ret = ad1848_detect(ports, NULL, hw_config->osp)))
2559 hw_config->card_subtype = 1;
2562 if ((hw_config->irq != 5) &&
2563 (hw_config->irq != 7) &&
2564 (hw_config->irq != 9) &&
2565 (hw_config->irq != 10) &&
2566 (hw_config->irq != 11) &&
2567 (hw_config->irq != 12))
2569 printk(KERN_ERR "MSS: Bad IRQ %d\n", hw_config->irq);
2572 if (hw_config->dma != 0 && hw_config->dma != 1 && hw_config->dma != 3)
2574 printk(KERN_ERR "MSS: Bad DMA %d\n", hw_config->dma);
2581 if (hw_config->dma == 0 && inb(hw_config->io_base + 3) & 0x80)
2586 if (hw_config->irq > 7 && hw_config->irq != 9 && inb(hw_config->io_base + 3) & 0x80)
2588 printk(KERN_ERR "MSS: Can't use IRQ%d with a 8 bit card/slot\n", hw_config->irq);
2591 return ad1848_detect(ports, NULL, hw_config->osp);
2594 void attach_ms_sound(struct address_info *hw_config, struct resource *ports, struct module *owner)
2608 int config_port = hw_config->io_base + 0;
2609 int version_port = hw_config->io_base + 3;
2610 int dma = hw_config->dma;
2611 int dma2 = hw_config->dma2;
2613 if (hw_config->card_subtype == 1) /* Has no IRQ/DMA registers */
2615 hw_config->slots[0] = ad1848_init("MS Sound System", ports,
2616 hw_config->irq,
2617 hw_config->dma,
2618 hw_config->dma2, 0,
2619 hw_config->osp,
2627 bits = interrupt_bits[hw_config->irq];
2630 printk(KERN_ERR "MSS: Bad IRQ %d\n", hw_config->irq);
2671 hw_config->dma = dma;
2672 hw_config->dma2 = dma2;
2676 hw_config->slots[0] = ad1848_init("MS Sound System", ports,
2677 hw_config->irq,
2679 hw_config->osp,
2683 void unload_ms_sound(struct address_info *hw_config)
2685 ad1848_unload(hw_config->io_base + 4,
2686 hw_config->irq,
2687 hw_config->dma,
2688 hw_config->dma2, 0);
2689 sound_unload_audiodev(hw_config->slots[0]);
2690 release_region(hw_config->io_base, 4);
2904 struct address_info *hw_config, int slot)
2912 hw_config->io_base = pnp_port_start(ad1848_dev, ad1848_isapnp_list[slot].mss_io);
2913 hw_config->irq = pnp_irq(ad1848_dev, ad1848_isapnp_list[slot].irq);
2914 hw_config->dma = pnp_dma(ad1848_dev, ad1848_isapnp_list[slot].dma);
2916 hw_config->dma2 = pnp_dma(ad1848_dev, ad1848_isapnp_list[slot].dma2);
2918 hw_config->dma2 = -1;
2919 hw_config->card_subtype = ad1848_isapnp_list[slot].type;
2928 static int __init ad1848_isapnp_init(struct address_info *hw_config, struct pnp_card *bus, int slot)
2934 if(ad1848_init_generic(bus, hw_config, slot)) {
2939 hw_config->io_base, hw_config->irq, hw_config->dma,
2940 hw_config->dma2);
2946 static int __init ad1848_isapnp_probe(struct address_info *hw_config)
2972 if(ad1848_isapnp_init(hw_config, bus, i)) {