Patch from dachaac (bug #4813): Fix ATA vendor and product strings according to ATA string conventions. Thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2010-09-06 18:53:47 +00:00
parent af4608b687
commit 995b475caf
@@ -148,8 +148,12 @@ ATADevice::Inquiry(ATARequest *request)
// the following fields are *much* to small, sigh... // the following fields are *much* to small, sigh...
memcpy(data.vendor_ident, fInfoBlock.model_number, memcpy(data.vendor_ident, fInfoBlock.model_number,
sizeof(data.vendor_ident)); sizeof(data.vendor_ident));
swap_words(data.vendor_ident, sizeof(data.vendor_ident));
memcpy(data.product_ident, fInfoBlock.model_number + 8, memcpy(data.product_ident, fInfoBlock.model_number + 8,
sizeof(data.product_ident)); sizeof(data.product_ident));
swap_words(data.product_ident, sizeof(data.product_ident));
memcpy(data.product_rev, " ", sizeof(data.product_rev)); memcpy(data.product_rev, " ", sizeof(data.product_rev));
uint32 allocationLength = command->allocation_length; uint32 allocationLength = command->allocation_length;