From a5e624d394c2841c936f6970a984371da27e257c Mon Sep 17 00:00:00 2001 From: mav Date: Sat, 25 Aug 2012 23:01:57 +0000 Subject: Return "locally assigned" Enclosure Logical Identifier instead of 8 zero bytes. Zeroes there are incorrect and tend to cause false device ID matches. --- sys/dev/ahci/ahciem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/ahci/ahciem.c b/sys/dev/ahci/ahciem.c index 11e7230..4e73d02 100644 --- a/sys/dev/ahci/ahciem.c +++ b/sys/dev/ahci/ahciem.c @@ -380,6 +380,8 @@ ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) ccb->ataio.cmd.sector_count >= 16) { bzero(buf, ccb->ataio.dxfer_len); buf[0] = 64; /* Valid bytes. */ + buf[2] = 0x30; /* NAA Locally Assigned. */ + strncpy(&buf[3], device_get_nameunit(dev), 7); strncpy(&buf[10], "AHCI ", SID_VENDOR_SIZE); strncpy(&buf[18], "SGPIO Enclosure ", SID_PRODUCT_SIZE); strncpy(&buf[34], "1.00", SID_REVISION_SIZE); -- cgit v1.1