Announce diagnostic page 7 (Element Descriptor) support.

This commit is contained in:
Alexander Motin 2012-11-07 22:53:46 +00:00
parent c11de6f059
commit aaff3a7331

View File

@ -399,10 +399,11 @@ ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb)
ccb->ataio.cmd.sector_count >= 2) {
bzero(buf, ccb->ataio.dxfer_len);
page->hdr.page_code = 0;
scsi_ulto2b(3, page->hdr.length);
scsi_ulto2b(4, page->hdr.length);
buf[4] = 0;
buf[5] = 1;
buf[6] = 2;
buf[7] = 7;
ccb->ccb_h.status = CAM_REQ_CMP;
goto out;
}