pci_enable_wake(tp->pdev, state, 1); 
pci_enable_wake(tp->pdev, pci_choose_state(pdev, state), 1); 
typhoon_sleep(struct typhoon *tp, pci_power_t state, u16 events){	struct pci_dev *pdev = tp->pdev;	void __iomem *ioaddr = tp->ioaddr;	struct cmd_desc xp_cmd;	int err;	INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_ENABLE_WAKE_EVENTS);	xp_cmd.parm1 = events;	err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL);	if(err < 0) {		printk(KERN_ERR "%s: typhoon_sleep(): wake events cmd err %d\n",				tp->name, err);		return err;	}	INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_GOTO_SLEEP);	err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL);	if(err < 0) {		printk(KERN_ERR "%s: typhoon_sleep(): sleep cmd err %d\n",				tp->name, err);		return err;	}	if(typhoon_wait_status(ioaddr, TYPHOON_STATUS_SLEEPING) < 0)		return -ETIMEDOUT;	/* Since we cannot monitor the status of the link while sleeping,	 * tell the world it went away.	 */	netif_carrier_off(tp->dev);	pci_enable_wake(tp->pdev, state, 1);	pci_disable_device(pdev);	return pci_set_power_state(pdev, pci_choose_state(pdev, state));}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/05adc3b7458e97a1d0180828000207a403083389/typhoon.c/clean/drivers/net/typhoon.c