[haiku-commits] r37228 - haiku/trunk/src/add-ons/kernel/busses/scsi/ahci

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 23 Jun 2010 15:36:08 +0200 (CEST)

Author: bonefish
Date: 2010-06-23 15:36:08 +0200 (Wed, 23 Jun 2010)
New Revision: 37228
Changeset: http://dev.haiku-os.org/changeset/37228/haiku

Modified:
   haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci.c
Log:
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.


Modified: haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci.c
===================================================================
--- haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci.c      2010-06-23 
13:31:03 UTC (rev 37227)
+++ haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci.c      2010-06-23 
13:36:08 UTC (rev 37228)
@@ -242,6 +242,10 @@
                { 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 }
        };
 


Other related posts:

  • » [haiku-commits] r37228 - haiku/trunk/src/add-ons/kernel/busses/scsi/ahci - ingo_weinhold