Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cam/ata/ata_da.c
Show First 20 Lines • Show All 3,414 Lines • ▼ Show 20 Lines | adasetgeom(struct ada_softc *softc, struct ccb_getdev *cgd) | ||||
} else if (softc->quirks & ADA_Q_4K) { | } else if (softc->quirks & ADA_Q_4K) { | ||||
softc->disk->d_stripesize = 4096; | softc->disk->d_stripesize = 4096; | ||||
softc->disk->d_stripeoffset = 0; | softc->disk->d_stripeoffset = 0; | ||||
} | } | ||||
softc->disk->d_fwsectors = softc->params.secs_per_track; | softc->disk->d_fwsectors = softc->params.secs_per_track; | ||||
softc->disk->d_fwheads = softc->params.heads; | softc->disk->d_fwheads = softc->params.heads; | ||||
ata_disk_firmware_geom_adjust(softc->disk); | ata_disk_firmware_geom_adjust(softc->disk); | ||||
softc->disk->d_rotation_rate = cgd->ident_data.media_rotation_rate; | softc->disk->d_rotation_rate = cgd->ident_data.media_rotation_rate; | ||||
snprintf(softc->disk->d_attachment, sizeof(softc->disk->d_attachment), | |||||
"%s%d", softc->cpi.dev_name, softc->cpi.unit_number); | |||||
} | } | ||||
static void | static void | ||||
adasendorderedtag(void *arg) | adasendorderedtag(void *arg) | ||||
{ | { | ||||
struct ada_softc *softc = arg; | struct ada_softc *softc = arg; | ||||
if (ada_send_ordered) { | if (ada_send_ordered) { | ||||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |