struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; 
struct php_ctlr_state_s *php_ctlr = slot->ctrl->hpc_ctlr_handle; 
static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd){	struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle;	u16 cmd_status;	int retval = 0;	u16 temp_word;	int i;	DBG_ENTER_ROUTINE 		if (!php_ctlr) {		err("%s: Invalid HPC controller handle!\n", __FUNCTION__);		return -1;	}	for (i = 0; i < 10; i++) {		cmd_status = readw(php_ctlr->creg + CMD_STATUS);				if (!(cmd_status & 0x1))			break;		/*  Check every 0.1 sec for a total of 1 sec*/		msleep(100);	}	cmd_status = readw(php_ctlr->creg + CMD_STATUS);		if (cmd_status & 0x1) { 		/* After 1 sec and and the controller is still busy */		err("%s : Controller is still busy after 1 sec.\n", __FUNCTION__);		return -1;	}	++t_slot;	temp_word =  (t_slot << 8) | (cmd & 0xFF);	dbg("%s: t_slot %x cmd %x\n", __FUNCTION__, t_slot, cmd);		/* To make sure the Controller Busy bit is 0 before we send out the	 * command. 	 */	writew(temp_word, php_ctlr->creg + CMD);	dbg("%s: temp_word written %x\n", __FUNCTION__, temp_word);	DBG_LEAVE_ROUTINE 	return retval;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ee138334d5eb5ca662b2d69228420c1ccc051e0e/shpchp_hpc.c/buggy/drivers/pci/hotplug/shpchp_hpc.c