if(pci_get_drvdata(hwif->pci_dev) == NULL) { 
if(info->speed == NULL) { 
static void __devinit init_dma_hpt366(ide_hwif_t *hwif, unsigned long dmabase){	u8 masterdma	= 0, slavedma = 0;	u8 dma_new	= 0, dma_old = 0;	u8 primary	= hwif->channel ? 0x4b : 0x43;	u8 secondary	= hwif->channel ? 0x4f : 0x47;	unsigned long flags;	if (!dmabase)		return;			if(pci_get_drvdata(hwif->pci_dev) == NULL)	{		printk(KERN_WARNING "hpt: no known IDE timings, disabling DMA.\n");		return;	}	dma_old = hwif->INB(dmabase+2);	local_irq_save(flags);	dma_new = dma_old;	pci_read_config_byte(hwif->pci_dev, primary, &masterdma);	pci_read_config_byte(hwif->pci_dev, secondary, &slavedma);	if (masterdma & 0x30)	dma_new |= 0x20;	if (slavedma & 0x30)	dma_new |= 0x40;	if (dma_new != dma_old)		hwif->OUTB(dma_new, dmabase+2);	local_irq_restore(flags);	ide_setup_dma(hwif, dmabase, 8);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b39b01ffb75e14ed76510e4229ffb575007df0fb/hpt366.c/buggy/drivers/ide/pci/hpt366.c