hwif->atapi_dma = 1; hwif->mwdma_mask = 0x07; hwif->swdma_mask = 0x07; 
dma_state = hwif->INB(hwif->dma_base + 2) & ~0x60; rev = sl82c105_bridge_revision(hwif->pci_dev); if (rev <= 5) { /* * Never ever EVER under any circumstances enable * DMA when the bridge is this old. */ printk("    %s: Winbond 553 bridge revision %d, BM-DMA disabled\n", hwif->name, rev); } else { #ifdef CONFIG_BLK_DEV_IDEDMA dma_state |= 0x60; 
static void __devinit init_hwif_sl82c105(ide_hwif_t *hwif){	struct pci_dev *dev = hwif->pci_dev;	u32 val;		DBG(("init_hwif_sl82c105(hwif: ide%d)\n", hwif->index));	hwif->tuneproc = tune_sl82c105;	hwif->selectproc = sl82c105_selectproc;	hwif->resetproc = sl82c105_resetproc;		/* Default to PIO 0 for fallback unless tuned otherwise,	 * we always autotune PIO, this is done before DMA is	 * checked, so there is no risk of accidentally disabling	 * DMA	  */	hwif->drives[0].pio_speed = XFER_PIO_0;	hwif->drives[0].autotune = 1;	hwif->drives[1].pio_speed = XFER_PIO_1;	hwif->drives[1].autotune = 1;	pci_read_config_dword(dev, 0x40, &val);	*((u32 *)&hwif->hwif_data) = val;		if (!hwif->dma_base)		return;	hwif->atapi_dma = 1;	hwif->mwdma_mask = 0x07;	hwif->swdma_mask = 0x07;#ifdef CONFIG_BLK_DEV_IDEDMA	hwif->ide_dma_check = &sl82c105_check_drive;	hwif->ide_dma_on = &sl82c105_ide_dma_on;	hwif->ide_dma_off_quietly = &sl82c105_ide_dma_off_quietly;	hwif->ide_dma_lostirq = &sl82c105_ide_dma_lost_irq;	hwif->dma_start = &sl82c105_ide_dma_start;	hwif->ide_dma_timeout = &sl82c105_ide_dma_timeout;	if (!noautodma)		hwif->autodma = 1;	hwif->drives[0].autodma = hwif->autodma;	hwif->drives[1].autodma = hwif->autodma;#endif /* CONFIG_BLK_DEV_IDEDMA */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/9648f552f9e08548a3979643b99f14c21c7d8f5b/sl82c105.c/clean/drivers/ide/pci/sl82c105.c