taglinefilesource code
scsi_cmd521drivers/scsi/scsi.cunsigned char scsi_cmd[12];
scsi_cmd548drivers/scsi/scsi.cscsi_cmd[0] = TEST_UNIT_READY;
scsi_cmd549drivers/scsi/scsi.cscsi_cmd[1] = lun << 5;
scsi_cmd550drivers/scsi/scsi.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[4] = scsi_cmd[5] = 0;
scsi_cmd561drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *) scsi_cmd,
scsi_cmd593drivers/scsi/scsi.cscsi_cmd[0] = INQUIRY;
scsi_cmd594drivers/scsi/scsi.cscsi_cmd[1] = (lun << 5) & 0xe0;
scsi_cmd595drivers/scsi/scsi.cscsi_cmd[2] = 0;
scsi_cmd596drivers/scsi/scsi.cscsi_cmd[3] = 0;
scsi_cmd597drivers/scsi/scsi.cscsi_cmd[4] = 255;
scsi_cmd598drivers/scsi/scsi.cscsi_cmd[5] = 0;
scsi_cmd604drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *) scsi_cmd,
scsi_cmd742drivers/scsi/scsi.cscsi_cmd[0] = MODE_SENSE;
scsi_cmd743drivers/scsi/scsi.cscsi_cmd[1] = (lun << 5) & 0xe0;
scsi_cmd744drivers/scsi/scsi.cscsi_cmd[2] = 0x2e;
scsi_cmd745drivers/scsi/scsi.cscsi_cmd[3] = 0;
scsi_cmd746drivers/scsi/scsi.cscsi_cmd[4] = 0x2a;
scsi_cmd747drivers/scsi/scsi.cscsi_cmd[5] = 0;
scsi_cmd753drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *) scsi_cmd,
scsi_cmd307drivers/scsi/scsi_ioctl.cchar scsi_cmd[12];
scsi_cmd343drivers/scsi/scsi_ioctl.cscsi_cmd[0] = ALLOW_MEDIUM_REMOVAL;
scsi_cmd344drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
scsi_cmd345drivers/scsi/scsi_ioctl.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[5] = 0;
scsi_cmd346drivers/scsi/scsi_ioctl.cscsi_cmd[4] = SCSI_REMOVAL_PREVENT;
scsi_cmd347drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
scsi_cmd351drivers/scsi/scsi_ioctl.cscsi_cmd[0] = ALLOW_MEDIUM_REMOVAL;
scsi_cmd352drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
scsi_cmd353drivers/scsi/scsi_ioctl.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[5] = 0;
scsi_cmd354drivers/scsi/scsi_ioctl.cscsi_cmd[4] = SCSI_REMOVAL_ALLOW;
scsi_cmd355drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
scsi_cmd357drivers/scsi/scsi_ioctl.cscsi_cmd[0] = TEST_UNIT_READY;
scsi_cmd358drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
scsi_cmd359drivers/scsi/scsi_ioctl.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[5] = 0;
scsi_cmd360drivers/scsi/scsi_ioctl.cscsi_cmd[4] = 0;
scsi_cmd361drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);