static int hpt3xx_tristate (ide_drive_t * drive, int state){	ide_hwif_t *hwif	= HWIF(drive);	struct pci_dev *dev	= hwif->pci_dev;	u8 reg59h = 0, reset	= (hwif->channel) ? 0x80 : 0x40;	u8 regXXh = 0, state_reg= (hwif->channel) ? 0x57 : 0x53;//	hwif->bus_state = state;	pci_read_config_byte(dev, 0x59, &reg59h);	pci_read_config_byte(dev, state_reg, &regXXh);	if (state) {		(void) ide_do_reset(drive);		pci_write_config_byte(dev, state_reg, regXXh|0x80);		pci_write_config_byte(dev, 0x59, reg59h|reset);	} else {		pci_write_config_byte(dev, 0x59, reg59h & ~(reset));		pci_write_config_byte(dev, state_reg, regXXh & ~(0x80));		(void) ide_do_reset(drive);	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b39b01ffb75e14ed76510e4229ffb575007df0fb/hpt366.c/buggy/drivers/ide/pci/hpt366.c