taglinefilesource code
scsi_cmd530drivers/scsi/scsi.cunsigned char scsi_cmd[12];
scsi_cmd557drivers/scsi/scsi.cscsi_cmd[0] = TEST_UNIT_READY;
scsi_cmd558drivers/scsi/scsi.cscsi_cmd[1] = lun << 5;
scsi_cmd559drivers/scsi/scsi.cscsi_cmd[2] = scsi_cmd[3] = scsi_cmd[4] = scsi_cmd[5] = 0;
scsi_cmd570drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *) scsi_cmd,
scsi_cmd602drivers/scsi/scsi.cscsi_cmd[0] = INQUIRY;
scsi_cmd603drivers/scsi/scsi.cscsi_cmd[1] = (lun << 5) & 0xe0;
scsi_cmd604drivers/scsi/scsi.cscsi_cmd[2] = 0;
scsi_cmd605drivers/scsi/scsi.cscsi_cmd[3] = 0;
scsi_cmd606drivers/scsi/scsi.cscsi_cmd[4] = 255;
scsi_cmd607drivers/scsi/scsi.cscsi_cmd[5] = 0;
scsi_cmd613drivers/scsi/scsi.cscsi_do_cmd (SCpnt, (void *) scsi_cmd,
scsi_cmd751drivers/scsi/scsi.cscsi_cmd[0] = MODE_SENSE;
scsi_cmd752drivers/scsi/scsi.cscsi_cmd[1] = (lun << 5) & 0xe0;
scsi_cmd753drivers/scsi/scsi.cscsi_cmd[2] = 0x2e;
scsi_cmd754drivers/scsi/scsi.cscsi_cmd[3] = 0;
scsi_cmd755drivers/scsi/scsi.cscsi_cmd[4] = 0x2a;
scsi_cmd756drivers/scsi/scsi.cscsi_cmd[5] = 0;
scsi_cmd762drivers/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);