Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_cd.c
Show First 20 Lines • Show All 955 Lines • ▼ Show 20 Lines | if (bp == NULL) { | ||||
/* Use READ CD command for audio tracks. */ | /* Use READ CD command for audio tracks. */ | ||||
if (softc->params.blksize == 2352) { | if (softc->params.blksize == 2352) { | ||||
start_ccb->csio.cdb_io.cdb_bytes[0] = READ_CD; | start_ccb->csio.cdb_io.cdb_bytes[0] = READ_CD; | ||||
start_ccb->csio.cdb_io.cdb_bytes[9] = 0xf8; | start_ccb->csio.cdb_io.cdb_bytes[9] = 0xf8; | ||||
start_ccb->csio.cdb_io.cdb_bytes[10] = 0; | start_ccb->csio.cdb_io.cdb_bytes[10] = 0; | ||||
start_ccb->csio.cdb_io.cdb_bytes[11] = 0; | start_ccb->csio.cdb_io.cdb_bytes[11] = 0; | ||||
start_ccb->csio.cdb_len = 12; | start_ccb->csio.cdb_len = 12; | ||||
} | } | ||||
if (cam_enable_prio) { | |||||
if (bp->bio_flags & BIO_LOWPRIO) | |||||
start_ccb->csio.priority = 15; | |||||
else | |||||
start_ccb->csio.priority = 1; | |||||
} | |||||
start_ccb->ccb_h.ccb_state = CD_CCB_BUFFER_IO; | start_ccb->ccb_h.ccb_state = CD_CCB_BUFFER_IO; | ||||
LIST_INSERT_HEAD(&softc->pending_ccbs, | LIST_INSERT_HEAD(&softc->pending_ccbs, | ||||
&start_ccb->ccb_h, periph_links.le); | &start_ccb->ccb_h, periph_links.le); | ||||
softc->outstanding_cmds++; | softc->outstanding_cmds++; | ||||
/* We expect a unit attention from this device */ | /* We expect a unit attention from this device */ | ||||
if ((softc->flags & CD_FLAG_RETRY_UA) != 0) { | if ((softc->flags & CD_FLAG_RETRY_UA) != 0) { | ||||
▲ Show 20 Lines • Show All 3,277 Lines • Show Last 20 Lines |