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_set_bus_speed_mode(struct slot * slot, enum pci_bus_speed value){	u8 slot_cmd;	u8 pi;	int retval = 0;	struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle;	DBG_ENTER_ROUTINE 		if (!slot->ctrl->hpc_ctlr_handle) {		err("%s: Invalid HPC controller handle!\n", __FUNCTION__);		return -1;	}	pi = readb(php_ctlr->creg + PROG_INTERFACE);		if (pi == 1) {		switch (value) {		case 0:			slot_cmd = SETA_PCI_33MHZ;			break;		case 1:			slot_cmd = SETA_PCI_66MHZ;			break;		case 2:			slot_cmd = SETA_PCIX_66MHZ;			break;		case 3:			slot_cmd = SETA_PCIX_100MHZ;				break;		case 4:			slot_cmd = SETA_PCIX_133MHZ;				break;		default:			slot_cmd = PCI_SPEED_UNKNOWN;			retval = -ENODEV;			return retval;			}	} else {		switch (value) {		case 0:			slot_cmd = SETB_PCI_33MHZ;			break;		case 1:			slot_cmd = SETB_PCI_66MHZ;			break;		case 2:			slot_cmd = SETB_PCIX_66MHZ_PM;			break;		case 3:			slot_cmd = SETB_PCIX_100MHZ_PM;				break;		case 4:			slot_cmd = SETB_PCIX_133MHZ_PM;				break;		case 5:			slot_cmd = SETB_PCIX_66MHZ_EM;				break;		case 6:			slot_cmd = SETB_PCIX_100MHZ_EM;				break;		case 7:			slot_cmd = SETB_PCIX_133MHZ_EM;				break;		case 8:			slot_cmd = SETB_PCIX_66MHZ_266;				break;		case 0x9:			slot_cmd = SETB_PCIX_100MHZ_266;				break;		case 0xa:			slot_cmd = SETB_PCIX_133MHZ_266;				break;		case 0xb:			slot_cmd = SETB_PCIX_66MHZ_533;				break;		case 0xc:			slot_cmd = SETB_PCIX_100MHZ_533;				break;		case 0xd:			slot_cmd = SETB_PCIX_133MHZ_533;				break;		default:			slot_cmd = PCI_SPEED_UNKNOWN;			retval = -ENODEV;			return retval;			}	}	retval = shpc_write_cmd(slot, 0, slot_cmd);	if (retval) {		err("%s: Write command failed!\n", __FUNCTION__);		return -1;	}	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