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 hpc_get_power_status(struct slot * slot, u8 *status){	struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle;	u32 slot_reg;	u16 slot_status;	u8 slot_state;	int	retval = 0;		DBG_ENTER_ROUTINE 	if (!slot->ctrl->hpc_ctlr_handle) {		err("%s: Invalid HPC controller handle!\n", __FUNCTION__);		return -1;	}	slot_reg = readl(php_ctlr->creg + SLOT1 + 4*(slot->hp_slot));	slot_status = (u16) slot_reg;	slot_state = (slot_status & 0x0003);	switch (slot_state) {	case 0:		*status = 0xFF;		break;	case 1:		*status = 2;	/* Powered only */		break;	case 2:		*status = 1;	/* Enabled */		break;	case 3:		*status = 0;	/* Disabled */		break;	default:		*status = 0xFF;		break;	}	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