For the time being use B_32_BIT_MEMORY to allocate the auto-sense area.

Should rather use the device's DMA restrictions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37204 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-06-21 18:26:12 +00:00
parent 91af25d302
commit 41ad209240

View File

@ -218,8 +218,9 @@ scsi_create_autosense_request(scsi_device_info *device)
total_size = (total_size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
// allocate buffer for space sense data and S/G list
device->auto_sense_area = create_area("auto_sense",
(void **)&buffer, B_ANY_KERNEL_ADDRESS, B_PAGE_SIZE, B_FULL_LOCK, 0);
device->auto_sense_area = create_area("auto_sense", (void**)&buffer,
B_ANY_KERNEL_ADDRESS, B_PAGE_SIZE, B_32_BIT_MEMORY, 0);
// TODO: Use B_FULL_LOCK, if addresses >= 4 GB are supported!
if (device->auto_sense_area < 0)
goto err;