taglinefilesource code
scsi_cmd306drivers/scsi/scsi.cunsigned char scsi_cmd [12];
scsi_cmd350drivers/scsi/scsi.cscsi_cmd[0] = TEST_UNIT_READY;
scsi_cmd351drivers/scsi/scsi.cscsi_cmd[1] = lun << 5;
scsi_cmd352drivers/scsi/scsi.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[4] = scsi_cmd[5] = 0;
scsi_cmd365drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *)  scsi_cmd, (void *) scsi_result,
scsi_cmd410drivers/scsi/scsi.cscsi_cmd[0] = INQUIRY;
scsi_cmd411drivers/scsi/scsi.cscsi_cmd[1] = (lun << 5) & 0xe0;
scsi_cmd412drivers/scsi/scsi.cscsi_cmd[2] = 0;
scsi_cmd413drivers/scsi/scsi.cscsi_cmd[3] = 0;
scsi_cmd414drivers/scsi/scsi.cscsi_cmd[4] = 255;
scsi_cmd415drivers/scsi/scsi.cscsi_cmd[5] = 0;
scsi_cmd420drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *)  scsi_cmd, (void *) scsi_result,
scsi_cmd572drivers/scsi/scsi.cscsi_cmd[0] = MODE_SENSE;
scsi_cmd573drivers/scsi/scsi.cscsi_cmd[1] = (lun << 5) & 0xe0;
scsi_cmd574drivers/scsi/scsi.cscsi_cmd[2] = 0x2e;
scsi_cmd575drivers/scsi/scsi.cscsi_cmd[3] = 0;
scsi_cmd576drivers/scsi/scsi.cscsi_cmd[4] = 0x2a;
scsi_cmd577drivers/scsi/scsi.cscsi_cmd[5] = 0;
scsi_cmd582drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *)  scsi_cmd,
scsi_cmd244drivers/scsi/scsi_ioctl.cchar scsi_cmd[12];
scsi_cmd274drivers/scsi/scsi_ioctl.cscsi_cmd[0] = ALLOW_MEDIUM_REMOVAL;
scsi_cmd275drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
scsi_cmd276drivers/scsi/scsi_ioctl.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[5] = 0;
scsi_cmd277drivers/scsi/scsi_ioctl.cscsi_cmd[4] = SCSI_REMOVAL_PREVENT;
scsi_cmd278drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
scsi_cmd282drivers/scsi/scsi_ioctl.cscsi_cmd[0] = ALLOW_MEDIUM_REMOVAL;
scsi_cmd283drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
scsi_cmd284drivers/scsi/scsi_ioctl.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[5] = 0;
scsi_cmd285drivers/scsi/scsi_ioctl.cscsi_cmd[4] = SCSI_REMOVAL_ALLOW;
scsi_cmd286drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
scsi_cmd288drivers/scsi/scsi_ioctl.cscsi_cmd[0] = TEST_UNIT_READY;
scsi_cmd289drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
scsi_cmd290drivers/scsi/scsi_ioctl.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[5] = 0;
scsi_cmd291drivers/scsi/scsi_ioctl.cscsi_cmd[4] = 0;
scsi_cmd292drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);