Lines Matching defs:hw_config
956 int attach_mpu401(struct address_info *hw_config, struct module *owner)
964 hw_config->slots[1] = -1;
973 devc->base = hw_config->io_base;
974 devc->osp = hw_config->osp;
975 devc->irq = hw_config->irq;
985 devc->shared_irq = hw_config->always_detect;
986 devc->irq = hw_config->irq;
995 if (!hw_config->always_detect)
1082 if (hw_config->name)
1083 sprintf(mpu_synth_info[m].name, "%s (MPU401)", hw_config->name);
1096 conf_printf(mpu_synth_info[m].name, hw_config);
1102 hw_config->slots[2] = mpu_timer_init(m);
1109 hw_config->slots[1] = m;
1119 release_region(hw_config->io_base, 2);
1194 int probe_mpu401(struct address_info *hw_config, struct resource *ports)
1199 tmp_devc.base = hw_config->io_base;
1200 tmp_devc.irq = hw_config->irq;
1203 tmp_devc.osp = hw_config->osp;
1205 if (hw_config->always_detect)
1208 if (inb(hw_config->io_base + 1) == 0xff)
1210 DDB(printk("MPU401: Port %x looks dead.\n", hw_config->io_base));
1217 DDB(printk("MPU401: Reset failed on port %x\n", hw_config->io_base));
1222 void unload_mpu401(struct address_info *hw_config)
1225 int n=hw_config->slots[1];
1228 release_region(hw_config->io_base, 2);
1229 if (hw_config->always_detect == 0 && hw_config->irq > 0)
1230 free_irq(hw_config->irq, (void *)n);
1233 sound_unload_timerdev(hw_config->slots[2]);