cdi->speed = CDROM_STATE_FLAGS(drive)->current_speed;
if (!ide_cdrom_get_capabilities(drive, &cap)) { ide_cdrom_update_speed(drive, &cap); cdi->speed = CDROM_STATE_FLAGS(drive)->current_speed; }
int ide_cdrom_select_speed (struct cdrom_device_info *cdi, int speed){	ide_drive_t *drive = (ide_drive_t*) cdi->handle;	struct request_sense sense;	int stat;	if ((stat = cdrom_select_speed(drive, speed, &sense)) < 0)		return stat;        cdi->speed = CDROM_STATE_FLAGS(drive)->current_speed;        return 0;}