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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user