#if 0 /* how about we flush and reset, mmmkay? */ pci_write_config_byte(dev, 0x51, 0x1F); /* fall through to a reset */ case dma_start: case ide_dma_end: /* reset the chips state over and over.. */ pci_write_config_byte(dev, 0x51, 0x13); #endif 
static int hpt366_ide_dma_lostirq (ide_drive_t *drive){	struct pci_dev *dev	= HWIF(drive)->pci_dev;	u8 reg50h = 0, reg52h = 0, reg5ah = 0;	pci_read_config_byte(dev, 0x50, &reg50h);	pci_read_config_byte(dev, 0x52, &reg52h);	pci_read_config_byte(dev, 0x5a, &reg5ah);	printk("%s: (%s)  reg50h=0x%02x, reg52h=0x%02x, reg5ah=0x%02x\n",		drive->name, __FUNCTION__, reg50h, reg52h, reg5ah);	if (reg5ah & 0x10)		pci_write_config_byte(dev, 0x5a, reg5ah & ~0x10);#if 0	/* how about we flush and reset, mmmkay? */	pci_write_config_byte(dev, 0x51, 0x1F);	/* fall through to a reset */	case dma_start:	case ide_dma_end:	/* reset the chips state over and over.. */	pci_write_config_byte(dev, 0x51, 0x13);#endif	return __ide_dma_lostirq(drive);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b39b01ffb75e14ed76510e4229ffb575007df0fb/hpt366.c/buggy/drivers/ide/pci/hpt366.c