From d6e307aed938f3a5b7fa9c77b6427e2c3ca8b965 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 15 Jun 2010 00:08:27 +0000 Subject: [PATCH] Until the adapter interface has been changed, play it safe and restrict the high address for DMA to 4 GB. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37142 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/generic/ata_adapter/ata_adapter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c b/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c index d22d40ccfa..6050b9ef6c 100644 --- a/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c +++ b/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c @@ -720,6 +720,10 @@ ata_adapter_publish_controller(device_node *parent, uint16 bus_master_base, { ui32: max_sg_block_size/*0x10000*/ }}, { B_DMA_MAX_SEGMENT_COUNT, B_UINT32_TYPE, { ui32: ATA_ADAPTER_MAX_SG_COUNT }}, + { B_DMA_HIGH_ADDRESS, B_UINT64_TYPE, + { ui64: 0x100000000LL }}, + // TODO: Add a parameter and set accordingly! For the time being + // play it safe and only allow 32 bit addresses. // private data to find controller { ATA_ADAPTER_BUS_MASTER_BASE, B_UINT16_TYPE, { ui16: bus_master_base }},