From 8d71819a013064685f960b5957358b19f4a60dfe Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 23 Jun 2010 13:36:08 +0000 Subject: [PATCH] Restrict B_DMA_HIGH_ADDRESS to 4 GB. AHCI can generally support 64 bit DMA, but whether the respective controller does is indicated by a capability flag, which we can't easily access at this point. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37228 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/busses/scsi/ahci/ahci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci.c b/src/add-ons/kernel/busses/scsi/ahci/ahci.c index 1c72786c03..6fd0acdba1 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci.c +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci.c @@ -242,6 +242,10 @@ ahci_register_device(device_node *parent) { B_DMA_MAX_SEGMENT_BLOCKS, B_UINT32_TYPE, { ui32: 0x10000 }}, { B_DMA_MAX_SEGMENT_COUNT, B_UINT32_TYPE, { ui32: 32 /* whatever... */ }}, + { B_DMA_HIGH_ADDRESS, B_UINT64_TYPE, { ui64: 0x100000000LL }}, + // TODO: We don't know at this point whether 64 bit addressing is + // supported. That's indicated by a capability flag. Play it safe + // for now. { NULL } };